From 207c816b294344cd01a06ac0bad96c54073b4722 Mon Sep 17 00:00:00 2001 From: mechaadi Date: Sat, 8 Nov 2025 16:27:07 +0530 Subject: [PATCH 1/2] fix: dockerfile with bullseye --- Dockerfile | 96 +++++++++++++++++++----------------------------------- 1 file changed, 33 insertions(+), 63 deletions(-) diff --git a/Dockerfile b/Dockerfile index 78833f7..c4a4518 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,7 @@ -# Check for latest version here: https://hub.docker.com/_/buildpack-deps?tab=tags&page=1&name=buster&ordering=last_updated -# This is just a snapshot of buildpack-deps:buster that was last updated on 2019-12-28. -FROM judge0/buildpack-deps:buster-2019-12-28 +FROM buildpack-deps:bullseye # Check for latest version here: https://gcc.gnu.org/releases.html, https://ftpmirror.gnu.org/gcc -ENV GCC_VERSIONS \ - 7.4.0 \ - 8.3.0 \ - 9.2.0 +ENV GCC_VERSIONS="7.4.0 8.3.0 9.2.0" RUN set -xe && \ for VERSION in $GCC_VERSIONS; do \ curl -fSsL "https://ftpmirror.gnu.org/gcc/gcc-$VERSION/gcc-$VERSION.tar.gz" -o /tmp/gcc-$VERSION.tar.gz && \ @@ -23,8 +18,10 @@ RUN set -xe && \ else \ ENABLE_FORTRAN=""; \ fi; \ + # libsanitizer fails to build against newer glibc shipped with Bullseye, so keep the core compiler build lean. /tmp/gcc-$VERSION/configure \ --disable-multilib \ + --disable-libsanitizer \ --enable-languages=c,c++$ENABLE_FORTRAN \ --prefix=/usr/local/gcc-$VERSION && \ make -j$(nproc) && \ @@ -33,8 +30,7 @@ RUN set -xe && \ done # Check for latest version here: https://www.ruby-lang.org/en/downloads -ENV RUBY_VERSIONS \ - 2.7.0 +ENV RUBY_VERSIONS="2.7.0" RUN set -xe && \ for VERSION in $RUBY_VERSIONS; do \ curl -fSsL "https://cache.ruby-lang.org/pub/ruby/${VERSION%.*}/ruby-$VERSION.tar.gz" -o /tmp/ruby-$VERSION.tar.gz && \ @@ -51,9 +47,7 @@ RUN set -xe && \ done # Check for latest version here: https://www.python.org/downloads -ENV PYTHON_VERSIONS \ - 3.8.1 \ - 2.7.17 +ENV PYTHON_VERSIONS="3.8.1 2.7.17" RUN set -xe && \ for VERSION in $PYTHON_VERSIONS; do \ curl -fSsL "https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz" -o /tmp/python-$VERSION.tar.xz && \ @@ -69,8 +63,7 @@ RUN set -xe && \ done # Check for latest version here: https://ftp.gnu.org/gnu/octave -ENV OCTAVE_VERSIONS \ - 5.1.0 +ENV OCTAVE_VERSIONS="5.1.0" RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends gfortran libblas-dev liblapack-dev libpcre3-dev && \ @@ -99,8 +92,7 @@ RUN set -xe && \ ln -s /usr/local/openjdk13/bin/jar /usr/local/bin/jar # Check for latest version here: https://ftpmirror.gnu.org/bash -ENV BASH_VERSIONS \ - 5.0 +ENV BASH_VERSIONS="5.0" RUN set -xe && \ for VERSION in $BASH_VERSIONS; do \ curl -fSsL "https://ftpmirror.gnu.org/bash/bash-$VERSION.tar.gz" -o /tmp/bash-$VERSION.tar.gz && \ @@ -116,8 +108,7 @@ RUN set -xe && \ done # Check for latest version here: https://www.freepascal.org/download.html -ENV FPC_VERSIONS \ - 3.0.4 +ENV FPC_VERSIONS="3.0.4" RUN set -xe && \ for VERSION in $FPC_VERSIONS; do \ curl -fSsL "ftp://ftp.freepascal.org/fpc/dist/$VERSION/x86_64-linux/fpc-$VERSION.x86_64-linux.tar" -o /tmp/fpc-$VERSION.tar && \ @@ -130,8 +121,7 @@ RUN set -xe && \ done # Check for latest version here: https://www.haskell.org/ghc/download.html -ENV HASKELL_VERSIONS \ - 8.8.1 +ENV HASKELL_VERSIONS="8.8.1" RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends libgmp-dev libtinfo5 && \ @@ -149,8 +139,7 @@ RUN set -xe && \ done # Check for latest version here: https://www.mono-project.com/download/stable -ENV MONO_VERSIONS \ - 6.6.0.161 +ENV MONO_VERSIONS="6.6.0.161" RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends cmake && \ @@ -169,8 +158,7 @@ RUN set -xe && \ done # Check for latest version here: https://nodejs.org/en -ENV NODE_VERSIONS \ - 12.14.0 +ENV NODE_VERSIONS="12.14.0" RUN set -xe && \ for VERSION in $NODE_VERSIONS; do \ curl -fSsL "https://nodejs.org/dist/v$VERSION/node-v$VERSION.tar.gz" -o /tmp/node-$VERSION.tar.gz && \ @@ -186,8 +174,7 @@ RUN set -xe && \ done # Check for latest version here: https://github.com/erlang/otp/releases -ENV ERLANG_VERSIONS \ - 22.2 +ENV ERLANG_VERSIONS="22.2" RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends unzip && \ @@ -208,8 +195,7 @@ RUN set -xe && \ ln -s /usr/local/erlang-22.2/bin/erl /usr/local/bin/erl # Check for latest version here: https://github.com/elixir-lang/elixir/releases -ENV ELIXIR_VERSIONS \ - 1.9.4 +ENV ELIXIR_VERSIONS="1.9.4" RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends unzip && \ @@ -221,8 +207,7 @@ RUN set -xe && \ done # Check for latest version here: https://www.rust-lang.org -ENV RUST_VERSIONS \ - 1.40.0 +ENV RUST_VERSIONS="1.40.0" RUN set -xe && \ for VERSION in $RUST_VERSIONS; do \ curl -fSsL "https://static.rust-lang.org/dist/rust-$VERSION-x86_64-unknown-linux-gnu.tar.gz" -o /tmp/rust-$VERSION.tar.gz && \ @@ -237,8 +222,7 @@ RUN set -xe && \ done # Check for latest version here: https://golang.org/dl -ENV GO_VERSIONS \ - 1.13.5 +ENV GO_VERSIONS="1.13.5" RUN set -xe && \ for VERSION in $GO_VERSIONS; do \ curl -fSsL "https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz" -o /tmp/go-$VERSION.tar.gz && \ @@ -248,8 +232,7 @@ RUN set -xe && \ done # Check for latest version here: https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux -ENV FBC_VERSIONS \ - 1.07.1 +ENV FBC_VERSIONS="1.07.1" RUN set -xe && \ for VERSION in $FBC_VERSIONS; do \ curl -fSsL "https://downloads.sourceforge.net/project/fbc/Binaries%20-%20Linux/FreeBASIC-$VERSION-linux-x86_64.tar.gz" -o /tmp/fbc-$VERSION.tar.gz && \ @@ -259,8 +242,7 @@ RUN set -xe && \ done # Check for latest version here: https://github.com/ocaml/ocaml/releases -ENV OCAML_VERSIONS \ - 4.09.0 +ENV OCAML_VERSIONS="4.09.0" RUN set -xe && \ for VERSION in $OCAML_VERSIONS; do \ curl -fSsL "https://github.com/ocaml/ocaml/archive/$VERSION.tar.gz" -o /tmp/ocaml-$VERSION.tar.gz && \ @@ -277,8 +259,7 @@ RUN set -xe && \ done # Check for latest version here: https://www.php.net/downloads -ENV PHP_VERSIONS \ - 7.4.1 +ENV PHP_VERSIONS="7.4.1" RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends bison re2c && \ @@ -298,8 +279,7 @@ RUN set -xe && \ done # Check for latest version here: https://dlang.org/download.html#dmd -ENV D_VERSIONS \ - 2.089.1 +ENV D_VERSIONS="2.089.1" RUN set -xe && \ for VERSION in $D_VERSIONS; do \ curl -fSsL "http://downloads.dlang.org/releases/2.x/$VERSION/dmd.$VERSION.linux.tar.xz" -o /tmp/d-$VERSION.tar.gz && \ @@ -310,8 +290,7 @@ RUN set -xe && \ done # Check for latest version here: https://www.lua.org/download.html -ENV LUA_VERSIONS \ - 5.3.5 +ENV LUA_VERSIONS="5.3.5" RUN set -xe && \ for VERSION in $LUA_VERSIONS; do \ curl -fSsL "https://downloads.sourceforge.net/project/luabinaries/$VERSION/Tools%20Executables/lua-${VERSION}_Linux44_64_bin.tar.gz" -o /tmp/lua-$VERSION.tar.gz && \ @@ -322,8 +301,7 @@ RUN set -xe && \ ln -s /lib/x86_64-linux-gnu/libreadline.so.7 /lib/x86_64-linux-gnu/libreadline.so.6 # Check for latest version here: https://github.com/microsoft/TypeScript/releases -ENV TYPESCRIPT_VERSIONS \ - 3.7.4 +ENV TYPESCRIPT_VERSIONS="3.7.4" RUN set -xe && \ curl -fSsL "https://deb.nodesource.com/setup_12.x" | bash - && \ apt-get update && \ @@ -334,8 +312,7 @@ RUN set -xe && \ done # Check for latest version here: https://nasm.us -ENV NASM_VERSIONS \ - 2.14.02 +ENV NASM_VERSIONS="2.14.02" RUN set -xe && \ for VERSION in $NASM_VERSIONS; do \ curl -fSsL "https://www.nasm.us/pub/nasm/releasebuilds/$VERSION/nasm-$VERSION.tar.gz" -o /tmp/nasm-$VERSION.tar.gz && \ @@ -354,8 +331,7 @@ RUN set -xe && \ done # Check for latest version here: http://gprolog.org/#download -ENV GPROLOG_VERSIONS \ - 1.4.5 +ENV GPROLOG_VERSIONS="1.4.5" RUN set -xe && \ for VERSION in $GPROLOG_VERSIONS; do \ curl -fSsL "http://gprolog.org/gprolog-$VERSION.tar.gz" -o /tmp/gprolog-$VERSION.tar.gz && \ @@ -371,8 +347,7 @@ RUN set -xe && \ done # Check for latest version here: http://www.sbcl.org/platform-table.html -ENV SBCL_VERSIONS \ - 2.0.0 +ENV SBCL_VERSIONS="2.0.0" RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends bison re2c && \ @@ -388,8 +363,7 @@ RUN set -xe && \ done # Check for latest version here: https://ftp.gnu.org/gnu/gnucobol -ENV COBOL_VERSIONS \ - 2.2 +ENV COBOL_VERSIONS="2.2" RUN set -xe && \ for VERSION in $COBOL_VERSIONS; do \ curl -fSsL "https://ftp.gnu.org/gnu/gnucobol/gnucobol-$VERSION.tar.xz" -o /tmp/gnucobol-$VERSION.tar.xz && \ @@ -405,8 +379,7 @@ RUN set -xe && \ done # Check for latest version here: https://swift.org/download -ENV SWIFT_VERSIONS \ - 5.2.3 +ENV SWIFT_VERSIONS="5.2.3" RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends libncurses5 && \ @@ -419,8 +392,7 @@ RUN set -xe && \ done # Check for latest version here: https://kotlinlang.org -ENV KOTLIN_VERSIONS \ - 1.3.70 +ENV KOTLIN_VERSIONS="1.3.70" RUN set -xe && \ for VERSION in $KOTLIN_VERSIONS; do \ curl -fSsL "https://github.com/JetBrains/kotlin/releases/download/v$VERSION/kotlin-compiler-$VERSION.zip" -o /tmp/kotlin-$VERSION.zip && \ @@ -434,7 +406,7 @@ RUN set -xe && \ # I currently use this to add support for Visual Basic.Net but this can be also # used to support C# language which has been already supported but with manual # installation of Mono (see above). -ENV MONO_VERSION 6.6.0.161 +ENV MONO_VERSION=6.6.0.161 RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends gnupg dirmngr && \ @@ -459,8 +431,7 @@ RUN set -xe && \ rm -rf /var/lib/apt/lists/* # Check for latest version here: https://cloud.r-project.org/src/base -ENV R_VERSIONS \ - 4.0.0 +ENV R_VERSIONS="4.0.0" RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends libpcre2-dev && \ @@ -486,8 +457,7 @@ RUN set -xe && \ rm -rf /var/lib/apt/lists/* # Check for latest version here: https://scala-lang.org -ENV SCALA_VERSIONS \ - 2.13.2 +ENV SCALA_VERSIONS="2.13.2" RUN set -xe && \ for VERSION in $SCALA_VERSIONS; do \ curl -fSsL "https://downloads.lightbend.com/scala/$VERSION/scala-$VERSION.tgz" -o /tmp/scala-$VERSION.tgz && \ @@ -499,7 +469,7 @@ RUN set -xe && \ # Support for Perl came "for free" since it is already installed. # Check for latest version here: https://github.com/clojure/clojure/releases -ENV CLOJURE_VERSION 1.10.1 +ENV CLOJURE_VERSION=1.10.1 RUN set -xe && \ apt-get update && \ apt-get install -y --no-install-recommends maven && \ @@ -543,7 +513,7 @@ RUN set -xe && \ git checkout ad39cc4d0fbb577fb545910095c9da5ef8fc9a1a && \ make -j$(nproc) install && \ rm -rf /tmp/* -ENV BOX_ROOT /var/local/lib/isolate +ENV BOX_ROOT=/var/local/lib/isolate LABEL maintainer="Herman Zvonimir Došilović " LABEL version="1.4.0" From a64f296943e4b8be5b8af1670a7f9bbc413ac385 Mon Sep 17 00:00:00 2001 From: mechaadi Date: Sun, 9 Nov 2025 15:36:00 +0530 Subject: [PATCH 2/2] chore: bullseye migration --- Dockerfile | 41 ++++++++++++++++++++----------- bin/debug-tests | 2 +- bin/run-tests | 2 +- extra/Dockerfile | 14 +++++------ slim/Dockerfile | 12 ++++----- tests/clang++/lang.properties | 4 +-- tests/clang/lang.properties | 4 +-- tests/fbc/lang.properties | 2 +- tests/gprolog/lang.properties | 2 +- tests/lua/lang.properties | 4 +-- tests/objective-c/lang.properties | 4 +-- 11 files changed, 50 insertions(+), 41 deletions(-) diff --git a/Dockerfile b/Dockerfile index c4a4518..43cb72e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -111,7 +111,7 @@ RUN set -xe && \ ENV FPC_VERSIONS="3.0.4" RUN set -xe && \ for VERSION in $FPC_VERSIONS; do \ - curl -fSsL "ftp://ftp.freepascal.org/fpc/dist/$VERSION/x86_64-linux/fpc-$VERSION.x86_64-linux.tar" -o /tmp/fpc-$VERSION.tar && \ + curl -fSsL "https://master.dl.sourceforge.net/project/freepascal/Linux/$VERSION/fpc-$VERSION.x86_64-linux.tar?viasf=1" -o /tmp/fpc-$VERSION.tar && \ mkdir /tmp/fpc-$VERSION && \ tar -xf /tmp/fpc-$VERSION.tar -C /tmp/fpc-$VERSION --strip-components=1 && \ rm /tmp/fpc-$VERSION.tar && \ @@ -134,6 +134,7 @@ RUN set -xe && \ cd /tmp/ghc-$VERSION && \ ./configure \ --prefix=/usr/local/ghc-$VERSION && \ + mkdir -p /usr/local/ghc-$VERSION/lib/ghc-$VERSION/latex && \ make -j$(nproc) install && \ rm -rf /tmp/*; \ done @@ -150,6 +151,8 @@ RUN set -xe && \ tar -xf /tmp/mono-$VERSION.tar.xz -C /tmp/mono-$VERSION --strip-components=1 && \ rm /tmp/mono-$VERSION.tar.xz && \ cd /tmp/mono-$VERSION && \ + export PYTHON=/usr/local/python-2.7.17/bin/python2.7 && \ + export PATH="/usr/local/python-2.7.17/bin:$PATH" && \ ./configure \ --prefix=/usr/local/mono-$VERSION && \ make -j$(nproc) && \ @@ -166,6 +169,8 @@ RUN set -xe && \ tar -xf /tmp/node-$VERSION.tar.gz -C /tmp/node-$VERSION --strip-components=1 && \ rm /tmp/node-$VERSION.tar.gz && \ cd /tmp/node-$VERSION && \ + export PYTHON=/usr/local/python-2.7.17/bin/python2.7 && \ + export PATH="/usr/local/python-2.7.17/bin:$PATH" && \ ./configure \ --prefix=/usr/local/node-$VERSION && \ make -j$(nproc) && \ @@ -173,7 +178,6 @@ RUN set -xe && \ rm -rf /tmp/*; \ done -# Check for latest version here: https://github.com/erlang/otp/releases ENV ERLANG_VERSIONS="22.2" RUN set -xe && \ apt-get update && \ @@ -185,6 +189,8 @@ RUN set -xe && \ tar -xf /tmp/erlang-$VERSION.tar.gz -C /tmp/erlang-$VERSION --strip-components=1 && \ rm /tmp/erlang-$VERSION.tar.gz && \ cd /tmp/erlang-$VERSION && \ + export CC="gcc -fcommon" && \ + export CFLAGS="${CFLAGS:--O2 -g} -fcommon" && \ ./otp_build autoconf && \ ./configure \ --prefix=/usr/local/erlang-$VERSION && \ @@ -194,7 +200,7 @@ RUN set -xe && \ done; \ ln -s /usr/local/erlang-22.2/bin/erl /usr/local/bin/erl -# Check for latest version here: https://github.com/elixir-lang/elixir/releases +# # Check for latest version here: https://github.com/elixir-lang/elixir/releases ENV ELIXIR_VERSIONS="1.9.4" RUN set -xe && \ apt-get update && \ @@ -232,10 +238,10 @@ RUN set -xe && \ done # Check for latest version here: https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux -ENV FBC_VERSIONS="1.07.1" +ENV FBC_VERSIONS="1.07.3" RUN set -xe && \ for VERSION in $FBC_VERSIONS; do \ - curl -fSsL "https://downloads.sourceforge.net/project/fbc/Binaries%20-%20Linux/FreeBASIC-$VERSION-linux-x86_64.tar.gz" -o /tmp/fbc-$VERSION.tar.gz && \ + curl -fSsL "https://sourceforge.net/projects/fbc/files/FreeBASIC-$VERSION/Binaries-Linux/FreeBASIC-$VERSION-linux-x86_64.tar.xz/download" -o /tmp/fbc-$VERSION.tar.gz && \ mkdir /usr/local/fbc-$VERSION && \ tar -xf /tmp/fbc-$VERSION.tar.gz -C /usr/local/fbc-$VERSION --strip-components=1 && \ rm -rf /tmp/*; \ @@ -250,6 +256,8 @@ RUN set -xe && \ tar -xf /tmp/ocaml-$VERSION.tar.gz -C /tmp/ocaml-$VERSION --strip-components=1 && \ rm /tmp/ocaml-$VERSION.tar.gz && \ cd /tmp/ocaml-$VERSION && \ + export CC="gcc -fcommon" && \ + export CFLAGS="$CFLAGS -fcommon" && \ ./configure \ -prefix /usr/local/ocaml-$VERSION \ --disable-ocamldoc --disable-debugger && \ @@ -293,12 +301,15 @@ RUN set -xe && \ ENV LUA_VERSIONS="5.3.5" RUN set -xe && \ for VERSION in $LUA_VERSIONS; do \ - curl -fSsL "https://downloads.sourceforge.net/project/luabinaries/$VERSION/Tools%20Executables/lua-${VERSION}_Linux44_64_bin.tar.gz" -o /tmp/lua-$VERSION.tar.gz && \ - mkdir /usr/local/lua-$VERSION && \ - tar -xf /tmp/lua-$VERSION.tar.gz -C /usr/local/lua-$VERSION && \ + curl -fSsL "https://www.lua.org/ftp/lua-$VERSION.tar.gz" -o /tmp/lua-$VERSION.tar.gz && \ + mkdir /tmp/lua-$VERSION && \ + tar -xf /tmp/lua-$VERSION.tar.gz -C /tmp/lua-$VERSION --strip-components=1 && \ + rm /tmp/lua-$VERSION.tar.gz && \ + cd /tmp/lua-$VERSION && \ + make linux && \ + make INSTALL_TOP=/usr/local/lua-$VERSION install && \ rm -rf /tmp/*; \ - done; \ - ln -s /lib/x86_64-linux-gnu/libreadline.so.7 /lib/x86_64-linux-gnu/libreadline.so.6 + done # Check for latest version here: https://github.com/microsoft/TypeScript/releases ENV TYPESCRIPT_VERSIONS="3.7.4" @@ -331,10 +342,10 @@ RUN set -xe && \ done # Check for latest version here: http://gprolog.org/#download -ENV GPROLOG_VERSIONS="1.4.5" +ENV GPROLOG_VERSIONS="1.5.0" RUN set -xe && \ for VERSION in $GPROLOG_VERSIONS; do \ - curl -fSsL "http://gprolog.org/gprolog-$VERSION.tar.gz" -o /tmp/gprolog-$VERSION.tar.gz && \ + curl -fSsL "https://ftp.gnu.org/gnu/gprolog/gprolog-$VERSION.tar.gz" -o /tmp/gprolog-$VERSION.tar.gz && \ mkdir /tmp/gprolog-$VERSION && \ tar -xf /tmp/gprolog-$VERSION.tar.gz -C /tmp/gprolog-$VERSION --strip-components=1 && \ rm /tmp/gprolog-$VERSION.tar.gz && \ @@ -427,7 +438,7 @@ RUN set -xe && \ # Used for additional compilers for C, C++ and used for Objective-C. RUN set -xe && \ apt-get update && \ - apt-get install -y --no-install-recommends clang-7 gnustep-devel && \ + apt-get install -y --no-install-recommends clang-11 gnustep-devel && \ rm -rf /var/lib/apt/lists/* # Check for latest version here: https://cloud.r-project.org/src/base @@ -492,7 +503,7 @@ RUN set -xe && \ # Check for latest version here: https://groovy.apache.org/download.html RUN set -xe && \ - curl -fSsL "https://dl.bintray.com/groovy/maven/apache-groovy-binary-3.0.3.zip" -o /tmp/groovy.zip && \ + curl -fSsL "https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-binary-3.0.3.zip" -o /tmp/groovy.zip && \ unzip /tmp/groovy.zip -d /usr/local && \ rm -rf /tmp/* @@ -516,4 +527,4 @@ RUN set -xe && \ ENV BOX_ROOT=/var/local/lib/isolate LABEL maintainer="Herman Zvonimir Došilović " -LABEL version="1.4.0" +LABEL version="1.4.1" diff --git a/bin/debug-tests b/bin/debug-tests index 58e9200..ebf2156 100755 --- a/bin/debug-tests +++ b/bin/debug-tests @@ -1,5 +1,5 @@ #!/bin/bash -[[ ! -v IMAGE ]] && IMAGE=judge0/compilers:latest +[[ ! -v IMAGE ]] && IMAGE=judge0-compilers:1.4.1-amd64 cd tests echo "Opening shell for debugging inside Docker container of image $IMAGE" docker run -it --rm -v $PWD:/tests -w /tests --privileged $IMAGE bash \ No newline at end of file diff --git a/bin/run-tests b/bin/run-tests index c1663bd..e6a2ab1 100755 --- a/bin/run-tests +++ b/bin/run-tests @@ -1,5 +1,5 @@ #!/bin/bash -[[ ! -v IMAGE ]] && IMAGE=judge0/compilers:latest +[[ ! -v IMAGE ]] && IMAGE=judge0-compilers:1.4.1-amd64 cd tests echo "Running tests on image $IMAGE" docker run -it --rm -v $PWD:/tests -w /tests --privileged $IMAGE ./run $@ \ No newline at end of file diff --git a/extra/Dockerfile b/extra/Dockerfile index 07dea92..10b9947 100644 --- a/extra/Dockerfile +++ b/extra/Dockerfile @@ -1,4 +1,4 @@ -FROM judge0/compilers:1.4.0-slim +FROM judge0-compilers:1.4.1-slim-amd64 # Python for ML RUN apt-get update && \ @@ -39,17 +39,17 @@ RUN set -xe && \ # C3 COPY ./bin/update/c3 /update/ RUN set -xe && \ - echo "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-10 main" > /etc/apt/sources.list.d/llvm.list && \ - echo "deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster-10 main" >> /etc/apt/sources.list.d/llvm.list && \ + echo "deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-11 main" > /etc/apt/sources.list.d/llvm.list && \ + echo "deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-11 main" >> /etc/apt/sources.list.d/llvm.list && \ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \ apt-get update && \ - apt-get install -y --no-install-recommends clang-10 cmake cmake-extras llvm-10-dev && \ + apt-get install -y --no-install-recommends clang-11 cmake cmake-extras llvm-11-dev && \ /update/c3 && \ rm -rf /var/lib/apt/lists/* # Bosque COPY ./bin/update/bosque /update/ -ENV PATH "/usr/local/node/bin:$PATH" +ENV PATH="/usr/local/node/bin:$PATH" RUN set -xe && \ echo "deb http://snapshot.debian.org/archive/debian/20200515T204659Z sid main" >> /etc/apt/sources.list && \ apt-get update -o Acquire::Check-Valid-Until=false && \ @@ -77,7 +77,7 @@ RUN set -xe && \ rm -rf /var/lib/apt/lists/* # .Net Core SDK -ENV DOTNET_CLI_TELEMETRY_OPTOUT true +ENV DOTNET_CLI_TELEMETRY_OPTOUT=true RUN set -xe && \ apt-get update -o Acquire::Check-Valid-Until=false && \ wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \ @@ -115,4 +115,4 @@ COPY docker-entrypoint.sh / ENTRYPOINT ["/docker-entrypoint.sh"] LABEL maintainer="Herman Zvonimir Došilović " -LABEL version="1.6.0-extra" +LABEL version="1.6.1-extra" diff --git a/slim/Dockerfile b/slim/Dockerfile index cd52717..1b6cfff 100644 --- a/slim/Dockerfile +++ b/slim/Dockerfile @@ -1,10 +1,7 @@ -# Check for latest version here: https://hub.docker.com/_/buildpack-deps?tab=tags&page=1&name=buster&ordering=last_updated -# This is just a snapshot of buildpack-deps:buster that was last updated on 2019-12-28. -FROM judge0/buildpack-deps:buster-2019-12-28 +FROM buildpack-deps:bullseye # Check for latest version here: https://www.ruby-lang.org/en/downloads -ENV RUBY_VERSIONS \ - 2.7.0 +ENV RUBY_VERSIONS="2.7.0" RUN set -xe && \ for VERSION in $RUBY_VERSIONS; do \ curl -fSsL "https://cache.ruby-lang.org/pub/ruby/${VERSION%.*}/ruby-$VERSION.tar.gz" -o /tmp/ruby-$VERSION.tar.gz && \ @@ -42,7 +39,8 @@ RUN set -xe && \ git checkout ad39cc4d0fbb577fb545910095c9da5ef8fc9a1a && \ make -j$(nproc) install && \ rm -rf /tmp/* -ENV BOX_ROOT /var/local/lib/isolate + +ENV BOX_ROOT="/var/local/lib/isolate" LABEL maintainer="Herman Zvonimir Došilović " -LABEL version="1.4.0-slim" +LABEL version="1.4.1-slim" diff --git a/tests/clang++/lang.properties b/tests/clang++/lang.properties index 583a722..b681934 100644 --- a/tests/clang++/lang.properties +++ b/tests/clang++/lang.properties @@ -1,6 +1,6 @@ -VERSIONS="7.0.1" +VERSIONS="11.0.1" NAME="C++ (Clang $VERSION)" SOURCE_FILE="main.cpp" BINARY_FILE="a.out" -COMPILE_CMD="/usr/bin/clang++-7 $ARGS $SOURCE_FILE" +COMPILE_CMD="/usr/bin/clang++-11 $ARGS $SOURCE_FILE" RUN_CMD="./$BINARY_FILE" \ No newline at end of file diff --git a/tests/clang/lang.properties b/tests/clang/lang.properties index 0f0dfe1..ab370f4 100644 --- a/tests/clang/lang.properties +++ b/tests/clang/lang.properties @@ -1,6 +1,6 @@ -VERSIONS="7.0.1" +VERSIONS="11.0.1" NAME="C (Clang $VERSION)" SOURCE_FILE="main.c" BINARY_FILE="a.out" -COMPILE_CMD="/usr/bin/clang-7 $ARGS $SOURCE_FILE" +COMPILE_CMD="/usr/bin/clang-11 $ARGS $SOURCE_FILE" RUN_CMD="./$BINARY_FILE" \ No newline at end of file diff --git a/tests/fbc/lang.properties b/tests/fbc/lang.properties index 50490f5..fcbb22e 100644 --- a/tests/fbc/lang.properties +++ b/tests/fbc/lang.properties @@ -1,4 +1,4 @@ -VERSIONS="1.07.1" +VERSIONS="1.07.3" NAME="Basic (FBC $VERSION)" SOURCE_FILE="main.bas" BINARY_FILE="main" diff --git a/tests/gprolog/lang.properties b/tests/gprolog/lang.properties index a947bd2..1b6f15f 100644 --- a/tests/gprolog/lang.properties +++ b/tests/gprolog/lang.properties @@ -1,4 +1,4 @@ -VERSIONS="1.4.5" +VERSIONS="1.5.0" NAME="Prolog (GNU Prolog $VERSION)" SOURCE_FILE="main.pro" BINARY_FILE="main" diff --git a/tests/lua/lang.properties b/tests/lua/lang.properties index cb52d90..90849a2 100644 --- a/tests/lua/lang.properties +++ b/tests/lua/lang.properties @@ -2,5 +2,5 @@ VERSIONS="5.3.5" NAME="Lua ($VERSION)" SOURCE_FILE="script.lua" BINARY_FILE="luac.out" -COMPILE_CMD="/usr/local/lua-$VERSION/luac53 $ARGS $SOURCE_FILE" -RUN_CMD="/usr/local/lua-$VERSION/lua53 ./$BINARY_FILE" \ No newline at end of file +COMPILE_CMD="/usr/local/lua-$VERSION/bin/luac $ARGS $SOURCE_FILE" +RUN_CMD="/usr/local/lua-$VERSION/bin/lua ./$BINARY_FILE" \ No newline at end of file diff --git a/tests/objective-c/lang.properties b/tests/objective-c/lang.properties index 32cc17c..f064d79 100644 --- a/tests/objective-c/lang.properties +++ b/tests/objective-c/lang.properties @@ -1,6 +1,6 @@ -VERSIONS="7.0.1" +VERSIONS="11" NAME="Objective-C (Clang $VERSION)" SOURCE_FILE="main.m" BINARY_FILE="a.out" -COMPILE_CMD="/usr/bin/clang-7 `gnustep-config --objc-flags | sed 's/-W[^ ]* //g'` `gnustep-config --base-libs | sed 's/-shared-libgcc//'` -I/usr/lib/gcc/x86_64-linux-gnu/8/include $SOURCE_FILE $ARGS" +COMPILE_CMD="/usr/bin/clang-11 `gnustep-config --objc-flags | sed 's/-W[^ ]* //g'` `gnustep-config --base-libs | sed 's/-shared-libgcc//'` -I/usr/lib/gcc/x86_64-linux-gnu/10/include $SOURCE_FILE $ARGS" RUN_CMD="./$BINARY_FILE" \ No newline at end of file