Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve deprecation warnings for Docker #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions co_execenv_java/17/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a Java 17.0 environment with JUnit 5 support.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Java 17 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a Java 17.0 environment with JUnit 5 support.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='make run'
LABEL test_command='make test CLASS_NAME="%{class_name}" FILENAME="%{filename}"'

Expand All @@ -16,6 +19,6 @@ RUN mkdir -p /usr/java/lib
RUN curl -fsSL -O --output-dir /usr/java/lib https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/$JUNIT_VERSION/junit-platform-console-standalone-$JUNIT_VERSION.jar

# Adjust Path variables
ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-$TARGETARCH
ENV JUNIT /usr/java/lib/junit-platform-console-standalone-$JUNIT_VERSION.jar
ENV CLASSPATH .:$JUNIT
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-$TARGETARCH
ENV JUNIT=/usr/java/lib/junit-platform-console-standalone-$JUNIT_VERSION.jar
ENV CLASSPATH=.:$JUNIT
19 changes: 11 additions & 8 deletions co_execenv_java/8-antlr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides an OpenJDK 8.0 environment with JUnit 4 and Antlr support.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Java 8 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides an OpenJDK 8.0 environment with JUnit 4 and Antlr support.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='make run CLASS_NAME="%{class_name}" FILENAME="%{filename}"'
LABEL test_command='make test CLASS_NAME="%{class_name}" FILENAME="%{filename}"'

Expand All @@ -25,9 +28,9 @@ RUN curl -fsSL -O --output-dir /usr/java/lib https://www.antlr.org/download/antl
ADD antlr-java8.jar /usr/java/lib/

# Adjust Path variables
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-$TARGETARCH
ENV HAMCREST /usr/java/lib/hamcrest-$HAMCREST_VERSION.jar
ENV JUNIT /usr/java/lib/junit-$JUNIT_VERSION.jar
ENV ANTLR /usr/java/lib/antlr-${ANTLR_VERSION}-complete.jar
ENV ANTLR_JAVA8 /usr/java/lib/antlr-java8.jar
ENV CLASSPATH .:$HAMCREST:$JUNIT:$ANTLR:$ANTLR_JAVA8
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-$TARGETARCH
ENV HAMCREST=/usr/java/lib/hamcrest-$HAMCREST_VERSION.jar
ENV JUNIT=/usr/java/lib/junit-$JUNIT_VERSION.jar
ENV ANTLR=/usr/java/lib/antlr-${ANTLR_VERSION}-complete.jar
ENV ANTLR_JAVA8=/usr/java/lib/antlr-java8.jar
ENV CLASSPATH=.:$HAMCREST:$JUNIT:$ANTLR:$ANTLR_JAVA8
11 changes: 7 additions & 4 deletions co_execenv_julia/1.10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a Julia 1.10 environment.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Julia 1.10 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a Julia 1.10 environment.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='julia --color=no %{filename}'
LABEL test_command='julia --color=no %{filename}'

Expand All @@ -11,7 +14,7 @@ ARG TARGETARCH
RUN install_clean clang

# Create a directory for Julia
ENV JULIA_HOME /opt/julia
ENV JULIA_HOME=/opt/julia
RUN mkdir -p $JULIA_HOME

# Install Julia version 1.10 with the official binaries
Expand All @@ -23,7 +26,7 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
fi

# Add Julia to the path
ENV PATH $PATH:$JULIA_HOME/bin
ENV PATH=$PATH:$JULIA_HOME/bin

# Install Julia packages and rebuild the system image
RUN JULIA_DEPOT_PATH=$JULIA_HOME/share/julia julia -e 'import Pkg; Pkg.add("PackageCompiler")'
Expand Down
11 changes: 7 additions & 4 deletions co_execenv_julia/1.8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a Julia 1.8 environment.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Julia 1.8 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a Julia 1.8 environment.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='julia --color=no %{filename}'
LABEL test_command='julia --color=no %{filename}'

Expand All @@ -11,7 +14,7 @@ ARG TARGETARCH
RUN install_clean clang

# Create a directory for Julia
ENV JULIA_HOME /opt/julia
ENV JULIA_HOME=/opt/julia
RUN mkdir -p $JULIA_HOME

# Install Julia version 1.8 with the official binaries
Expand All @@ -23,7 +26,7 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
fi

# Add Julia to the path
ENV PATH $PATH:$JULIA_HOME/bin
ENV PATH=$PATH:$JULIA_HOME/bin

