-
Notifications
You must be signed in to change notification settings - Fork 311
Build a Docker Image
Michael Gardner edited this page Feb 18, 2025
·
9 revisions
This is the improved version of our incremental build script. It allows you to easily do full and incremental builds without having to push your work to your remote fork at github.com. It is advised that you utilize this script in your workflow for building quick docker images of the platform. This implementation of our image builds also generates builds using a similar method as on github actions. It will be a much smaller image (ex. ~ 2GB ) in comparison to images generated with incr.sh.
# from the local HPCC-Platform repos base directory
./dockerfiles/image.sh build
This will generate a docker image in your docker environment.
Example: hpccsystems/platform-core:9.10.x-debug-commit-hash
To view images on your local machine, run docker images.
| Flag | Value | Description |
|---|---|---|
| clean | remove all build artifacts | |
| build | build the project | |
| incr | perform an incremental build (faster version of 'build -m debug' | |
| install | <file|folder> | install from a local deb file or build folder |
| status | Tag the images as the latest | |
| -m, --mode | <debug|release|relwithdebinfo> | specify the build mode |
| -t, --tag | <tag> | tag the build volume with the current branch ref |
| -r, --reconfigure | <Cmake Vars> | reconfigure CMake before building |