Closed jonas-martinez closed 2 years ago
This issue cannot be fixed properly for the moment, this will be fixed when all the repositories used by devtools are made public.
For the moment you can use this workaround to build the image :
Add these two arguments to the docker build command:
CI=true
GH_PERSONNAL_TOKEN=your_gh_token
The complete build command should look like this :
docker build --build-arg GH_PERSONNAL_TOKEN=your_gh_token --build-arg CI=true -t lenra/devtools .
You can generate your GH_PERSONNAL_TOKEN by following the instructions here https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
I'm referencing this workaround in the README for the moment so that anyone can build the docker image without much trouble.
The repositories used by devtools are now public, this issue can be closed.
Linked to https://github.com/lenra-io/dev-tools/pull/135
What should be done
I cannot build devtools image locally. The first problem is where we specified in the
.dockerignore
to ignore thedeps
folder which means that the Docker image will try to fetch the dependency repositories online but it doesn't have the github access token.The second problem occurs when the docker image tries to compile the dependencies :