-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathdeploy
24 lines (19 loc) · 1.02 KB
/
deploy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
docker rm autotest-platform-frontend;
docker stop autotest-platform-backend;
docker rm autotest-platform-backend;
docker build -f Dockerfile.frontend -t autotest-platform-frontend .;
docker run --name autotest-platform-frontend autotest-platform-frontend;
docker cp autotest-platform-frontend:/app/AutoTest-Platform/dist ./;
docker build -f Dockerfile.backend \
-t autotest-platform-backend .;
echo "AUTOTEST_PLATFORM_ENV=${AUTOTEST_PLATFORM_ENV}
AUTOTEST_PLATFORM_MONGO_HOST=${AUTOTEST_PLATFORM_MONGO_HOST}
AUTOTEST_PLATFORM_MONGO_PORT=${AUTOTEST_PLATFORM_MONGO_PORT}
AUTOTEST_PLATFORM_NLP_SERVER_HOST=${AUTOTEST_PLATFORM_NLP_SERVER_HOST}
AUTOTEST_PLATFORM_MONGO_USERNAME=${AUTOTEST_PLATFORM_MONGO_USERNAME}
AUTOTEST_PLATFORM_MONGO_PASSWORD=${AUTOTEST_PLATFORM_MONGO_PASSWORD}
AUTOTEST_PLATFORM_MONGO_DEFAULT_DBNAME=${AUTOTEST_PLATFORM_MONGO_DEFAULT_DBNAME}" > Envlist.txt;
docker run --name autotest-platform-backend \
--env-file="./Envlist.txt" \
-p $1:5050 \
autotest-platform-backend;