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 {
|
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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user