Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
feat: gitpodify (#600)
Browse files Browse the repository at this point in the history
* feat: init gitpod

* feat: adjust gitpod.yml & docker-compose

* feat: add prebuild

* feat: Update .gitpod.yml

Co-authored-by: David Leal <[email protected]>

* fix: Update .gitpod.yml

Co-authored-by: David Leal <[email protected]>

* feat: Update .gitpod.yml

Co-authored-by: David Leal <[email protected]>

Co-authored-by: Cahllagerfeld <Cahllagerfeld>
Co-authored-by: David Leal <[email protected]>
  • Loading branch information
Cahllagerfeld and Panquesito7 authored Aug 26, 2021
1 parent 2b7e3da commit 4243e5c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
tasks:
- name: Stargate
command: docker-compose up stargate
- name: api
command: |
sleep 35
docker-compose up eddiehub-api
- name: Eddiebot
init: |
npm i -g npm
npm install
gp await-port 3000
command: npm run start:dev

github:
prebuilds:
# enable for the default branch (defaults to true)
main: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: false
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: true

28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.9'
services:
stargate:
image: 'stargateio/stargate-3_11:v1.0.29'
ports:
- '8080:8080'
- '8081:8081'
- '8082:8082'
- '127.0.0.1:9042:9042'
environment:
- CLUSTER_NAME=stargate
- CLUSTER_VERSION=3.11
- DEVELOPER_MODE=true
eddiehub-api:
image: ghcr.io/eddiehubcommunity/api:latest
ports:
- '3000:3000'
depends_on:
- stargate
environment:
- APPROVED_TOKENS=abc,def
- DEBUG=false
- JWT_SECRET=test-secret
- STARGATE_BASEURL=http://stargate:8082
- STARGATE_BASE_API_PATH=/v2/namespaces
- STARGATE_AUTH_URL=http://stargate:8081/v1/auth
- STARGATE_USERNAME=cassandra
- STARGATE_PASSWORD=cassandra
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
}

0 comments on commit 4243e5c

Please sign in to comment.