Closed missinglink closed 1 year ago
Agh so it seems that provision.sh
can only be run in a CI env, I'd like to run this locally in docker running locally, is that possible?
Agh so it seems that
provision.sh
can only be run in a CI env, I'd like to run this ~locally~ in docker running locally, is that possible?
Yes, it's designed to be run in some local environment, as it's installing a lot of libraries. It's to avoid breaking or polluting your real environment.
I've tested provision.sh
script in Docker containers, Vagrant, CI/CD such as GitHub Actions, Travis or even in Colab.
If you want to run it on some machine, you still can, but you need to workaround these conditions: https://github.com/EA31337/EA-Tester/blob/v1.0.4/scripts/provision.sh#L39-L44
Thanks, the following change allowed me to execute make docker-build
:
diff --git a/Dockerfile b/Dockerfile
index 1455562..4f454db 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,6 +20,7 @@ ARG PROVISION_MONO=0
ARG PROVISION_SSH=0
ARG PROVISION_SUDO=1
ARG PROVISION_VNC=1
+ARG CI=1
# Provision container image.
COPY scripts /opt/scripts
Heya,
When running the
make docker-build
there is an error executingprovision.sh
. The CWD isWORKDIR /home/ubuntu
and the file is copied to/opt/scripts
.I was going to fiddle around and change the
WORKDIR
but thought maybe it's an error on my part?