Skip to content

Commit

Permalink
Update mpc paths in docker instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
cyderize committed Jul 15, 2024
1 parent afa14eb commit 02f8ba1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
7 changes: 7 additions & 0 deletions src/data/challenge/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ export const info = {
const problemSubmissionDeadline = 'Fri, 28 June 2024'
return {
announcements: [
<>
<strong>2024-07-15</strong> Update the{' '}
<Link href="/challenge/2024/docker">
Docker image preparation instructions
</Link>{' '}
to fix some minor errors.
</>,
<>
<strong>2024-06-03</strong> Problem submission deadline extended.
</>,
Expand Down
22 changes: 11 additions & 11 deletions src/pages/challenge/2024/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ must comply wih the following requirements:
You can test if your submission functions as required by running the command for the entry class
you are participating in:

| Class | Command |
| ----- | ----------------------------------------------------------------------------------------- |
| FD | `docker run --rm <repository>:<tag> minizinc fd.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| FREE | `docker run --rm <repository>:<tag> minizinc free.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| PAR | `docker run --rm <repository>:<tag> minizinc par.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| Class | Command |
| ----- | --------------------------------------------------------------------------------------------------- |
| FD | `docker run --rm <repository>:<tag> minizinc /minizinc/fd.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| FREE | `docker run --rm <repository>:<tag> minizinc /minizinc/free.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| PAR | `docker run --rm <repository>:<tag> minizinc /minizinc/par.mpc /minizinc/test.mzn /minizinc/2.dzn` |

Push your image to Docker Hub and complete the web form (which will be made available to
participants at the start of the initial submission round) to submit your entry.
Expand Down Expand Up @@ -192,7 +192,7 @@ docker build -t chuffed:latest .
And check that it functions by running

```sh
docker run --rm chuffed:latest minizinc /classes/fd.mpc /minizinc/test.mzn /minizinc/2.dzn
docker run --rm chuffed:latest minizinc /minizinc/fd.mpc /minizinc/test.mzn /minizinc/2.dzn
```

With your own image, replace `chuffed:latest` with an appropriate name for your solver in the format
Expand Down Expand Up @@ -370,11 +370,11 @@ the option `--change 'ENV MY_VAR=new_value'`.
You can test if your submission functions as required by running the command for the entry class
you are participating in:

| Class | Command |
| ----- | ----------------------------------------------------------------------------------------- |
| FD | `docker run --rm <repository>:<tag> minizinc fd.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| FREE | `docker run --rm <repository>:<tag> minizinc free.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| PAR | `docker run --rm <repository>:<tag> minizinc par.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| Class | Command |
| ----- | --------------------------------------------------------------------------------------------------- |
| FD | `docker run --rm <repository>:<tag> minizinc /minizinc/fd.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| FREE | `docker run --rm <repository>:<tag> minizinc /minizinc/free.mpc /minizinc/test.mzn /minizinc/2.dzn` |
| PAR | `docker run --rm <repository>:<tag> minizinc /minizinc/par.mpc /minizinc/test.mzn /minizinc/2.dzn` |

It is strongly recommended that you also test your submission using `-v` and ensure that your
MiniZinc library is being picked up correctly.
Expand Down

0 comments on commit 02f8ba1

Please sign in to comment.