Improve docker image setup #43

Closed
opened 2022-01-20 09:18:11 +01:00 by Jef Roosens · 1 comment

We want to release two types of Docker image, namely a dynamically linked Alpine-based one & a statically linked "bare" image. Both these images should contain the following things:

  • Healthcheck
  • Anonymous volume on data directory?
  • Don't run as root
  • dumb-init as init

Specifically for the "bare" image, there also:

  • Build images in CI from build artifacts

This one needs some clarification. During our CI testing, we build statically compiled production images on all three supported platforms. This means that, instead of rebuilding these, we could run these builds again when merging into dev & upload them to a commit-specific directory in a CI bucket. Afterwards, we can let the agent builder the actual image pull the relevant binary from this bucket, greatly speeding up the buildx process.

We want to release two types of Docker image, namely a dynamically linked Alpine-based one & a statically linked "bare" image. Both these images should contain the following things: - [x] Healthcheck - [ ] Anonymous volume on data directory? - [x] Don't run as root - [x] dumb-init as init Specifically for the "bare" image, there also: - [x] Build images in CI from build artifacts This one needs some clarification. During our CI testing, we build statically compiled production images on all three supported platforms. This means that, instead of rebuilding these, we could run these builds again when merging into dev & upload them to a commit-specific directory in a CI bucket. Afterwards, we can let the agent builder the actual image pull the relevant binary from this bucket, greatly speeding up the buildx process.
Jef Roosens added this to the 0.1.0 milestone 2022-01-20 09:18:11 +01:00
Jef Roosens added the
enhancement
label 2022-01-20 09:18:11 +01:00
Jef Roosens changed title from Improve docker image to Improve docker image setup 2022-01-20 09:22:04 +01:00
Jef Roosens added a new dependency 2022-01-20 09:24:13 +01:00

We're gonna settle for just a non-alpine based one, that uses busybox.

We're gonna settle for just a non-alpine based one, that uses busybox.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Depends on
Reference: vieter-v/vieter#43
There is no content yet.