1
1
# Dockerfile to create a container with the IM service
2
- FROM ubuntu:22 .04
2
+ FROM ubuntu:24 .04
3
3
ARG BRANCH=devel
4
4
LABEL maintainer=
"Miguel Caballer <[email protected] >"
5
- LABEL version="1.17.1 "
5
+ LABEL version="1.18.0 "
6
6
LABEL description="Container image to run the IM service. (http://www.grycap.upv.es/im)"
7
7
EXPOSE 8899 8800
8
8
@@ -12,19 +12,18 @@ 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 -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 && \
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 && \
20
19
apt-get purge -y python3-pip git && \
21
20
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf ~/.cache/
22
21
23
22
# Patch libcloud to add network extra
24
23
# untill this PR is merged and released
25
24
# https://github.com/apache/libcloud/pull/2016
26
25
COPY ost.patch /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
26
+ RUN patch /usr/local/lib/python3.12 /dist-packages/libcloud/compute/drivers/openstack.py < /tmp/ost.patch && rm /tmp/ost.patch
28
27
29
28
# Copy im configuration files
30
29
RUN mkdir /etc/im
@@ -38,8 +37,5 @@ RUN sed -i -e 's/VM_NUM_USE_CTXT_DIST = 30/VM_NUM_USE_CTXT_DIST = 3/g' /etc/im/i
38
37
# Copy a ansible.cfg with correct minimum values
39
38
COPY ansible.cfg /etc/ansible/ansible.cfg
40
39
41
- # Fix boto issue https://github.com/boto/boto/issues/3783
42
- COPY endpoints.json /usr/local/lib/python3.10/dist-packages/boto/endpoints.json
43
-
44
40
# Start IM service
45
41
CMD /usr/local/bin/im_service
0 commit comments