1
1
# Dockerfile to create a container with the IM service
2
- FROM ubuntu:24 .04
2
+ FROM ubuntu:22 .04
3
3
ARG BRANCH=devel
4
4
LABEL maintainer=
"Miguel Caballer <[email protected] >"
5
5
LABEL version="1.17.0"
@@ -12,18 +12,19 @@ RUN apt-get update && apt-get install --no-install-recommends -y patch wget pyth
12
12
13
13
# Install IM
14
14
RUN apt-get update && apt-get install --no-install-recommends -y python3-setuptools python3-pip git && \
15
- pip3 install --break-system-packages msrest msrestazure azure-common azure-mgmt-storage azure-mgmt-compute azure-mgmt-network azure-mgmt-resource azure-mgmt-dns azure-identity==1.8.0 && \
16
- pip3 install --break-system-packages pyOpenSSL cheroot xmltodict pymongo ansible==8.7.0&& \
17
- pip3 install --break-system-packages git+https://github.com/micafer/libcloud@ost_nets_extra && \
18
- pip3 install --break-system-packages apache-libcloud==3.8.0 git+https://github.com/grycap/im@$BRANCH && \
15
+ pip3 install -U pip && \
16
+ pip3 install msrest msrestazure azure-common azure-mgmt-storage azure-mgmt-compute azure-mgmt-network azure-mgmt-resource azure-mgmt-dns azure-identity==1.8.0 && \
17
+ pip3 install pyOpenSSL cheroot xmltodict pymongo ansible==8.7.0&& \
18
+ pip3 install git+https://github.com/micafer/libcloud@ost_nets_extra && \
19
+ pip3 install apache-libcloud==3.8.0 git+https://github.com/grycap/im@$BRANCH && \
19
20
apt-get purge -y python3-pip git && \
20
21
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf ~/.cache/
21
22
22
23
# Patch libcloud to add network extra
23
24
# untill this PR is merged and released
24
25
# https://github.com/apache/libcloud/pull/2016
25
26
COPY ost.patch /tmp/ost.patch
26
- RUN patch /usr/local/lib/python3.12 /dist-packages/libcloud/compute/drivers/openstack.py < /tmp/ost.patch && rm /tmp/ost.patch
27
+ RUN patch /usr/local/lib/python3.10 /dist-packages/libcloud/compute/drivers/openstack.py < /tmp/ost.patch && rm /tmp/ost.patch
27
28
28
29
# Copy im configuration files
29
30
RUN mkdir /etc/im
@@ -38,7 +39,7 @@ RUN sed -i -e 's/VM_NUM_USE_CTXT_DIST = 30/VM_NUM_USE_CTXT_DIST = 3/g' /etc/im/i
38
39
COPY ansible.cfg /etc/ansible/ansible.cfg
39
40
40
41
# Fix boto issue https://github.com/boto/boto/issues/3783
41
- COPY endpoints.json /usr/local/lib/python3.12 /dist-packages/boto/endpoints.json
42
+ COPY endpoints.json /usr/local/lib/python3.10 /dist-packages/boto/endpoints.json
42
43
43
44
# Start IM service
44
45
CMD /usr/local/bin/im_service
0 commit comments