Commit Graph

6 Commits

Author SHA1 Message Date
surtur ab67773917
feat: use proper SELinux context for bind mounts
this change solves the issue I recently had after setting SELinux to
Enforcing mode and the containers suddenly could not access files
from the bind mounts anymore. the solution is to mount volumes with
either z (preferable here) or Z to have them automatically relabelled

 If you volume mount a image with -v /SOURCE:/DESTINATION:z docker will
 automatically relabel the content for you to s0. If you volume mount with
 a Z, then the label will be specific to the container, and not be able to
 be shared between containers.

ref: https://www.projectatomic.io/blog/2015/06/using-volumes-with-docker-can-cause-problems-with-selinux/

pertains:
* Makefile (volume args for kaniko)
* docker-compose.yml ($PWD to /src mount and a db volume)

[skip ci]
2021-02-12 19:26:28 +01:00
surtur e8b4625165
chore: setting this never gets old
* env var to disable dotnet calling home
* [skip ci]
2020-12-27 05:29:33 +01:00
surtur 779c349ff6
chore: correct db creds format + mount local dir
* ./ instead of $PWD means that the mounted folder is not where the
  command is run from but rather the folder local to the compose file
* use proper db creds format
2020-12-26 17:02:24 +01:00
surtur 82d075dd01
feat: switch to rootless runs + refactor
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
* build as root but run the container as UID/GID 1000
* db expose only on localhost
* docker-compose mount $PWD for easy local debugging
2020-12-15 22:47:08 +01:00
surtur 67561303a4
feat: move to framework version 3.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
* lots of pertaining changes
* again solving global.json version mismatch with sed
* correctly specify db creds via dc env
2020-12-15 15:04:28 +01:00
surtur e5b871c275
chore: adding postgre support [wip - batch 1]
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-06 12:23:51 +01:00