-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-run.sh
More file actions
executable file
·60 lines (49 loc) · 1.96 KB
/
docker-run.sh
File metadata and controls
executable file
·60 lines (49 loc) · 1.96 KB
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
#!/bin/bash
set -eu
export PYTHONDONTWRITEBYTECODE=1
SCRIPTDIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
# ~ V.7
# docker run --rm -it -d --publish 9292:9201 --expose 9201 \
# -e node.name=fn-platform-omni-data-01 \
# -e discovery.type=single-node \
# -e http.port=9201 \
# -e http.cors.enabled=true \
# -e http.cors.allow-origin=* \
# -e http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization \
# -e http.cors.allow-credentials=true \
# -e xpack.security.enabled=false \
# -e bootstrap.system_call_filter=false \
# -e ES_JAVA_OPTS="-Xms1g -Xmx1g" \
# -v "$SCRIPTDIR:/FN-BEES-Services/" \
# fn-platform-basic-api:omni_es
# V.8
# docker run --rm -it -d --publish 9203:9201 --expose 9201 \
# --name fn-platform-omni-data-01 \
# -e node.roles="[data, master]" \
# -e node.name=fn-platform-omni-data-01 \
# -e cluster.name=docker-elasticsearch \
# -e cluster.initial_master_nodes=fn-platform-omni-data-01 \
# -e discovery.seed_hosts=fn-platform-omni-data-01 \
# -e cluster.routing.allocation.disk.threshold_enabled=false \
# -e http.port=9201 \
# -e ES_JAVA_OPTS="-Xms1g -Xmx1g" \
# -e xpack.security.enabled=false \
# -e xpack.security.http.ssl.enabled=false \
# -e xpack.license.self_generated.type=basic \
# -e action.destructive_requires_name=false \
# -v "$SCRIPTDIR:/FN-BEES-Services/" \
# fn-platform-basic-api:omni_es
# docker run --rm -it -d --publish 8888:8888 --expose 8888 \
# --name fn-basic-docker-api \
# -v "$SCRIPTDIR:/FN-BEES-Services/" \
# fn-basic-docker-api:es
docker run --publish 8888:8888 --expose 8888 \
--name fn-basic-docker-api \
-v "$SCRIPTDIR:/FN-BEES-Services/" \
fn-basic-docker-api:es
# docker run --rm --platform linux/amd64 -it -d \
# --name fn-cicd-basic-api --publish 15555:5555 --expose 5555 \
# --network bridge \
# -e ES_HOST=http://host.docker.internal:9203 \
# -v "$SCRIPTDIR:/app/FN-Basic-Services/" \
# fn-cicd-basic-api:es