mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
Merge branch '6045-docker-hub-official-image' of github.com:khalyomede/roc into 6045-docker-hub-official-image
This commit is contained in:
commit
c698216ec7
3 changed files with 48 additions and 5 deletions
27
.github/workflows/docker.yml
vendored
27
.github/workflows/docker.yml
vendored
|
|
@ -6,7 +6,7 @@ name: Docker images tests
|
|||
jobs:
|
||||
nightly-ubuntu-latest:
|
||||
name: nightly-ubuntu-latest
|
||||
runs-on: [ubuntu-20.04]
|
||||
runs-on: [ubuntu-22.04]
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
|
||||
nightly-ubuntu-2204:
|
||||
name: nightly-ubuntu-2204
|
||||
runs-on: [ubuntu-20.04]
|
||||
runs-on: [ubuntu-22.04]
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -39,7 +39,7 @@ jobs:
|
|||
|
||||
nightly-ubuntu-2004:
|
||||
name: nightly-ubuntu-2004
|
||||
runs-on: [ubuntu-20.04]
|
||||
runs-on: [ubuntu-22.04]
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
|
||||
nightly-debian-latest:
|
||||
name: nightly-debian-latest
|
||||
runs-on: [ubuntu-20.04]
|
||||
runs-on: [ubuntu-22.04]
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -71,7 +71,7 @@ jobs:
|
|||
|
||||
nightly-debian-bookworm:
|
||||
name: nightly-debian-bookworm
|
||||
runs-on: [ubuntu-20.04]
|
||||
runs-on: [ubuntu-22.04]
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -84,3 +84,20 @@ jobs:
|
|||
|
||||
- name: Run hello world test
|
||||
run: docker-compose -f docker/nightly-debian-bookworm/docker-compose.yml run roc examples/helloWorld.roc
|
||||
|
||||
nightly-debian-buster:
|
||||
name: nightly-debian-buster
|
||||
runs-on: [ubuntu-22.04]
|
||||
timeout-minutes: 120
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Copy example docker file
|
||||
run: cp docker/nightly-debian-buster/docker-compose.example.yml docker/nightly-debian-buster/docker-compose.yml
|
||||
|
||||
- name: Build image
|
||||
run: docker-compose -f docker/nightly-debian-buster/docker-compose.yml build
|
||||
|
||||
- name: Run hello world test
|
||||
run: docker-compose -f docker/nightly-debian-buster/docker-compose.yml run roc examples/helloWorld.roc
|
||||
|
||||
|
|
|
|||
18
docker/nightly-debian-buster/Dockerfile
Normal file
18
docker/nightly-debian-buster/Dockerfile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
FROM debian:buster
|
||||
|
||||
RUN apt-get update --fix-missing
|
||||
RUN apt-get upgrade --yes
|
||||
|
||||
RUN apt-get install --yes wget
|
||||
|
||||
# you can leave out libc-dev and binutils if you don't need the REPL
|
||||
RUN apt-get install --yes libc-dev binutils
|
||||
|
||||
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
|
||||
|
||||
RUN mkdir /usr/lib/roc
|
||||
|
||||
RUN tar -xvz -f roc.tar.gz --directory /usr/lib/roc --strip-components=1
|
||||
|
||||
ENV PATH="$PATH:/usr/lib/roc"
|
||||
|
||||
8
docker/nightly-debian-buster/docker-compose.example.yml
Normal file
8
docker/nightly-debian-buster/docker-compose.example.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
version: "3"
|
||||
services:
|
||||
roc:
|
||||
build: .
|
||||
entrypoint: roc
|
||||
working_dir: /home/ubuntu/app
|
||||
volumes:
|
||||
- ../../:/home/ubuntu/app
|
||||
Loading…
Add table
Add a link
Reference in a new issue