add sh to image
All checks were successful
Build and Publish / build-release (push) Successful in 1m28s
All checks were successful
Build and Publish / build-release (push) Successful in 1m28s
This commit is contained in:
@@ -32,9 +32,10 @@
|
||||
};
|
||||
dockerImage = pkgs.dockerTools.buildLayeredImage {
|
||||
name = "policy_service";
|
||||
contents = [ package ];
|
||||
contents = [ package pkgs.bashInteractive pkgs.shadow ];
|
||||
config = {
|
||||
Cmd = [ "${package}/bin/policy_service" "start" ];
|
||||
Entrypoint = [ "/bin/sh" ];
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
@@ -10,15 +10,16 @@ controllers:
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
command:
|
||||
- sh
|
||||
- /bin/sh
|
||||
- -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:
|
||||
MIX_ENV: prod
|
||||
DATABASE_URL:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: policy-service-pg-app
|
||||
key: uri
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
|
||||
Reference in New Issue
Block a user