From 1ae144a9b82fe15d3abaa17fd8fab6564215324c Mon Sep 17 00:00:00 2001 From: zramsay Date: Thu, 23 Nov 2023 01:28:29 +0000 Subject: [PATCH] fixes --- .../data/compose/docker-compose-ping-pub.yml | 2 +- .../data/container-build/cerc-ping-pub/Dockerfile | 11 ----------- .../data/container-build/cerc-ping-pub/build.sh | 5 +---- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 stack_orchestrator/data/container-build/cerc-ping-pub/Dockerfile diff --git a/stack_orchestrator/data/compose/docker-compose-ping-pub.yml b/stack_orchestrator/data/compose/docker-compose-ping-pub.yml index ae855f4a..e2120bc2 100644 --- a/stack_orchestrator/data/compose/docker-compose-ping-pub.yml +++ b/stack_orchestrator/data/compose/docker-compose-ping-pub.yml @@ -5,4 +5,4 @@ services: image: cerc/ping-pub:local restart: always ports: - - "5137" + - "5173:5173" diff --git a/stack_orchestrator/data/container-build/cerc-ping-pub/Dockerfile b/stack_orchestrator/data/container-build/cerc-ping-pub/Dockerfile deleted file mode 100644 index 4015ae89..00000000 --- a/stack_orchestrator/data/container-build/cerc-ping-pub/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM node:lts-slim - -WORKDIR /app - -COPY . . - -RUN yarn --ignore-engines - -EXPOSE 5173 - -CMD ["yarn", "serve"] diff --git a/stack_orchestrator/data/container-build/cerc-ping-pub/build.sh b/stack_orchestrator/data/container-build/cerc-ping-pub/build.sh index 8efbf462..391525dd 100755 --- a/stack_orchestrator/data/container-build/cerc-ping-pub/build.sh +++ b/stack_orchestrator/data/container-build/cerc-ping-pub/build.sh @@ -2,7 +2,4 @@ # Build the ping pub image source ${CERC_CONTAINER_BASE_DIR}/build-base.sh -# See: https://stackoverflow.com/a/246128/1701505 -SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) - -docker build -t cerc/ping-pub:local ${build_command_args} -f ${SCRIPT_DIR}/Dockerfile $SCRIPT_DIR +docker build -t cerc/ping-pub:local ${build_command_args} -f $CERC_REPO_BASE_DIR/explorer/Dockerfile $CERC_REPO_BASE_DIR/explorer