-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-app-dev.sh
executable file
·21 lines (17 loc) · 1.14 KB
/
run-app-dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
BASE_DIR="$(dirname "$(readlink -f "${BASH_SOURCE}")")"
source ${BASE_DIR}/set-script-vars.sh
#source ${BASE_DIR}/build-docker-images.sh dev-only
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -v \"${BASE_DIR}\":/wg-ui-plus "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -v \"${BASE_DIR}/src/api_project/\":/app/api_project "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -v \"${BASE_DIR}/src/clientapp/dist/wg-ui-plus/browser\":/app/clientapp "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -v \"${BASE_DIR}/scripts\":/app/scripts "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -v \"${BASE_DIR}/LICENSE\":/app/LICENSE "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -v \"${HOME}/.gitconfig\":/home/pi/.gitconfig:ro "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -v \"${HOME}/.vscode-remote-containers\":/home/pi/.vscode-remote-containers "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -v \"${HOME}/.vscode-server\":/home/pi/.vscode-server "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -p \"1196:51820/udp\" "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} -p \"8000:8000\" "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} --hostname wg-ui-dev-app --name wg-ui-dev-app "
DOCKER_RUN_CMD="${DOCKER_RUN_CMD} wg-ui-plus-dev /wg-ui-plus/scripts/run-app.sh "
eval ${DOCKER_RUN_CMD}