Base Docker

This is a development environment for the both OCLI “Open Source” and “Pro” versions. Please build image hub.optoss.net/ocli/ocli-base on your local machine only if you have no access to hub.optoss.net.

How to build

  1. Make necessary changes in environment/baseDocker/Dockerfile first.

  2. Test it locally.

  3. Increment version in environment/baseDocker/versions.txt following SemVer approach.

  4. Push changes into develop (via pull request of course).

  5. Run build manually https://jenkins.optoss.net/job/Monitored%20AI/job/OCLI%20Base%20Image/.

  6. Check if the new image available https://hub.optoss.net/#!/taglist/ocli/ocli-base.

Local development build

If you have no access to the https://hub.optoss.net/ please build ocli-base image locally.

IMAGE="goldenram/ocli-base"
VERSION=$(head -n 1 version.txt)

docker buildx build --platform=linux/amd64,linux/arm64 \
  -t ${IMAGE}:${VERSION} \
  -t ${IMAGE}:latest \
  --push \
  .

Multiplatform build: switch to docker-container driver

docker buildx create \
  --name multi-builder \
  --driver docker-container \
  --use multi-builder