Skip to content

Commit

Permalink
gitpod: Add solana and sugar-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisommore authored Sep 15, 2022
1 parent 0309d98 commit 6308e35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
image:
file: .gitpod/Dockerfile
tasks:
- name: Set solana wallet
command: echo $SOLANA_KEY | base64 -d > /home/gitpod/.config/solana/id.json && solana airdrop 2 && exit
- name: golang live
env:
PASETO_PRIVATE_KEY: abckey
Expand Down Expand Up @@ -34,6 +36,7 @@ tasks:
command: |
gp sync-await db
docker exec -it airex_gateway psql -U airex_gateway
vscode:
extensions:
- golang.go
5 changes: 5 additions & 0 deletions .gitpod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
FROM gitpod/workspace-full

USER gitpod
RUN sh -c "$(curl -sSfL https://release.solana.com/v1.10.32/install)"
ENV PATH="/home/gitpod/.local/share/solana/install/active_release/bin:$PATH"
RUN solana config set --url devnet
RUN cargo install sugar-cli
RUN sudo curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sudo sh -s -- -b $(go env GOPATH)/bin

0 comments on commit 6308e35

Please sign in to comment.