Skip to content

Commit

Permalink
update package to docker image readme
Browse files Browse the repository at this point in the history
Co-authored-by: MCJ Vasseur <[email protected]>
  • Loading branch information
as6325400 and vmcj committed Nov 21, 2024
1 parent 55881c8 commit 84e9669
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,10 @@ where `version` is the DOMjudge version to create the images for, e.g. `5.3.0`.

To build domjudge with local sources, run
```bash
tar --exclude-vcs -czf <path to domjudge-packaging>/docker/domjudge.tar.gz <domjudge source directory>
cd <path to domjudge-packaging>/docker
dj_packaging_dir=<path to domjudge-packaging>
dj_source_dir =<domjudge source directory>
tar --exclude-vcs -czf "${dj_packaging_dir}/docker/domjudge.tar.gz" -C $(dirname "$dj_source_dir") $(basename "$dj_source_dir")
cd ${dj_packaging_dir}/docker"
docker build -t domjudge -f domserver/Dockerfile .
```
Note that the source directory name has to match `domjudge-*`.
Expand Down

0 comments on commit 84e9669

Please sign in to comment.