close

Filter

loading table of contents...

Deployment Manual / Version 2404

Table Of Contents

2.1.3.3 Building Dockerless

Jib 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

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.