Skip to content

Commit

Permalink
Merge pull request #76 from racket/racket-8.12
Browse files Browse the repository at this point in the history
build: add 8.12
  • Loading branch information
Bogdanp authored Feb 10, 2024
2 parents 6c2cb71 + 11ea843 commit 7ea3690
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
series: [7x, 8x]
series: [7x, 8x_1, 8x_2]
steps:
- uses: actions/checkout@master
- run: ./build.sh ${{ matrix.series }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
series: [7x, 8x, snapshot]
series: [7x, 8x_1, 8x_2, snapshot]
steps:
- uses: actions/checkout@master
- run: ./build.sh ${{ matrix.series }}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# racket-docker

Docker images for various Racket versions available on DockerHub as [`racket/racket:<version>`](https://hub.docker.com/r/racket/racket/). For example, to run a Racket 8.11.1 REPL:
Docker images for various Racket versions available on DockerHub as [`racket/racket:<version>`](https://hub.docker.com/r/racket/racket/). For example, to run a Racket 8.12 REPL:

```
$ docker run -it racket/racket:8.11.1
$ docker run -it racket/racket:8.12-full
```

#### Normal images
Expand All @@ -16,7 +16,7 @@ These images use the `minimal-install` of Racket to avoid pulling in things like
DrRacket or Scribble. This also means many `raco` commands such as `raco make`
will be missing; install the `compiler-lib` package to get most of the standard
`raco` commands. Alternatively, use the "full" images instead such as
`racket/racket:8.11.1-full`.
`racket/racket:8.12-full`.

Versions: 6.1 and above. Racket CS images are available for 7.4 and above.

Expand Down
22 changes: 18 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
set -euxfo pipefail;

case "${1:-x}" in
8x_2) declare -r series="8x_2" ;;
8x_1) declare -r series="8x_1" ;;
8x) declare -r series="8x" ;;
7x) declare -r series="7x" ;;
6x) declare -r series="6x" ;;
snapshot) declare -r series="snapshot" ;;

*) echo "usage: $0 [6x|7x|8x|snapshot]"
*) echo "usage: $0 [6x|7x|8x|8x_1|8x_2|snapshot]"
exit 1
;;
esac
Expand Down Expand Up @@ -122,19 +124,29 @@ foreach () {
done;
};

declare -r LATEST_RACKET_VERSION="8.11.1";
declare -r LATEST_RACKET_VERSION="8.12";

tag_latest () {
declare -r repository="${1}";
docker image tag "${repository}:${LATEST_RACKET_VERSION}" "${repository}:latest";
};

build_all_8x () {
foreach build_8x "8.0" "8.1" "8.2" "8.3" "8.4" "8.5" "8.6" "8.7" "8.8" "8.9" "8.10" "8.11" "8.11.1";
# The 8x series is split into two to avoid running into storage limits in CI.
build_8x_2 () {
foreach build_8x "8.10" "8.11" "8.11.1" "8.12";
tag_latest "${DOCKER_REPOSITORY}";
tag_latest "${SECONDARY_DOCKER_REPOSITORY}";
}

build_8x_1 () {
foreach build_8x "8.0" "8.1" "8.2" "8.3" "8.4" "8.5" "8.6" "8.7" "8.8" "8.9";
}

build_all_8x () {
build_8x_1;
build_8x_2;
}

build_all_7x () {
foreach build_6x_7x_old "7.0" "7.1" "7.3";
foreach build_7x "7.4" "7.5" "7.6" "7.7" "7.8" "7.9";
Expand All @@ -147,6 +159,8 @@ build_all_6x () {
build_base;

case "$series" in
8x_2) build_8x_2 ;;
8x_1) build_8x_1 ;;
8x) build_all_8x ;;
7x) build_all_7x ;;
6x) build_all_6x ;;
Expand Down

0 comments on commit 7ea3690

Please sign in to comment.