Skip to content

Commit c698216

Browse files
committed
Merge branch '6045-docker-hub-official-image' of github.com:khalyomede/roc into 6045-docker-hub-official-image
2 parents 6033733 + 98b988a commit c698216

File tree

3 files changed

+48
-5
lines changed

3 files changed

+48
-5
lines changed

.github/workflows/docker.yml

+22-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Docker images tests
66
jobs:
77
nightly-ubuntu-latest:
88
name: nightly-ubuntu-latest
9-
runs-on: [ubuntu-20.04]
9+
runs-on: [ubuntu-22.04]
1010
timeout-minutes: 120
1111
steps:
1212
- uses: actions/checkout@v3
@@ -23,7 +23,7 @@ jobs:
2323

2424
nightly-ubuntu-2204:
2525
name: nightly-ubuntu-2204
26-
runs-on: [ubuntu-20.04]
26+
runs-on: [ubuntu-22.04]
2727
timeout-minutes: 120
2828
steps:
2929
- uses: actions/checkout@v3
@@ -39,7 +39,7 @@ jobs:
3939

4040
nightly-ubuntu-2004:
4141
name: nightly-ubuntu-2004
42-
runs-on: [ubuntu-20.04]
42+
runs-on: [ubuntu-22.04]
4343
timeout-minutes: 120
4444
steps:
4545
- uses: actions/checkout@v3
@@ -55,7 +55,7 @@ jobs:
5555

5656
nightly-debian-latest:
5757
name: nightly-debian-latest
58-
runs-on: [ubuntu-20.04]
58+
runs-on: [ubuntu-22.04]
5959
timeout-minutes: 120
6060
steps:
6161
- uses: actions/checkout@v3
@@ -71,7 +71,7 @@ jobs:
7171

7272
nightly-debian-bookworm:
7373
name: nightly-debian-bookworm
74-
runs-on: [ubuntu-20.04]
74+
runs-on: [ubuntu-22.04]
7575
timeout-minutes: 120
7676
steps:
7777
- uses: actions/checkout@v3
@@ -84,3 +84,20 @@ jobs:
8484

8585
- name: Run hello world test
8686
run: docker-compose -f docker/nightly-debian-bookworm/docker-compose.yml run roc examples/helloWorld.roc
87+
88+
nightly-debian-buster:
89+
name: nightly-debian-buster
90+
runs-on: [ubuntu-22.04]
91+
timeout-minutes: 120
92+
steps:
93+
- uses: actions/checkout@v3
94+
95+
- name: Copy example docker file
96+
run: cp docker/nightly-debian-buster/docker-compose.example.yml docker/nightly-debian-buster/docker-compose.yml
97+
98+
- name: Build image
99+
run: docker-compose -f docker/nightly-debian-buster/docker-compose.yml build
100+
101+
- name: Run hello world test
102+
run: docker-compose -f docker/nightly-debian-buster/docker-compose.yml run roc examples/helloWorld.roc
103+
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM debian:buster
2+
3+
RUN apt-get update --fix-missing
4+
RUN apt-get upgrade --yes
5+
6+
RUN apt-get install --yes wget
7+
8+
# you can leave out libc-dev and binutils if you don't need the REPL
9+
RUN apt-get install --yes libc-dev binutils
10+
11+
RUN wget -q -O roc.tar.gz https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-old_linux_x86_64-latest.tar.gz
12+
13+
RUN mkdir /usr/lib/roc
14+
15+
RUN tar -xvz -f roc.tar.gz --directory /usr/lib/roc --strip-components=1
16+
17+
ENV PATH="$PATH:/usr/lib/roc"
18+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: "3"
2+
services:
3+
roc:
4+
build: .
5+
entrypoint: roc
6+
working_dir: /home/ubuntu/app
7+
volumes:
8+
- ../../:/home/ubuntu/app

0 commit comments

Comments
 (0)