forked from Tangerine-Community/Tangerine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevelop.sh
More file actions
executable file
·30 lines (28 loc) · 1002 Bytes
/
develop.sh
File metadata and controls
executable file
·30 lines (28 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
source ./config.defaults.sh
if [ -f "./config.sh" ]
then
source ./config.sh
fi
docker pull tangerine/tangerine:$TANGERINE_VERSION
docker kill tangerine-container
docker rm tangerine-container
docker run \
-it \
--name tangerine-container \
-p 80:80 \
--env "T_RUN_MODE=development" \
--env "T_ADMIN=$T_ADMIN" \
--env "T_PASS=$T_PASS" \
--env "T_USER1=$T_USER1" \
--env "T_USER1_PASSWORD=$T_USER1_PASSWORD" \
--env "T_HOST_NAME=$T_HOST_NAME" \
--env "T_PROTOCOL=$T_PROTOCOL" \
--volume $T_VOLUMES/couchdb/:/var/lib/couchdb \
--volume $T_VOLUMES/apks/:/tangerine-server/tree/apks \
--volume $(pwd)/editor/src:/tangerine-server/editor/src \
--volume $(pwd)/editor/app:/tangerine-server/editor/app \
--volume $(pwd)/editor/Gulpfile.js:/tangerine-server/editor/Gulpfile.js \
--volume $(pwd)/client/src:/tangerine-server/client/src \
--volume $(pwd)/client/Gulpfile.js:/tangerine-server/client/Gulpfile.js \
tangerine/tangerine:$TANGERINE_VERSION