From 3fb968c9cfe905c3a98f97d888ece0c707a3f1f9 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Thu, 30 Mar 2023 00:27:19 -0600 Subject: [PATCH] Add console container pod --- .../compose/docker-compose-fixturenet-laconic-console.yml | 6 ++++++ .../container-build/cerc-laconic-console-host/Dockerfile | 2 +- app/data/stacks/fixturenet-laconic-loaded/stack.yml | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 app/data/compose/docker-compose-fixturenet-laconic-console.yml diff --git a/app/data/compose/docker-compose-fixturenet-laconic-console.yml b/app/data/compose/docker-compose-fixturenet-laconic-console.yml new file mode 100644 index 00000000..f402fa70 --- /dev/null +++ b/app/data/compose/docker-compose-fixturenet-laconic-console.yml @@ -0,0 +1,6 @@ +services: + laconic-console: + restart: unless-stopped + image: cerc/laconic-console-host:local + ports: + - "80" diff --git a/app/data/container-build/cerc-laconic-console-host/Dockerfile b/app/data/container-build/cerc-laconic-console-host/Dockerfile index 7f86c69b..d2bac367 100644 --- a/app/data/container-build/cerc-laconic-console-host/Dockerfile +++ b/app/data/container-build/cerc-laconic-console-host/Dockerfile @@ -54,4 +54,4 @@ RUN yarn global add @cerc-io/console-app EXPOSE 80 # Default command sleeps forever so docker doesn't kill it -CMD ["sh", "-c", "while :; do sleep 600; done"] +CMD ["http-server", "-p", "80", "/usr/local/share/.config/yarn/global/node_modules/@cerc-io/console-app/dist/production"] diff --git a/app/data/stacks/fixturenet-laconic-loaded/stack.yml b/app/data/stacks/fixturenet-laconic-loaded/stack.yml index 12fe28b7..5dcb3c7b 100644 --- a/app/data/stacks/fixturenet-laconic-loaded/stack.yml +++ b/app/data/stacks/fixturenet-laconic-loaded/stack.yml @@ -23,6 +23,7 @@ containers: - cerc/laconic-registry-cli pods: - fixturenet-laconicd + - fixturenet-laconic-console config: cli: key: laconicd.mykey