-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates install scripts and docs (#150)
- Updates vagrant install scripts. Separates developer and user installation scripts - Updates the developer environment creation script in script/env.sh - Corrects docs formatting issues and OAuth documentation
- Loading branch information
1 parent
cf516fa
commit 10b4924
Showing
32 changed files
with
683 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
rm -rf build/ node_modules/ coverage/ playwright-report/ *.svg | ||
rm -rf build/ node_modules/ coverage/ playwright-report/ "*.svg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,11 @@ sudo mkdir -p /etc/apt/keyrings | |
if [ ! -f /etc/apt/keyrings/docker.gpg ] | ||
then | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
sudo printf \ | ||
"deb [arch=%s signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | ||
%s stable" "$(dpkg --print-architecture)" "$(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
printf \ | ||
"deb [arch=%s signed-by=/etc/apt/keyrings/docker.gpg] \ | ||
https://download.docker.com/linux/ubuntu %s stable" \ | ||
"$(dpkg --print-architecture)" "$(lsb_release -cs)" | \ | ||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
fi | ||
|
||
sudo apt-get update -y | ||
|
@@ -58,14 +60,30 @@ sudo systemctl enable docker.service | |
sudo systemctl enable containerd.service | ||
|
||
|
||
# Install nodejs environment | ||
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo bash - | ||
sudo apt-get update | ||
sudo apt-get install -y ca-certificates curl gnupg | ||
sudo mkdir -p /etc/apt/keyrings | ||
if [ ! -f /etc/apt/keyrings/nodesource.gpg ] | ||
then | ||
curl -fsSL "https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key" | \ | ||
sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | ||
fi | ||
NODE_MAJOR=18 | ||
printf "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] \ | ||
https://deb.nodesource.com/node_%s.x nodistro main" "$NODE_MAJOR" | \ | ||
sudo tee /etc/apt/sources.list.d/nodesource.list | ||
sudo apt-get update | ||
sudo apt-get install -y nodejs | ||
sudo npm install -g [email protected] | ||
|
||
|
||
if [ ! -f /usr/share/keyrings/yarnkey.gpg ] | ||
then | ||
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null | ||
printf "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
curl -sL "https://dl.yarnpkg.com/debian/pubkey.gpg" | gpg --dearmor | \ | ||
sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null | ||
printf "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] \ | ||
https://dl.yarnpkg.com/debian stable main \n" | \ | ||
sudo tee /etc/apt/sources.list.d/yarn.list | ||
fi | ||
|
||
sudo apt-get update -y | ||
|
@@ -78,12 +96,8 @@ printf "\n\n End of installing dependencies...\n\n\n " | |
# get the required docker images | ||
printf "Download the required docker images...\n " | ||
printf ".........\n\n\n " | ||
docker pull traefik:v2.5 | ||
docker pull influxdb:2.4 | ||
docker pull traefik:v2.10 | ||
docker pull mltooling/ml-workspace:0.13.2 | ||
docker pull grafana/grafana | ||
docker pull telegraf | ||
docker pull gitlab/gitlab-ce:15.10.0-ce.0 | ||
printf "\n\n docker images successfully downloaded...\n \n \n " | ||
#---- | ||
|
||
|
@@ -128,7 +142,7 @@ yarn build | |
{ | ||
printf "PORT='4001'\n " | ||
printf "MODE='local'\n " | ||
printf "LOCAL_PATH ='%s'\n " "$TOP_DIR" | ||
printf "LOCAL_PATH ='%s/files'\n " "$TOP_DIR" | ||
printf "GITLAB_GROUP ='dtaas'\n " | ||
printf "GITLAB_URL='https://gitlab.com/api/graphql'\n " | ||
printf "TOKEN='123-sample-token'\n " | ||
|
@@ -146,7 +160,7 @@ docker run -d \ | |
-p 8090:8080 \ | ||
--name "ml-workspace-user1" \ | ||
-v "${TOP_DIR}/files/user1:/workspace" \ | ||
-v "${TOP_DIR}/files/common:/workspace/common:ro" \ | ||
-v "${TOP_DIR}/files/common:/workspace/common" \ | ||
--env AUTHENTICATE_VIA_JUPYTER="" \ | ||
--env WORKSPACE_BASE_URL="user1" \ | ||
--shm-size 512m \ | ||
|
@@ -157,7 +171,7 @@ docker run -d \ | |
-p 8091:8080 \ | ||
--name "ml-workspace-user2" \ | ||
-v "${TOP_DIR}/files/user2:/workspace" \ | ||
-v "${TOP_DIR}/files/common:/workspace/common:ro" \ | ||
-v "${TOP_DIR}/files/common:/workspace/common" \ | ||
--env AUTHENTICATE_VIA_JUPYTER="" \ | ||
--env WORKSPACE_BASE_URL="user2" \ | ||
--shm-size 512m \ | ||
|
@@ -177,7 +191,7 @@ docker run -d \ | |
-v "$PWD/auth:/etc/traefik/auth" \ | ||
-v "$PWD/dynamic:/etc/traefik/dynamic" \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
traefik:v2.5 || true | ||
traefik:v2.10 || true | ||
|
||
|
||
#---------- | ||
|
@@ -191,6 +205,7 @@ printf "\n\n The installation is complete.\n\n\n " | |
|
||
printf "Continue with the application configuration.\n " | ||
printf ".........\n\n\n " | ||
printf "Remember to change foo.com to your local hostname in the following files.\n " | ||
printf "Remember to change foo.com and Gitlab OAuth details to your \ | ||
local settings in the following files.\n " | ||
printf "1. %s/client/build/env.js\n " "$TOP_DIR" | ||
printf "2. %s/servers/config/gateway/dynamic/fileConfig.yml\n " "$TOP_DIR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.