No description
  • Python 49.3%
  • Dockerfile 47.2%
  • Shell 3.5%
Find a file
2021-04-21 09:15:22 +02:00
base Initial new repo from old customer work 2021-03-11 20:11:38 +01:00
debug Setting CMD line for debug image 2021-04-21 09:15:22 +02:00
example Initial new repo from old customer work 2021-03-11 20:11:38 +01:00
openjdk-11 Initial new repo from old customer work 2021-03-11 20:11:38 +01:00
ubi8-ubi-minimal Initial new repo from old customer work 2021-03-11 20:11:38 +01:00
.gitignore Initial new repo from old customer work 2021-03-11 20:11:38 +01:00
make-build.py Initial new repo from old customer work 2021-03-11 20:11:38 +01:00
Readme.md Initial new repo from old customer work 2021-03-11 20:11:38 +01:00
rebuild-all.sh Initial new repo from old customer work 2021-03-11 20:11:38 +01:00

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 baseimages
  • ssh-keygen -t rsa -N "" -f git-ssh-key
  • oc 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