Open multimeric opened 4 months ago
@multimeric really appreciate your putting this together! And that you used it to convert my docker lesson! Must have felt a bit circular.
I'm trying to use this branch to convert my git lesson (with PRs/branches/conflicts) in the incubator to the workbench. I got the following error when I tried to build the image.
ERROR: failed to solve: process "/usr/local/bin/_dockerfile_shell.sh R -e 'options(renv.config.pak.enabled = TRUE); renv::restore()'" did not complete successfully: exit code: 1
Any help you can provide?
Happy to help. Can you list the steps you used, and the output from the build step?
I cloned the lesson transition repo, then updated the submodule. Then ran the build command. Below is the full output from the build command.
My best guess is that your docker is compiling it for ARM (the aarch64
I can see in the logs). This must cause the system dependencies to not install correctly, and therefore the dependent R packages such as gert
also fail.
If you add --platform linux/amd64
to the docker build
command, does it do anything differently?
Motivation: it's surprisingly difficult to get this to run, because there are some hidden dependencies and tricks required to get it working. Also, not everything is portable, as shown by #96. See also #95 for more motivation.
Changes
Dockerfile
env.yaml
)xslt
to 1.4.5, since this compiles correctly using conda librariesCloses #95.
Testing I have already tested this on https://github.com/carpentries-incubator/docker-introduction, which completed successfully. Some tweaks are needed however.