-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitpod.yml
80 lines (77 loc) · 2.71 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# We specify that we'll pull in our cutom Docker setup from this file.
image:
file: .gitpod.Dockerfile
# These are the tasks that are run during the Gitpod setup. Each of the tasks
# included will open its own terminal window where it can run.
tasks:
# This "Testnet" task starts up a Stellar validator node and joins it to the
# Testnet for you.
- name: Testnet
# During the "init" phase, docker will download the quickstart image.
init: |
docker pull stellar/quickstart:testing
# We enable a local JSON-RPC endpoint that will listen on port 8000.
command: |
docker run --rm -i \
-p 8000:8000 \
--name stellar \
stellar/quickstart:testing
--testnet \
--enable-soroban-rpc
# The "Albedo Signer" task begins a simple web app from within the Gitpod
# workspace that is used to communicate with the Stellar Quest backend for
# reward transaction signing.
- name: "Albedo Signer"
# We `compile` during the `init` phase, to save some time on Gitpod spinup.
init: |
cd _squirtle
npm run compile
command: |
cd _squirtle
npm run bin
cd ../_client
clear
npm run start
# This "CLI - Testnet" task opens a terminal for you to interact with the
# Testnet network.
- name: CLI - Testnet
# We specify some required environment variables for use on the Testnet.
env:
STELLAR_RPC_URL: "https://soroban-testnet.stellar.org:443"
STELLAR_NETWORK_PASSPHRASE: "Test SDF Network ; September 2015"
# During `init` phase, we clean, build, and test the hello world contract.
init: |
cargo clean
cargo fetch
stellar contract build --package soroban-hello-world-contract
cargo test --package soroban-hello-world-contract
# To keep things tidy, we open the `README.md` file and then clear the
# terminal from the previous output.
command: |
source _squirtle/bash-hook
gp open README.md
clear
# We can even specify which VS Code extensions should be installed in your
# Gitpod at startup. Wild!
vscode:
extensions:
- vadimcn.vscode-lldb
- rust-lang.rust-analyzer
# We have a couple ports open in your Gitpod workspace to facilitate the quest
# functionality we need.
ports:
# Your quickstart node has a Horizon API server and an RPC endpoint, both
# listening on port 8000. It's publicly accessible through the internet.
- name: Testnet
port: 8000
visibility: public
onOpen: ignore
# This port is open to facilitate interactions using our SQ cli.
- name: Albedo Signer
port: 3000
visibility: public
onOpen: ignore
# This port is open for "Something with cargo test I think"??
- port: 4226
visibility: private
onOpen: ignore