From 4dc041b9a391f493f81237f5395951c0b75e8922 Mon Sep 17 00:00:00 2001 From: Lin Lyu Date: Sun, 9 Oct 2022 10:09:10 +0800 Subject: [PATCH] bug fix: php Directory nonexistent fixed problem as follow, ``` #7 1191.2 Processing triggers for php8.1-cli (8.1.11-1+ubuntu18.04.1+deb.sury.org+2) ... #7 1191.3 update-alternatives: using /usr/bin/gcc-9 to provide /usr/bin/gcc (gcc) in auto mode #7 1191.3 update-alternatives: using /usr/bin/g++-9 to provide /usr/bin/g++ (g++) in auto mode #7 1191.3 /bin/sh: 1: cannot create /etc/php/8.0/cli/conf.d/10-opcache-jit.ini: Directory nonexistent ------ executor failed running [/bin/sh -c buildDeps='software-properties-common git libtool cmake python-dev python3-pip python-pip libseccomp-dev curl' && apt-get update && apt-get install -y python python3 python-pkg-resources python3-pkg-resources $buildDeps && add-apt-repository ppa:openjdk-r/ppa && add-apt-repository ppa:longsleep/golang-backports && add-apt-repository ppa:ubuntu-toolchain-r/test && add-apt-repository ppa:ondrej/php && curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && apt-get update && apt-get install -y golang-go openjdk-11-jdk php-cli nodejs gcc-9 g++-9 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 40 && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 40 && phpJitOption='opcache.enable=1\nopcache.enable_cli=1\nopcache.jit=1205\nopcache.jit_buffer_size=64M' && echo $phpJitOption > /etc/php/8.0/cli/conf.d/10-opcache-jit.ini && pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -I --no-cache-dir psutil gunicorn flask requests idna && cd /tmp && git clone -b newnew --depth 1 https://gitee.com/qduoj/Judger.git && cd Judger && mkdir build && cd build && cmake .. && make && make install && cd ../bindings/Python && python3 setup.py install && apt-get purge -y --auto-remove $buildDeps && apt-get clean && rm -rf /var/lib/apt/lists/* && mkdir -p /code && useradd -u 12001 compiler && useradd -u 12002 code && useradd -u 12003 spj && usermod -a -G code spj]: exit code: 2 ``` --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 2ccfaad..6f10420 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ RUN buildDeps='software-properties-common git libtool cmake python-dev python3-p update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 40 && \ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 40 && \ phpJitOption='opcache.enable=1\nopcache.enable_cli=1\nopcache.jit=1205\nopcache.jit_buffer_size=64M' && \ + mkdir -p /etc/php/8.0/cli/conf.d/ && \ echo $phpJitOption > /etc/php/8.0/cli/conf.d/10-opcache-jit.ini && \ pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -I --no-cache-dir psutil gunicorn flask requests idna && \ cd /tmp && git clone -b newnew --depth 1 https://gitee.com/qduoj/Judger.git && cd Judger && \