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

Commit 4243e5c

Browse files
feat: gitpodify (#600)
* 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]>
1 parent 2b7e3da commit 4243e5c

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

.gitpod.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
tasks:
2+
- name: Stargate
3+
command: docker-compose up stargate
4+
- name: api
5+
command: |
6+
sleep 35
7+
docker-compose up eddiehub-api
8+
- name: Eddiebot
9+
init: |
10+
npm i -g npm
11+
npm install
12+
gp await-port 3000
13+
command: npm run start:dev
14+
15+
github:
16+
prebuilds:
17+
# enable for the default branch (defaults to true)
18+
main: true
19+
# enable for all branches in this repo (defaults to false)
20+
branches: true
21+
# enable for pull requests coming from this repo (defaults to true)
22+
pullRequests: true
23+
# enable for pull requests coming from forks (defaults to false)
24+
pullRequestsFromForks: true
25+
# add a check to pull requests (defaults to true)
26+
addCheck: true
27+
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
28+
addComment: false
29+
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
30+
addBadge: true
31+

docker-compose.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: '3.9'
2+
services:
3+
stargate:
4+
image: 'stargateio/stargate-3_11:v1.0.29'
5+
ports:
6+
- '8080:8080'
7+
- '8081:8081'
8+
- '8082:8082'
9+
- '127.0.0.1:9042:9042'
10+
environment:
11+
- CLUSTER_NAME=stargate
12+
- CLUSTER_VERSION=3.11
13+
- DEVELOPER_MODE=true
14+
eddiehub-api:
15+
image: ghcr.io/eddiehubcommunity/api:latest
16+
ports:
17+
- '3000:3000'
18+
depends_on:
19+
- stargate
20+
environment:
21+
- APPROVED_TOKENS=abc,def
22+
- DEBUG=false
23+
- JWT_SECRET=test-secret
24+
- STARGATE_BASEURL=http://stargate:8082
25+
- STARGATE_BASE_API_PATH=/v2/namespaces
26+
- STARGATE_AUTH_URL=http://stargate:8081/v1/auth
27+
- STARGATE_USERNAME=cassandra
28+
- STARGATE_PASSWORD=cassandra

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@
8787
"coverageDirectory": "../coverage",
8888
"testEnvironment": "node"
8989
}
90-
}
90+
}

0 commit comments

Comments
 (0)