-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Fix Docker build workflow #46
ci: Fix Docker build workflow #46
Conversation
@lukasheinrich How important is it that the base image is Alpine based? recast-atlas/docker/Dockerfile Lines 1 to 2 in 1a95c00
$ docker run --rm docker:20.10.5 /bin/sh -c 'cat /etc/os-release'
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.13.4
PRETTY_NAME="Alpine Linux v3.13"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/" |
@matthewfeickert no it doesn't.. it might date back to a timee where I didn't quite appreciate that alpine is not that great ;) |
Okay cool. 🙂 Great for many things!...just not always Python wheels. :P |
ah another reason is that the base image (for docker in docker) is based no alipine |
I don't actually have much experience with docker in docker workflows. Is there anything in particular we need to care about there? Or should we just be able to update to using |
if we can install the docker daemon in that image, that could work, but I haven't tried that. |
@lukasheinrich This is ready for review. Let me know if you have any questions. We can change the Docker image itself in another PR. |
To run `recast run testing/busyboxtest --backend docker` in GitHub Actions CI requires some additional work to get the Docker in Docker setup. For the time being, be content with the build tests of the Dockerfile and local testing elsewhere. For follow up c.f. Issue #50
(sorry, hit "request review" about a second after you hit "approve" so it sent it back to you) |
@lukasheinrich This is ready to go in if you're happy with it. |
@lukasheinrich just pinging. If there's nothing else to do here now this is ready for merge. |
Thanks! |
Fix the Docker build CI
To runrecast run testing/busyboxtest --backend docker
ensure that the environmental variableRECASE_DOCKER_IMAGE
is set to the value of the image that was just build in CI. Additionally, running recast locally requires that it is both installed and thatgraphviz
is installed too.To run
recast run testing/busyboxtest --backend docker
in GitHub Actions CI requires some additional work to get the Docker in Docker setup. For the time being, be content with the build tests of the Dockerfile and local testing elsewhere.c.f. Issue #50
The equivalent to running
recast run testing/busyboxtest --backend local
is still being run in
recast-atlas/.github/workflows/ci.yml
Lines 44 to 46 in 4eba02e