21kazu13 / atcoder_env

Python3 environment
0 stars 0 forks source link

Separate runtime / development container using DooD #3

Open 21kazu13 opened 1 year ago

21kazu13 commented 1 year ago
21kazu13 commented 1 year ago

test dood here: https://github.com/21kazu13/judgeenv/commit/e8aacfe4c62438f493b5d9b40ac44494da583304

Complete follows:

21kazu13 commented 1 year ago

Consider how to prepare to use

  1. Clone this repository
  2. 初回設定(docker build / runner側)
  3. initializeCommand (ssh-agent起動確認 : 参考
  4. reopen in container
  5. postcompose command (source clone / aclogin)

※gitは引き継がれる想定 https://zenn.dev/coloname33/articles/11590555881668

docker内部必要なコマンド定義

21kazu13 commented 1 year ago

These can do it

// memo: 下記で全体マウントして今のディレクトリでコマンド走らせられる $ docker run --rm -it --mount type=volume,src=atcoder,dst=/shared -w /shared/$(basename $(pwd)) ubuntu:22.10 bash // memo: ojはこれで走る(マウントは検証用のため適当) $ docker run --rm -t -v ./:/home/oj/run -w /home/oj/run runner_pypy oj t -c pypy\ $(ls .py) $ docker run --rm -t -v ./:/home/oj/run -w /home/oj/run runner_pypy oj t -c pypy\ $(ls .py) -e 1e-3 // -t: 色付き // pypy\ $(ls *.py): 良しなにfilename指定