Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Jan 22, 2025
1 parent 375b8a4 commit 77942c5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM nginx:latest
COPY dist/inspect-app/ /usr/share/nginx/html
COPY config/nginx.conf /etc/nginx/nginx.conf
COPY config/config.sh /usr/local/bin/config.sh
COPY config/config-env.map /usr/local/bin/config-env.map
RUN chmod +x /usr/local/bin/config.sh
COPY docker/nginx.conf /etc/nginx/nginx.conf
COPY docker/rungnx.sh /usr/local/bin/rungnx.sh
COPY docker/config-env.map /usr/local/bin/config-env.map
RUN chmod +x /usr/local/bin/rungnx.sh
EXPOSE 80
ENTRYPOINT ["/bin/sh", "-c", "/usr/local/bin/config.sh /usr/share/nginx/html/environment.remote.json && nginx"]
ENTRYPOINT ["rungnx.sh"]
1 change: 0 additions & 1 deletion config/config-env.map → docker/config-env.map
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
host:INSPECT_SERVER_URL
home:PATH
defaultEnv:DEFAULT_ENV
gridViewPeriod:DEFAULT_GRID_VIEW_PERIOD
kpiViewPeriod:DEFAULT_KPI_VIEW_PERIOD
File renamed without changes.
6 changes: 4 additions & 2 deletions config/config.sh → docker/rungnx.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

echo environment configuration ...
OUT=${1:-"environment.remote.json"}

DIR=$(dirname "$0")
Expand All @@ -22,4 +22,6 @@ fi

JSON="{$ENTRIES}"

echo "$JSON" > "$OUT"
echo "$JSON" > "$OUT"

nginx
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inspect-app",
"version": "15.10.0",
"version": "15.11.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down

0 comments on commit 77942c5

Please sign in to comment.