Skip to content
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

Dockerfile for creating c4builder docker image #51

Merged
merged 1 commit into from Apr 12, 2022
Merged

Dockerfile for creating c4builder docker image #51

merged 1 commit into from Apr 12, 2022

Conversation

craigwardman
Copy link
Contributor

Added a Dockerfile that builds a container which can be used to build c4builder projects.

On startup the container scans the "pwd (including subfolders)" for any ".c4builder" files and then builds the .c4builder project in Docker, so the host does not require to setup the build dependencies (such as Java, Node, Graphviz etc.)

Once you have built the container (e.g. docker build . -t c4builder)

Then the usage is:
docker run -v $(pwd):/pwd c4builder

By default this runs as UID 1000, if you want the files to be written as a different user use: "--user" Docker argument.

…an/build all .c4builder files in a volume mounted folder
@adrianvlupu adrianvlupu merged commit cafb8a7 into adrianvlupu:master Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants