-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into branch-0.3.0
- Loading branch information
Showing
4 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
root /usr/share/nginx/html; | ||
location / { | ||
index index.html index.htm; | ||
} | ||
location /pulsar-manager/ { | ||
proxy_pass http://host.docker.internal:7750; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#! /bin/sh | ||
|
||
ROOT_DIR=$(git rev-parse --show-toplevel) | ||
CONTAINER_NAME="pulsar-manager-ui" | ||
CONTAINER_ID=$(docker ps | grep $CONTAINER_NAME | awk '{print $1}') | ||
|
||
if [ -n "$CONTAINER_ID" ]; then | ||
docker exec -it $CONTAINER_NAME nginx -s reload | ||
else | ||
docker run --name $CONTAINER_NAME -p 80:80 -v $ROOT_DIR/front-end/dist:/usr/share/nginx/html -v $ROOT_DIR/front-end/docker/conf.d:/etc/nginx/conf.d nginx:1.18.0-alpine | ||
fi | ||
|
||
echo "Website is running: http://localhost" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters