Commit a1fc57d3 authored by Tushar's avatar Tushar
Browse files

Refactor gitpod.yml and init scripts

Showing with 3 additions and 24 deletions
+3 -24
......@@ -14,14 +14,12 @@ tasks:
init: |
gp sync-done dev-setup
bash install-central.sh
- name: Setup Enketo Express
- name: Start Other Services
openMode: tab-after
init: |
gp sync-done dev-setup
bash install-node.sh
nvm use 14
cd packages/enketo-express && pnpm i && pnpm i -g grunt
bash update-config.sh
sed -i~ "/^FORM_MANAGER_BASE_URI=/s/=.*/=3006-${GITPOD_WORKSPACE_URL:8}/" .env
docker-compose up -d
gp sync-done setup
command: |
grunt develop
......
#!/bin/bash
docker-compose -f docker-compose.gitpod.yaml up -d
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install v14.19.1
nvm install 16
nvm use 14
wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
\ No newline at end of file
#!/bin/bash
cd ./config
formManagerBaseURI=${GITPOD_WORKSPACE_URL:8}
echo "$( jq '."formManagerBaseURI" = "'"https://3006-$formManagerBaseURI"'"' default-config.json )" > default-config.json
cd ..
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment