Skip to content

Commit a947bea

Browse files
authored
Merge pull request #84 from racket/racket-9.0
build: add 9.0
2 parents 69ecf0f + e1e6531 commit a947bea

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
series: [8x_1, 8x_2]
14+
series: [8x_1, 8x_2, 9x]
1515
steps:
1616
- uses: actions/checkout@master
1717
- run: ./build.sh ${{ matrix.series }}

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
series: [8x_1, 8x_2, snapshot]
10+
series: [8x_1, 8x_2, 9x, snapshot]
1111
steps:
1212
- uses: actions/checkout@master
1313
- run: ./build.sh ${{ matrix.series }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# racket-docker
22

3-
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.18 REPL:
3+
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 9.0 REPL:
44

55
```
6-
$ docker run -it racket/racket:8.18-full
6+
$ docker run -it racket/racket:9.0-full
77
```
88

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

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

build.sh

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
set -euxfo pipefail;
44

55
case "${1:-x}" in
6+
9x) declare -r series="9x" ;;
67
8x_2) declare -r series="8x_2" ;;
78
8x_1) declare -r series="8x_1" ;;
89
8x) declare -r series="8x" ;;
910
7x) declare -r series="7x" ;;
1011
6x) declare -r series="6x" ;;
1112
snapshot) declare -r series="snapshot" ;;
1213

13-
*) echo "usage: $0 [6x|7x|8x|8x_1|8x_2|snapshot]"
14+
*) echo "usage: $0 [6x|7x|8x|8x_1|8x_2|9x|snapshot]"
1415
exit 1
1516
;;
1617
esac
@@ -58,6 +59,18 @@ build_snapshot () {
5859
build "racket" "${full_installer}" "${version}" "${version}-full";
5960
}
6061

62+
build_9x () {
63+
declare -r version="${1}";
64+
65+
declare -r installer_path="racket-minimal-${version}-x86_64-linux-natipkg.sh";
66+
declare -r installer=$(installer_url "${version}" "${installer_path}") || exit "${?}";
67+
build "racket" "${installer}" "${version}" "${version}";
68+
69+
declare -r full_installer_path="racket-${version}-x86_64-linux-natipkg.sh";
70+
declare -r full_installer=$(installer_url "${version}" "${full_installer_path}") || exit "${?}";
71+
build "racket" "${full_installer}" "${version}" "${version}-full";
72+
};
73+
6174
build_8x () {
6275
declare -r version="${1}";
6376

@@ -123,18 +136,22 @@ foreach () {
123136
done;
124137
};
125138

126-
declare -r LATEST_RACKET_VERSION="8.18";
139+
declare -r LATEST_RACKET_VERSION="9.0";
127140

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

146+
build_all_9x () {
147+
foreach build_9x "9.0";
148+
tag_latest "${DOCKER_REPOSITORY}";
149+
tag_latest "${SECONDARY_DOCKER_REPOSITORY}";
150+
}
151+
133152
# The 8x series is split into two to avoid running into storage limits in CI.
134153
build_8x_2 () {
135154
foreach build_8x "8.10" "8.11" "8.11.1" "8.12" "8.13" "8.14" "8.15" "8.16" "8.17" "8.18";
136-
tag_latest "${DOCKER_REPOSITORY}";
137-
tag_latest "${SECONDARY_DOCKER_REPOSITORY}";
138155
}
139156

140157
build_8x_1 () {
@@ -158,6 +175,7 @@ build_all_6x () {
158175
build_base;
159176

160177
case "$series" in
178+
9x) build_all_9x ;;
161179
8x_2) build_8x_2 ;;
162180
8x_1) build_8x_1 ;;
163181
8x) build_all_8x ;;

0 commit comments

Comments
 (0)