Coder Social home page Coder Social logo

runtimes-docker's People

Contributors

hieplpvip avatar int-y1 avatar kipply avatar kiritofeng avatar ninjaclasher avatar pxpeterxu avatar quantum5 avatar riolku avatar xyene avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

runtimes-docker's Issues

E: Unable to locate package v8dmoj

"Build tier 2 Docker image" is failing because of the error E: Unable to locate package v8dmoj. Here's an example.

It looks like apt-get update tried to query https://apt.dmoj.ca but got error 500. I think this caused the v8dmoj error. Here are the logs:

#5 497.4 Ign:7 https://apt.dmoj.ca bullseye InRelease
#5 498.8 Ign:7 https://apt.dmoj.ca bullseye InRelease
#5 501.1 Ign:7 https://apt.dmoj.ca bullseye InRelease
#5 505.4 Err:7 https://apt.dmoj.ca bullseye InRelease
#5 505.4   500  Internal Server Error [IP: 172.67.219.125 443]

Docker images for tier 1/2/3 failing to build

I've been experimenting with different judge tiers. Just two days ago, I was able to run make judge-tier1 on an Ubuntu 18.04 system with no problem. Today I tried to make a tier 1 judge on a fresh system, and I get a PackageNotFoundError (see below). I tried making tier 2 and tier 3 and the same error. Then I went back to my original system, deleted the tier 1 image, and attempted to rebuild, received the same error on the system that was able to build it fine two days ago. Has something changed recently? Here is the result I am getting for the command make judge-tier1:

ubuntu@:~/judge/.docker$ make judge-tier1
cd tier1 && docker build --build-arg TAG="master" -t dmoj/judge-tier1 -t dmoj/judge-tier1:latest .
Sending build context to Docker daemon  2.048kB
Step 1/4 : FROM dmoj/runtimes-tier1
latest: Pulling from dmoj/runtimes-tier1
eb43504b07c3: Pull complete
31154906f296: Pull complete
Digest: sha256:655d8e16518af4d6645ea00bd78539b526a3314dd9daefca6adfab8a705d2746
Status: Downloaded newer image for dmoj/runtimes-tier1:latest
 ---> 4191790a4965
Step 2/4 : ARG TAG=master
 ---> Running in 63454c8c8819
Removing intermediate container 63454c8c8819
 ---> ff981521bb69
Step 3/4 : RUN mkdir /judge && cd /judge && 	curl -L https://github.com/DMOJ/judge/archive/"${TAG}".tar.gz | tar -xz --strip-components=1 && 	pip3 install -e . && 	. ~judge/.profile && 	runuser -u judge -w PATH -- dmoj-autoconf -V > /judge-runtime-paths.yml && 	echo '  crt_x86_in_lib32: true' >> /judge-runtime-paths.yml
 ---> Running in 3096c8e16155
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   124  100   124    0     0   1425      0 --:--:-- --:--:-- --:--:--  1441
100   125  100   125    0     0    647      0 --:--:-- --:--:-- --:--:--   647
100  141k    0  141k    0     0   360k      0 --:--:-- --:--:-- --:--:--  360k
Obtaining file:///judge
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting pygments
  Downloading Pygments-2.6.1-py3-none-any.whl (914 kB)
Collecting pyyaml
  Downloading PyYAML-5.3.1.tar.gz (269 kB)
Collecting termcolor
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
Collecting pylru
  Downloading pylru-1.2.0.tar.gz (18 kB)
Collecting setproctitle
  Downloading setproctitle-1.1.10.tar.gz (24 kB)
Collecting watchdog
  Downloading watchdog-0.10.3.tar.gz (94 kB)
Collecting pathtools>=0.1.1
  Downloading pathtools-0.1.2.tar.gz (11 kB)
