-
Notifications
You must be signed in to change notification settings - Fork 10
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 to work on centos7 locally #979
Conversation
docker/centos-local-build/run.sh
Outdated
--mount type=bind,src=/home/marechaljas/CLionProjects/antares-xpansion,dst=/mnt/sources \ | ||
--mount type=bind,src=/home/marechaljas/CLionProjects/docker_caches,dst=/mnt/caches \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you put your folder names here, was it intentional as an example? in that case, maybe add a mention in the readme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I've updated to now accept parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tar -czf antares-xpansion-centos.tar.gz -C $install_dir . --exclude='examples' | ||
chmod 777 antares-xpansion-centos.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also remove all other files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which "all other files" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. The point of having them in this directory instead of the container is to be able to reuse them in subsequent build. Especially the vcpkg cache.
This pull request introduces a new setup for building
xpansion
in a CentOS 7 environment using Docker. The changes include a README file with detailed instructions, a build script, a Dockerfile, and a run script.The most important changes include:
Documentation:
docker/centos-local-build/README.MD
: Added a comprehensive guide on how to locally generate a CentOS 7 asset, including prerequisites, usage instructions, and advanced usage scenarios.Build Script:
docker/centos-local-build/build.sh
: Introduced a script to build and generate the asset, including setting up directories, downloading dependencies, and configuring the build environment.Docker Configuration:
docker/centos-local-build/dockerfile
: Added a Dockerfile to create an image with the necessary environment for buildingxpansion
.Run Script:
docker/centos-local-build/run.sh
: Added a script to streamline the process of building and running the Docker container.