# Install Julia packages and rebuild the system image
ARG JULIA_DEPOT_PATH=$JULIA_HOME/share/julia
Expand Down
7 changes: 5 additions & 2 deletions co_execenv_node/0.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a Node 0.12 environment with npm, mocha and q.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Node 0.12 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a Node 0.12 environment with npm, mocha and q.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='node %{filename}'
LABEL test_command='mocha | iconv -c -t ASCII'

Expand Down
19 changes: 11 additions & 8 deletions co_execenv_python/3.4-rpi-web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a Python 3.4 environment with selenium and flask support.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Python 3.4 execution environment with selenium and flask for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a Python 3.4 environment with selenium and flask support.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='make run'
LABEL test_command='python3 -B -m unittest --verbose %{module_name}'

Expand All @@ -20,13 +23,13 @@ RUN curl -fsSL https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz |
RUN cd $OPENSSL_TMP_DIR && ./config -fPIC -shared && make install

# Set environment variables for OpenSSL
ENV OPENSSL_INCLUDE_DIR /usr/local/ssl/include
ENV OPENSSL_LIB_DIR /usr/local/ssl/lib
ENV LD_LIBRARY_PATH $OPENSSL_LIB_DIR
ENV OPENSSL_INCLUDE_DIR=/usr/local/ssl/include
ENV OPENSSL_LIB_DIR=/usr/local/ssl/lib
ENV LD_LIBRARY_PATH=$OPENSSL_LIB_DIR

# Install Python version 3.4
ARG PYTHON_TMP_DIR=/tmp/python3
ENV PYTHON_DIR /usr/lib/python3.4
ENV PYTHON_DIR=/usr/lib/python3.4
RUN mkdir -p $PYTHON_TMP_DIR
RUN curl -fsSL https://www.python.org/ftp/python/3.4.10/Python-3.4.10.tgz | tar -xz -C $PYTHON_TMP_DIR --strip-components=1
RUN cd $PYTHON_TMP_DIR && CPPFLAGS="-I/usr/include/tirpc -I$OPENSSL_INCLUDE_DIR" LDFLAGS="-L$OPENSSL_LIB_DIR" ./configure --prefix=/usr && LD_LIBRARY_PATH="/usr/local/ssl/lib" make altinstall
Expand All @@ -50,5 +53,5 @@ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.4 1
RUN update-alternatives --set python3 /usr/bin/python3.4

# Adjust Path variables
ENV PYTHONPATH $PYTHONPATH:$PYTHON_DIR:/workspace
ENV PATH $PATH:$PYTHON_DIR
ENV PYTHONPATH=$PYTHONPATH:$PYTHON_DIR:/workspace
ENV PATH=$PATH:$PYTHON_DIR
19 changes: 11 additions & 8 deletions co_execenv_python/3.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a Python 3.4 environment with custom JSON message output and turtle support.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Python 3.4 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a Python 3.4 environment with custom JSON message output and turtle support.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='python3 -B /usr/lib/python3.4/webpython.py -f %{filename}'
LABEL test_command='python3 -B -m unittest --verbose %{module_name}'

Expand All @@ -20,13 +23,13 @@ RUN curl -fsSL https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz |
RUN cd $OPENSSL_TMP_DIR && ./config -fPIC -shared && make install

# Set environment variables for OpenSSL
ENV OPENSSL_INCLUDE_DIR /usr/local/ssl/include
ENV OPENSSL_LIB_DIR /usr/local/ssl/lib
ENV LD_LIBRARY_PATH $OPENSSL_LIB_DIR
ENV OPENSSL_INCLUDE_DIR=/usr/local/ssl/include
ENV OPENSSL_LIB_DIR=/usr/local/ssl/lib
ENV LD_LIBRARY_PATH=$OPENSSL_LIB_DIR

# Install Python version 3.4
ARG PYTHON_TMP_DIR=/tmp/python3
ENV PYTHON_DIR /usr/lib/python3.4
ENV PYTHON_DIR=/usr/lib/python3.4
RUN mkdir -p $PYTHON_TMP_DIR
RUN curl -fsSL https://www.python.org/ftp/python/3.4.10/Python-3.4.10.tgz | tar -xz -C $PYTHON_TMP_DIR --strip-components=1
RUN cd $PYTHON_TMP_DIR && CPPFLAGS="-I/usr/include/tirpc -I$OPENSSL_INCLUDE_DIR" LDFLAGS="-L$OPENSSL_LIB_DIR" ./configure --prefix=/usr && LD_LIBRARY_PATH="/usr/local/ssl/lib" make altinstall
Expand All @@ -43,8 +46,8 @@ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.4 1
RUN update-alternatives --set python3 /usr/bin/python3.4

# Adjust Path variables
ENV PYTHONPATH $PYTHONPATH:$PYTHON_DIR:/workspace
ENV PATH $PATH:$PYTHON_DIR
ENV PYTHONPATH=$PYTHONPATH:$PYTHON_DIR:/workspace
ENV PATH=$PATH:$PYTHON_DIR

# Add custom files to Python path
ADD assess.py $PYTHON_DIR/assess.py
Expand Down
11 changes: 7 additions & 4 deletions co_execenv_python/3.7-ml/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a Python 3.7 environment with custom JSON message output and Machine Learning support.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Python 3.7 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a Python 3.7 environment with custom JSON message output and Machine Learning support.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='python3 -B /usr/lib/python3.7/webpython.py -f %{filename}'
LABEL test_command='python3 -B -m unittest --verbose %{module_name}'

Expand All @@ -16,8 +19,8 @@ RUN pip3 install wheel pylint\<2.6 bitstring
RUN pip3 install pandas torch==1.8.1 torchvision==0.9.1 -f https://download.pytorch.org/whl/cpu

# Adjust Path variables
ENV PYTHONPATH $PYTHONPATH:/usr/lib/python3.7:/workspace
ENV PATH $PATH:/usr/lib/python3.7
ENV PYTHONPATH=$PYTHONPATH:/usr/lib/python3.7:/workspace
ENV PATH=$PATH:/usr/lib/python3.7

# Add custom files to Python path
ADD webpython.py /usr/lib/python3.7/webpython.py
11 changes: 7 additions & 4 deletions co_execenv_python/3.8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a Python 3.8 environment with custom JSON message output and turtle support.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Python 3.8 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a Python 3.8 environment with custom JSON message output and turtle support.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='python3 -B /usr/lib/python3.8/webpython.py -f %{filename}'
LABEL test_command='python3 -B -m unittest --verbose %{module_name}'

Expand All @@ -18,8 +21,8 @@ RUN pip3 install setuptools\<68 # Pylint <2.6 (or, specifically wrapt <1.13) is
RUN pip3 install wheel pylint\<2.6 bitstring requests py-sudoku matplotlib numpy beautifulsoup4 tk pandas

# Adjust Path variables
ENV PYTHONPATH $PYTHONPATH:/usr/lib/python3.8:/workspace
ENV PATH $PATH:/usr/lib/python3.8
ENV PYTHONPATH=$PYTHONPATH:/usr/lib/python3.8:/workspace
ENV PATH=$PATH:/usr/lib/python3.8

# Add custom files to Python path
ADD assess.py /usr/lib/python3.8/assess.py
Expand Down
9 changes: 6 additions & 3 deletions co_execenv_r/4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a R 4.0 environment with custom libraries from Berry.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='R 4.0 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a R 4.0 environment with custom libraries from Berry.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='Rscript -e "options(warn=1); source('%{filename}', echo=TRUE)"'
LABEL test_command='Rscript %{filename}'

Expand All @@ -26,4 +29,4 @@ RUN Rscript -e 'remotes::install_github("brry/berryFunctions")'
RUN Rscript -e 'remotes::install_github("openHPI/codeoceanR")'

# Adjust Path variables
ENV PAGER /usr/bin/cat
ENV PAGER=/usr/bin/cat
7 changes: 5 additions & 2 deletions co_execenv_ruby/2.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM openhpi/docker_exec_phusion
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image provides a Ruby 2.5 environment with rspec, minitest and rubocop.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Ruby 2.5 execution environment for CodeOcean'
LABEL org.opencontainers.image.description='This image provides a Ruby 2.5 environment with rspec, minitest and rubocop.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'
LABEL run_command='ruby %{filename}'
LABEL test_command='rspec --format documentation --no-color %{filename}'

Expand Down
13 changes: 8 additions & 5 deletions docker_exec_phusion/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM phusion/baseimage:noble-1.0.0
MAINTAINER openHPI Team <[email protected]>
LABEL description='This image is the base for all other execution environments.'
LABEL org.opencontainers.image.vendor='openHPI Team'
LABEL org.opencontainers.image.authors='[email protected]'
LABEL org.opencontainers.image.title='Base exeuction environment for CodeOcean'
LABEL org.opencontainers.image.description='This image is the base for all other execution environments.'
LABEL org.opencontainers.image.url='https://github.com/openHPI/dockerfiles'

# Update the system
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \
Expand All @@ -27,9 +30,9 @@ WORKDIR /workspace
# Generate English locale files
RUN locale-gen en_US.UTF-8
# Set English as the main language and UTF-8 as desired encoding
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
# Specify terminal emulation.
ENV TERM=ansi
# Prevent folding of output (for lines not longer than 10000 characters).
Expand Down