Deployment Manual / Version 2310
Table Of ContentsJib allows building images without Docker being installed. To do so, you need to replace the build goal from dockerBuild
to build
. This can be done by setting the property jib.goal
.
When building dockerless directly into a registry, make sure your registry supports the OCI format. If not, you need to set the <format>OCI</format>
settings in the build poms of the app modules to <format>docker</format>
.
To start a registry locally you can start with:
docker run -d \ -e REGISTRY_HTTP_ADDR=0.0.0.0:5001 \ -p 5001:5001 \ --name registry \ registry:2.8
The port here is switched to 5001
to not collide with Apple AirPlay listener on MacOS, a common mistake you can run into.
To build the images into this registry, run:
mvn install -Pdefault-image \ -Djib.goal=build -Djib.allowInsecureRegistries=true -Dapplication.image-prefix=localhost:5001