No description
- Python 49.3%
- Dockerfile 47.2%
- Shell 3.5%
| base | ||
| debug | ||
| example | ||
| openjdk-11 | ||
| ubi8-ubi-minimal | ||
| .gitignore | ||
| make-build.py | ||
| Readme.md | ||
| rebuild-all.sh | ||
Base container archive
What is the idea?
to generate new base container fast, user auto-increment (patchlevel) and make all builds in the cluster.
So it uses ENV variables to get the actual patchlevel (build tag is always builder).
Start
- Create a Project
baseimages oc create rolebinding registry-viewer --clusterrole=registry-viewer --group=system:authenticated -n baseimagesssh-keygen -t rsa -N "" -f git-ssh-keyoc create secret generic git-ssh-key --from-file=ssh-privatekey=./git-ssh-key --type=kubernetes.io/ssh-auth -n baseimages- Create a new ssh key and put it in your git repo as access key
- in gitlab: "Settings -> Repository -> Deploy Keys" --> Put your public key in here ;-)
Make a new base image
- copy example/* to new subdir
- adapt
Dockerfile - rename and adapt
BuildConfig_pflaeging-net-example.yaml - rename and adapt
ImageStream_pflaeging-net-example.yaml oc apply -f .../make-build.py .
adapt base image
- enter directory (for example example ;-))
- adapt your code
- optional set a new major version or minor version (we're using SemVer here)
- git commit and push your work (the build system get's the version from the git repo!)
- patch version is automatic incremented
other things
Try ./make-build.py -h