Skip to content
Snippets Groups Projects
Commit 55b83bfc authored by Piers Harding's avatar Piers Harding
Browse files

Update Dockerfiles to build with buster

parent 2a455be8
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,11 @@ COPY --chown=tango:tango Pipfile Pipfile ...@@ -65,7 +65,11 @@ COPY --chown=tango:tango Pipfile Pipfile
COPY --chown=tango:tango Pipfile.lock Pipfile.lock COPY --chown=tango:tango Pipfile.lock Pipfile.lock
# Install PyTango et al. into the virtual environment. # Install PyTango et al. into the virtual environment.
RUN pipenv install --dev # for Debian buster - make sure the correct libboost_python named lib is present
RUN if [ -f "/usr/lib/x86_64-linux-gnu/libboost_python3-py37.so" ] && [ ! -f "/usr/lib/x86_64-linux-gnu/libboost_python-py37.so" ]; then \
ln -s /usr/lib/x86_64-linux-gnu/libboost_python3-py37.so /usr/lib/x86_64-linux-gnu/libboost_python-py37.so; \
fi; \
pipenv install --dev
# The following commands are executed when extending this image. # The following commands are executed when extending this image.
# Copy the Pipfile across to the image so that pipenv knows which dependencies # Copy the Pipfile across to the image so that pipenv knows which dependencies
......
...@@ -21,7 +21,7 @@ USER root ...@@ -21,7 +21,7 @@ USER root
# * python3 is required as this image is intended for running Python Tango # * python3 is required as this image is intended for running Python Tango
# devices. # devices.
# #
RUN runtimeDeps='libboost-python1.62.0 \ RUN runtimeDeps='libboost-python1.67.0 \
make \ make \
python3' \ python3' \
&& DOCKERHOST=`awk '/^[a-z]+[0-9]+\t00000000/ { printf("%d.%d.%d.%d", "0x" substr($3, 7, 2), "0x" substr($3, 5, 2), "0x" substr($3, 3, 2), "0x" substr($3, 1, 2)) }' < /proc/net/route` \ && DOCKERHOST=`awk '/^[a-z]+[0-9]+\t00000000/ { printf("%d.%d.%d.%d", "0x" substr($3, 7, 2), "0x" substr($3, 5, 2), "0x" substr($3, 3, 2), "0x" substr($3, 1, 2)) }' < /proc/net/route` \
......
...@@ -28,10 +28,10 @@ RUN TANGO_VERSION=9.2.5a \ ...@@ -28,10 +28,10 @@ RUN TANGO_VERSION=9.2.5a \
&& apt-get purge -y --auto-remove $buildDeps \ && apt-get purge -y --auto-remove $buildDeps \
&& rm -r /usr/src/tango && rm -r /usr/src/tango
FROM debian:stretch-slim FROM debian:buster-slim
COPY --from=buildenv /usr/local /usr/local COPY --from=buildenv /usr/local /usr/local
RUN runtimeDeps='libmariadbclient18 sudo' \ RUN runtimeDeps='libmariadb3 sudo' \
&& DOCKERHOST=`awk '/^[a-z]+[0-9]+\t00000000/ { printf("%d.%d.%d.%d", "0x" substr($3, 7, 2), "0x" substr($3, 5, 2), "0x" substr($3, 3, 2), "0x" substr($3, 1, 2)) }' < /proc/net/route` \ && DOCKERHOST=`awk '/^[a-z]+[0-9]+\t00000000/ { printf("%d.%d.%d.%d", "0x" substr($3, 7, 2), "0x" substr($3, 5, 2), "0x" substr($3, 3, 2), "0x" substr($3, 1, 2)) }' < /proc/net/route` \
&& /usr/local/bin/wait-for-it.sh --host=$DOCKERHOST --port=3142 --timeout=3 --strict --quiet -- echo "Acquire::http::Proxy \"http://$DOCKERHOST:3142\";" > /etc/apt/apt.conf.d/30proxy \ && /usr/local/bin/wait-for-it.sh --host=$DOCKERHOST --port=3142 --timeout=3 --strict --quiet -- echo "Acquire::http::Proxy \"http://$DOCKERHOST:3142\";" > /etc/apt/apt.conf.d/30proxy \
&& echo "Proxy detected on docker host - using for this build" || echo "No proxy detected on docker host" \ && echo "Proxy detected on docker host - using for this build" || echo "No proxy detected on docker host" \
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# intermediate image, then creates a release image containing the compiled # intermediate image, then creates a release image containing the compiled
# binaries. # binaries.
# #
FROM debian:stretch-slim as buildenv FROM debian:buster-slim as buildenv
# Copy across files that are used to help orchestrate container compositions # Copy across files that are used to help orchestrate container compositions
# and test execution sequences # and test execution sequences
...@@ -22,7 +22,7 @@ RUN ZEROMQ_VERSION=4.0.5 \ ...@@ -22,7 +22,7 @@ RUN ZEROMQ_VERSION=4.0.5 \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir /usr/src/zeromq \ && mkdir /usr/src/zeromq \
&& cd /usr/src/zeromq \ && cd /usr/src/zeromq \
&& curl -fsSL "$ZEROMQ_DOWNLOAD_URL" -o zeromq.tar.gz \ && curl -kfsSL "$ZEROMQ_DOWNLOAD_URL" -o zeromq.tar.gz \
&& tar xf zeromq.tar.gz -C /usr/src/zeromq --strip-components=1 \ && tar xf zeromq.tar.gz -C /usr/src/zeromq --strip-components=1 \
&& ./configure --enable-static=no \ && ./configure --enable-static=no \
&& make -C /usr/src/zeromq -j$(nproc) \ && make -C /usr/src/zeromq -j$(nproc) \
...@@ -38,8 +38,8 @@ RUN OMNIORB_DOWNLOAD_URL=https://svwh.dl.sourceforge.net/project/omniorb/omniORB ...@@ -38,8 +38,8 @@ RUN OMNIORB_DOWNLOAD_URL=https://svwh.dl.sourceforge.net/project/omniorb/omniORB
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/src/omniorb \ && mkdir -p /usr/src/omniorb \
&& cd /usr/src/omniorb \ && cd /usr/src/omniorb \
&& curl -fsSL "$OMNIORB_DOWNLOAD_URL" -o omniorb.tar.bz2 \ && curl -kfsSL "$OMNIORB_DOWNLOAD_URL" -o omniorb.tar.bz2 \
&& curl -fsSL "$OMNIORB_PATCH_URL" -o dii_race.patch \ && curl -kfsSL "$OMNIORB_PATCH_URL" -o dii_race.patch \
&& tar xf omniorb.tar.bz2 -C /usr/src/omniorb --strip-components=1 \ && tar xf omniorb.tar.bz2 -C /usr/src/omniorb --strip-components=1 \
&& patch -p0 < dii_race.patch \ && patch -p0 < dii_race.patch \
&& ./configure --enable-static=no \ && ./configure --enable-static=no \
...@@ -48,6 +48,6 @@ RUN OMNIORB_DOWNLOAD_URL=https://svwh.dl.sourceforge.net/project/omniorb/omniORB ...@@ -48,6 +48,6 @@ RUN OMNIORB_DOWNLOAD_URL=https://svwh.dl.sourceforge.net/project/omniorb/omniORB
&& apt-get purge -y --auto-remove $buildDeps \ && apt-get purge -y --auto-remove $buildDeps \
&& rm -r /usr/src/omniorb && rm -r /usr/src/omniorb
FROM debian:stretch-slim FROM debian:buster-slim
COPY --from=buildenv /usr/local /usr/local COPY --from=buildenv /usr/local /usr/local
...@@ -28,10 +28,10 @@ RUN TANGO_VERSION=9.2.5a \ ...@@ -28,10 +28,10 @@ RUN TANGO_VERSION=9.2.5a \
&& apt-get purge -y --auto-remove $buildDeps \ && apt-get purge -y --auto-remove $buildDeps \
&& rm -r /usr/src/tango && rm -r /usr/src/tango
FROM debian:stretch-slim FROM debian:buster-slim
COPY --from=buildenv /usr/local /usr/local COPY --from=buildenv /usr/local /usr/local
RUN runtimeDeps='default-jre-headless libmariadbclient18 sudo' \ RUN runtimeDeps='default-jre-headless libmariadb3 sudo' \
&& mkdir -p /usr/share/man/man1 \ && mkdir -p /usr/share/man/man1 \
&& DOCKERHOST=`awk '/^[a-z]+[0-9]+\t00000000/ { printf("%d.%d.%d.%d", "0x" substr($3, 7, 2), "0x" substr($3, 5, 2), "0x" substr($3, 3, 2), "0x" substr($3, 1, 2)) }' < /proc/net/route` \ && DOCKERHOST=`awk '/^[a-z]+[0-9]+\t00000000/ { printf("%d.%d.%d.%d", "0x" substr($3, 7, 2), "0x" substr($3, 5, 2), "0x" substr($3, 3, 2), "0x" substr($3, 1, 2)) }' < /proc/net/route` \
&& /usr/local/bin/wait-for-it.sh --host=$DOCKERHOST --port=3142 --timeout=3 --strict --quiet -- echo "Acquire::http::Proxy \"http://$DOCKERHOST:3142\";" > /etc/apt/apt.conf.d/30proxy \ && /usr/local/bin/wait-for-it.sh --host=$DOCKERHOST --port=3142 --timeout=3 --strict --quiet -- echo "Acquire::http::Proxy \"http://$DOCKERHOST:3142\";" > /etc/apt/apt.conf.d/30proxy \
......
ARG DOCKER_REGISTRY_HOST ARG DOCKER_REGISTRY_HOST
ARG DOCKER_REGISTRY_USER ARG DOCKER_REGISTRY_USER
FROM debian:stretch-slim as buildenv FROM debian:buster-slim as buildenv
RUN MTANGOREST_VERSION=rc4-2.12 \ RUN MTANGOREST_VERSION=rc4-2.12 \
&& MTANGOREST_DOWNLOAD_URL=https://github.com/Ingvord/mtangorest.server/releases/download/mtangorest.server-$MTANGOREST_VERSION/mtangorest.server-$MTANGOREST_VERSION.jar \ && MTANGOREST_DOWNLOAD_URL=https://github.com/Ingvord/mtangorest.server/releases/download/mtangorest.server-$MTANGOREST_VERSION/mtangorest.server-$MTANGOREST_VERSION.jar \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment