add sh to image
All checks were successful
Build and Publish / build-release (push) Successful in 1m28s

This commit is contained in:
2026-04-14 14:09:11 -05:00
parent 6a737eb182
commit d0feb9498b
2 changed files with 9 additions and 7 deletions

View File

@@ -32,9 +32,10 @@
}; };
dockerImage = pkgs.dockerTools.buildLayeredImage { dockerImage = pkgs.dockerTools.buildLayeredImage {
name = "policy_service"; name = "policy_service";
contents = [ package ]; contents = [ package pkgs.bashInteractive pkgs.shadow ];
config = { config = {
Cmd = [ "${package}/bin/policy_service" "start" ]; Cmd = [ "${package}/bin/policy_service" "start" ];
Entrypoint = [ "/bin/sh" ];
}; };
}; };
in in

View File

@@ -10,15 +10,16 @@ controllers:
tag: latest tag: latest
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
command: command:
- sh - /bin/sh
- -c - -c
- > - "mix ecto.create && mix ecto.migrate && mix event_store.create && mix event_store.init"
mix ecto.create &&
mix ecto.migrate &&
mix event_store.create &&
mix event_store.init
env: env:
MIX_ENV: prod MIX_ENV: prod
DATABASE_URL:
valueFrom:
secretKeyRef:
name: policy-service-pg-app
key: uri
containers: containers:
main: main:
image: image: