-
Notifications
You must be signed in to change notification settings - Fork 0
/
controller.Dockerfile.arm64
38 lines (29 loc) · 1.4 KB
/
controller.Dockerfile.arm64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM quay.io/centos/centos:stream8
LABEL authors="Antoni Segura Puimedon<[email protected]>, Michał Dulko<[email protected]>"
ARG UPPER_CONSTRAINTS_FILE="https://releases.openstack.org/constraints/upper/xena"
RUN cd /etc/yum.repos.d/ \
&& sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN dnf upgrade -y \
&& dnf install -y epel-release \
&& dnf install -y --setopt=tsflags=nodocs python3-pip libstdc++ \
&& dnf install -y --setopt=tsflags=nodocs gcc gcc-c++ python3-devel git
COPY . /opt/kuryr-kubernetes
RUN pip3 --no-cache-dir install -U pip \
&& python3 -m pip install -c /opt/kuryr-kubernetes/constraints.txt --no-cache-dir /opt/kuryr-kubernetes \
&& dnf -y remove gcc gcc-c++ python3-devel git \
&& dnf clean all
RUN python3 -m pip uninstall keystoneauth1 -y \
&& python3 -m pip uninstall keystonemiddleware -y \
&& python3 -m pip uninstall openstacksdk -y
RUN cd /opt/kuryr-kubernetes/kuryr_patch \
&& python3 -m pip install keystoneauth1-4.0.1-py3-none-any.whl \
&& python3 -m pip install openstacksdk-0.57.0-py3-none-any.whl
RUN rm -rf /opt/kuryr-kubernetes \
&& groupadd -r kuryr -g 711 \
&& useradd -u 711 -g kuryr \
-d /opt/kuryr-kubernetes \
-s /sbin/nologin \
-c "Kuryr controller user" \
kuryr
CMD ["--config-dir", "/etc/kuryr"]
ENTRYPOINT [ "kuryr-k8s-controller" ]