Skip to content

Commit

Permalink
Simplify Gitpod config
Browse files Browse the repository at this point in the history
  • Loading branch information
felladrin committed Jan 21, 2022
1 parent 7aa7efa commit da1ff98
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 55 deletions.
40 changes: 0 additions & 40 deletions .gitpod.Dockerfile

This file was deleted.

30 changes: 16 additions & 14 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
image:
file: .gitpod.Dockerfile

tasks:
- command: minio server ${MINIO_VOLUMES}
name: MinIO Server
- command: adminio
name: AdminIO Server
- command: |
sed -i 's/apiMultiBackend = true/apiMultiBackend = false/' ${ADMINIO_UI_PATH}/env.js &&
sed -i 's/apiBaseUrl = "http:\/\/localhost:8080"/apiBaseUrl = `https:\/\/8080${location.hostname.substr(4)}`/' ${ADMINIO_UI_PATH}/env.js &&
npx --yes angular-http-server -p ${ADMINIO_UI_PORT} --path ${ADMINIO_UI_PATH}
name: AdminIO-UI Server
- command: task install
name: Terminal
export DOCKER_COMPOSE_GITPOD_PATH=/tmp/docker-compose.gitpod.yml &&
cp docker-compose.yml ${DOCKER_COMPOSE_GITPOD_PATH} &&
sed -i 's/http:\/\/localhost:8080/$API_BASE_URL/g' ${DOCKER_COMPOSE_GITPOD_PATH} &&
export API_BASE_URL=`gp url 8080` &&
docker-compose -f ${DOCKER_COMPOSE_GITPOD_PATH} up
- env:
TERRAFORM_VERSION: 0.14.0
command: |
export TERRAFORM_DOWNLOAD_FILE_NAME=terraform_${TERRAFORM_VERSION}_linux_amd64.zip &&
wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/${TERRAFORM_DOWNLOAD_FILE_NAME} &&
unzip ${TERRAFORM_DOWNLOAD_FILE_NAME} &&
rm ${TERRAFORM_DOWNLOAD_FILE_NAME} &&
sudo mv terraform /usr/local/bin/terraform &&
sudo sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin &&
task install
ports:
- port: 9000
Expand All @@ -21,6 +23,6 @@ ports:
- port: 8080
name: AdminIO Server
onOpen: ignore
- port: 1234
- port: 8000
name: AdminIO-UI Server
onOpen: open-preview
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ For testing locally, run the docker compose to spin up a minio server:
docker-compose up
```

Access http://localhost on your browser, apply your terraform templates and watch them going live.
Access http://localhost:8000 on your browser, apply your terraform templates and watch them going live.

## Usage

Expand Down

0 comments on commit da1ff98

Please sign in to comment.