forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-docker-dev.sh
42 lines (33 loc) · 1.71 KB
/
install-docker-dev.sh
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
#!/usr/bin/env bash
{ # this ensures the entire script is downloaded #
osd_docker_dev_install_dir(){
printf "opensearch-dashboards-docker-dev"
}
osd_download(){
curl --fail --compressed -q "$@"
}
osd_do_copy_dev_docker_files(){
local INSTALL_DIR
INSTALL_DIR="$(osd_docker_dev_install_dir)"
local ENTRYPOINT_SRC
ENTRYPOINT_SRC="https://raw.githubusercontent.com/opensearch-project/OpenSearch-Dashboards/main/docs/docker-dev/entrypoint.sh"
local DOCKER_COMPOSE_SRC
DOCKER_COMPOSE_SRC="https://raw.githubusercontent.com/opensearch-project/OpenSearch-Dashboards/main/docs/docker-dev/docker-compose.yml"
mkdir -p "$INSTALL_DIR"
osd_download -s "$ENTRYPOINT_SRC" -o "./$INSTALL_DIR/entrypoint.sh"
osd_download -s "$DOCKER_COMPOSE_SRC" -o "./$INSTALL_DIR/docker-compose.yml"
if [ "$1" = "--ftr" ]; then
printf "run ftr"
local START_VNC_SRC
START_VNC_SRC="https://raw.githubusercontent.com/opensearch-project/OpenSearch-Dashboards/main/docs/docker-dev/start-vnc.sh"
local DOCKERFILE_SELENIUM_SRC
DOCKERFILE_SELENIUM_SRC="https://raw.githubusercontent.com/opensearch-project/OpenSearch-Dashboards/main/docs/docker-dev/Dockerfile.selenium"
local DOCKER_COMPOSE_SELENIUM_SRC
DOCKER_COMPOSE_SELENIUM_SRC="https://raw.githubusercontent.com/opensearch-project/OpenSearch-Dashboards/main/docs/docker-dev/docker-compose.selenium.yml"
osd_download -s "$START_VNC_SRC" -o "./$INSTALL_DIR/start-vnc.sh"
osd_download -s "$DOCKERFILE_SELENIUM_SRC" -o "./$INSTALL_DIR/Dockerfile.selenium"
osd_download -s "$DOCKER_COMPOSE_SELENIUM_SRC" -o "./$INSTALL_DIR/docker-compose.selenium.yml"
fi
}
osd_do_copy_dev_docker_files $1
} # this ensures the entire script is downloaded #