Skip to content

Commit 98b988a

Browse files
committed
#6045 add Debian 10 (Buster) compatible Docker image
1 parent 6a18626 commit 98b988a

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

.github/workflows/docker.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,22 @@ jobs:
9898

9999
- name: Run C platform test
100100
run: docker-compose -f docker/nightly-debian-bookworm/docker-compose.yml run roc examples/platform-switching/rocLovesC.roc
101+
102+
nightly-debian-buster:
103+
name: nightly-debian-buster
104+
runs-on: [ubuntu-20.04]
105+
timeout-minutes: 120
106+
steps:
107+
- uses: actions/checkout@v3
108+
109+
- name: Copy example docker file
110+
run: cp docker/nightly-debian-buster/docker-compose.example.yml docker/nightly-debian-buster/docker-compose.yml
111+
112+
- name: Build image
113+
run: docker-compose -f docker/nightly-debian-buster/docker-compose.yml build
114+
115+
- name: Run hello world test
116+
run: docker-compose -f docker/nightly-debian-buster/docker-compose.yml run roc examples/helloWorld.roc
117+
118+
- name: Run C platform test
119+
run: docker-compose -f docker/nightly-debian-buster/docker-compose.yml run roc examples/platform-switching/rocLovesC.roc
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM debian:buster
2+
3+
RUN apt-get update --fix-missing
4+
RUN apt-get upgrade --yes
5+
RUN apt-get install --yes \
6+
wget \
7+
libc-dev \
8+
binutils \
9+
build-essential \
10+
clang
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+
RUN mkdir /usr/lib/roc
13+
# --strip-components=1 not needed once https://github.com/roc-lang/roc/issues/4118 is solved.
14+
RUN tar -xvz -f roc.tar.gz --directory /usr/lib/roc --strip-components=1
15+
16+
ENV PATH="$PATH:/usr/lib/roc"
Lines changed: 8 additions & 0 deletions
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)