Building wheels for collected packages: pyyaml, termcolor, pylru, setproctitle, watchdog, pathtools
  Building wheel for pyyaml (setup.py): started
  Building wheel for pyyaml (setup.py): finished with status 'done'
  Created wheel for pyyaml: filename=PyYAML-5.3.1-cp38-cp38-linux_x86_64.whl size=44617 sha256=d8118565a7daa3323390f5bb097aa7c3beae7e0873789d9d438ccd9d0fdf9cf7
  Stored in directory: /root/.cache/pip/wheels/13/90/db/290ab3a34f2ef0b5a0f89235dc2d40fea83e77de84ed2dc05c
  Building wheel for termcolor (setup.py): started
  Building wheel for termcolor (setup.py): finished with status 'done'
  Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4830 sha256=a13bec447fc516e8c2846b207136c0219778d1c38bbac9ac1a6044ad2411c2ae
  Stored in directory: /root/.cache/pip/wheels/a0/16/9c/5473df82468f958445479c59e784896fa24f4a5fc024b0f501
  Building wheel for pylru (setup.py): started
  Building wheel for pylru (setup.py): finished with status 'done'
  Created wheel for pylru: filename=pylru-1.2.0-py3-none-any.whl size=15691 sha256=0cd23b9c69141e490eb26692e28cfd0d8858ff322d0c9540e19b817971455932
  Stored in directory: /root/.cache/pip/wheels/e2/7c/82/ffc1d36a8a917ca378e8d2fb222e0e49da0427d76c23aaaa66
  Building wheel for setproctitle (setup.py): started
  Building wheel for setproctitle (setup.py): finished with status 'done'
  Created wheel for setproctitle: filename=setproctitle-1.1.10-cp38-cp38-linux_x86_64.whl size=29225 sha256=72d4b729c0d59849cc1b607f954b3ef969be23602d896ee64a2c3bead8d34b1a
  Stored in directory: /root/.cache/pip/wheels/ec/65/c1/3fef7c77663701c7f470cd2f41cfb33d803a1cbb270a4fd994
  Building wheel for watchdog (setup.py): started
  Building wheel for watchdog (setup.py): finished with status 'done'
  Created wheel for watchdog: filename=watchdog-0.10.3-py3-none-any.whl size=73871 sha256=126342a14f494a1f265741354f3263610e5a55736577ee122cc64458fb07ae13
  Stored in directory: /root/.cache/pip/wheels/f8/39/45/b80612a24e42d9de0bd5eaf69eaf953edc25e1a9809d3d989f
  Building wheel for pathtools (setup.py): started
  Building wheel for pathtools (setup.py): finished with status 'done'
  Created wheel for pathtools: filename=pathtools-0.1.2-py3-none-any.whl size=8784 sha256=42ce4b8d09bbdff9beb79c07ad9b8f5fd5a1056e1c82eb00f1eba46d7a82deb6
  Stored in directory: /root/.cache/pip/wheels/4c/8e/7e/72fbc243e1aeecae64a96875432e70d4e92f3d2d18123be004
Successfully built pyyaml termcolor pylru setproctitle watchdog pathtools
Installing collected packages: pygments, pyyaml, termcolor, pylru, setproctitle, pathtools, watchdog, dmoj
  Running setup.py develop for dmoj
Successfully installed dmoj pathtools-0.1.2 pygments-2.6.1 pylru-1.2.0 pyyaml-5.3.1 setproctitle-1.1.10 termcolor-1.1.0 watchdog-0.10.3
Traceback (most recent call last):
  File "/usr/bin/dmoj-autoconf", line 33, in <module>
    sys.exit(load_entry_point('dmoj', 'console_scripts', 'dmoj-autoconf')())
  File "/usr/bin/dmoj-autoconf", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
  File "/usr/lib/python3.8/importlib/metadata.py", line 504, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/lib/python3.8/importlib/metadata.py", line 177, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: dmoj
The command '/bin/sh -c mkdir /judge && cd /judge && 	curl -L https://github.com/DMOJ/judge/archive/"${TAG}".tar.gz | tar -xz --strip-components=1 && 	pip3 install -e . && 	. ~judge/.profile && 	runuser -u judge -w PATH -- dmoj-autoconf -V > /judge-runtime-paths.yml && 	echo '  crt_x86_in_lib32: true' >> /judge-runtime-paths.yml' returned a non-zero code: 1
Makefile:9: recipe for target 'judge-tier1' failed
make: *** [judge-tier1] Error 1

all

FROM dmoj/runtimes-tier1

ARG TAG=master
RUN mkdir /judge && cd /judge &&
curl -L https://github.com/DMOJ/judge/archive/"${TAG}".tar.gz | tar -xz --strip-components=1 &&
pip3 install -e . &&
runuser -u judge -w PATH -- dmoj-autoconf -V > /judge-runtime-paths.yml &&
echo ' crt_x86_in_lib32: true' >> /judge-runtime-paths.yml

ENTRYPOINT ["/judge/.docker/entry"]

Upgrade base image to sid

It mostly just works. Outstanding errors:

  • OCaml
Auto-configuring OCAML:  Failed self-test
  Attempted:
    ocaml: /usr/bin/ocamlopt
  Errors:
    Traceback (most recent call last):
      File "/judge/dmoj/executors/base_executor.py", line 136, in run_self_test
        executor = cls(cls.test_name, utf8bytes(cls.test_program))
      File "/judge/dmoj/executors/compiled_executor.py", line 64, in __call__
        obj.compile()
      File "/judge/dmoj/executors/compiled_executor.py", line 248, in compile
        self.handle_compile_error(output)
      File "/judge/dmoj/executors/compiled_executor.py", line 233, in handle_compile_error
        raise CompileError(output)
    dmoj.error.CompileError: File "/tmp/tmpl80n39pv/self_test.ml", line 1:
    Error: Cannot find file nums.cmxa
  • Steel Bank Common Lisp
Auto-configuring SBCL:   Denied access via syscall openat: /dev/tty

Error: unbound variable: read-lines

	Call history:

	/tmp/tmp9ircrd5n/self_test.scm:1: read-lines	 	<--
ERROR: ld.so: object '/tmp/tmp2_12wxrq/setbufsize.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Using /usr/bin/sbcl
  • Chicken Scheme (upgrading from 4.13 to 5.2 has breaking changes)
Auto-configuring SCM:    Failed self-test
  Attempted:
    chicken-csc: /usr/bin/chicken-csc
  Errors:
    Got unexpected stdout output:
    
  • Ruby
Auto-configuring RUBY2:  Failed to find "ruby2"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.