-
Notifications
You must be signed in to change notification settings - Fork 8
/
.env.template
76 lines (66 loc) · 3.23 KB
/
.env.template
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
###################################################
########## App. Dockerization Automation ##########
###################################################
#### ---------------------------------------------
#### ---- App:Specifications ----
#### ---- (DO NOT Change unless you know results)
#### ---------------------------------------------
APP_HOME=/home/developer/app
APP_MAIN=/home/developer/setup.sh
# -- Syntax: --
## build models: ant maven javac jar
APP_BUILD_MODEL=
# -- Command to run APP (java, python, nodejs etc.) : --
#APP_RUN_CMD=python -u myproj/<FOLDER>/__main__.py
#APP_RUN_CMD=java main.java
#### ---- NodeJS ---- #####
#### ---- DON'T use (double) quotes for the command! ----
#APP_RUN_CMD=node simple-server.js
APP_RUN_CMD=
#### ---------------------------------
#### ---- App:Container:Host:Info ----
#### ---------------------------------
DOCKER_HOST_IP={{DOCKER_HOST_IP}}
DOCKER_HOST_NAME={{DOCKER_HOST_NAME}}
###################################################
########### Container-based Platform ##############
###################################################
#### -------------------------------------
#### ---- Docker:Build:Specifications ----
#### -------------------------------------
# BUILD_VERSION=1.0.0
USER_ID=1000
GROUP_ID=1000
INSTALL_BASE=/opt
#### -------------------------------------------------------------
#### ---- Docker:Run:Specifications ----
#### -------------------------------------------------------------
#### Ref: https://vsupalov.com/docker-arg-env-variable-guide/
#### Rider configuration for run.sh ####
# - Use "#VOLUMES" and "#PORTS" to indicate that the variables for run.sh"
# - To ignore line, use "##" (double) in the beginning, e.g. "##VOLUMES" and "##PORTS"
# - To indicate that the variables for run.sh", use only one "#", e.g. "#VOLUMES" and "#PORTS"
#### -------------------------------------------------------------
#### ---- Docker:Run:Specifications: Ports Mapping: ----
#### -------------------------------------------------------------
#### ---- You need to change to only 1 '#' to let "./run.sh" to interpret it.
##PORTS_LIST="18080:8000 17200:7200"
##PORTS_LIST="12781:12781"
##PORTS_LIST="1234:1234/udp"
##PORTS_LIST="8080:8080"
#### -------------------------------------------------------------
#### ---- Docker:Run:Specifications: Volumes Mapping: ----
#### -------------------------------------------------------------
##VOLUMES_LIST="./data:data ./workspace:workspace"
##VOLUMES_LIST="data workspace"
##VOLUMES_LIST="app data workspace /var/run/docker.sock:/var/run/docker.sock"
##VOLUMES_LIST="/var/run/docker.sock:/var/run/docker.sock app data workspace"
##VOLUMES_LIST="/run/dbus:/host/run/dbus ./data:data app:/home/developer/app workspace:workspace "
##VOLUMES_LIST="./app:app ./data:data ./workspace:workspace"
##VOLUMES_LIST="data workspace /dev/shm:/dev/shm /var/run/docker.sock:/var/run/docker.sock /tmp/.X11-unix:/tmp/.X11-unix"
#############################################################################
#### --- TO-DO HERE: Modify the line below to open the ports mapping: -- ####
#############################################################################
##VOLUMES_LIST="data workspace /dev/shm:/dev/shm /var/run/docker.sock:/var/run/docker.sock"
#VOLUMES_LIST="data workspace"
# #PORTS_LIST="3000"