From a54673e7d92b332a6de4c72a58010c3fa2261853 Mon Sep 17 00:00:00 2001 From: Mohammad Torkashvand <mohammad.torkashvand@geant.org> Date: Tue, 9 Jan 2024 12:00:07 +0100 Subject: [PATCH] fix missing custom_env.js.template in CMD runtime --- Dockerfile | 3 ++- custom/custom_env.js.template | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 custom/custom_env.js.template diff --git a/Dockerfile b/Dockerfile index 63b59d0..f98348c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,7 @@ RUN apk update && apk add wget curl COPY --from=builder /app/orchestrator-core-gui/default.conf /etc/nginx/conf.d/default.conf COPY --from=builder /app/orchestrator-core-gui/build /usr/share/nginx/html COPY --from=builder /app/orchestrator-core-gui/src/env.js.template . +COPY --from=builder /app/orchestrator-core-gui/src/custom/custom_env.js.template . EXPOSE 8080 -CMD [ "/bin/ash", "-c", "envsubst < env.js.template > /usr/share/nginx/html/env.js && envsubst < src/custom/custom_env.js >> /usr/share/nginx/html/env.js && exec nginx -g 'daemon off;'"] +CMD [ "/bin/ash", "-c", "envsubst < env.js.template > /usr/share/nginx/html/env.js && envsubst < src/custom/custom_env.js.template >> /usr/share/nginx/html/env.js && exec nginx -g 'daemon off;'"] diff --git a/custom/custom_env.js.template b/custom/custom_env.js.template new file mode 100644 index 0000000..050a7d8 --- /dev/null +++ b/custom/custom_env.js.template @@ -0,0 +1,2 @@ +// eslint-disable-next-line no-template-curly-in-string +window.__env__.OPA_BUNDLE_URL = "${REACT_APP_OPA_BUNDLE_URL}"; -- GitLab