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
Make necessary changes in
environment/baseDocker/Dockerfilefirst.Test it locally.
Increment version in
environment/baseDocker/versions.txtfollowing SemVer approach.Push changes into
develop(via pull request of course).Run build manually https://jenkins.optoss.net/job/Monitored%20AI/job/OCLI%20Base%20Image/.
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