Skip to content

Commit

Permalink
test: add docker hello-world integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpig committed Dec 10, 2024
1 parent 250e6fe commit 6337f1f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,21 @@ jobs:
path: .

- name: chmod brownie
run: chmod 755 ./brownie
run: |
chmod 755 ./brownie
sudo mv ./brownie /usr/bin/brownie
- name: run oci tests
working-directory: test/runtime-tools
run: |
sudo RUNTIME=../../brownie ../oci-integration.sh
sudo RUNTIME=/usr/bin/brownie ../oci-integration.sh
- name: set docker daemon
run: |
cat test/daemon.json | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
- name: run docker hello-world
run: |
sudo ./test/docker-integration.sh
7 changes: 7 additions & 0 deletions test/daemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"runtimes": {
"brownie": {
"path": "/usr/bin/brownie"
}
}
}
7 changes: 7 additions & 0 deletions test/docker-integration.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

docker run \
--rm \
--runtime brownie \
hello-world

0 comments on commit 6337f1f

Please sign in to comment.