Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Docker image with reproducible build environment #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Genius1237
Copy link

Since there are quite a lot of dependencies needed to build cadmium, I've made a docker image that incorporates in everything needed. This will be especially useful for new users who want to build and test this out.

All that is needed to run a container with this image is to have docker installed, build/pull a prebuilt image, launch a container with the appropriate flags (--privileged -v /dev:/dev) and run the update-binfmts --enable command within the container. The container should be ready to build. Tested this out on a fresh ubuntu server 20.04 VM and nothing other than docker is needed on the host.

I've also uploaded a pre-built image here, in case anyone wants to test out.

### Docker Method
`Dockerfile` defines a build environment containing all the dependencies needed. The docker image can be build with `docker build . -t cadmium_build`. After this, it can be run as follows
```
user@hostname:~/Cadmium$ docker run --rm -it --privileged -v /dev:/dev -v $(pwd):/code cadmium bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the image name should be cadmium_build here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants