-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.yml
40 lines (40 loc) · 1.56 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
image: gitpod/workspace-full:2023-02-27-14-39-56
tasks:
- name: scenario-setup
before: |
printf 'export PATH="$HOME%s:$PATH"\n' "/.astra/cli" | tee -a $HOME/.bashrc
printf 'unset JAVA_TOOL_OPTIONS\n' | tee -a $HOME/.bashrc
curl -Ls "https://dtsx.io/get-astra-cli" | bash | tee -a ./katapod_logs/astra-cli-install.log
# adding to path just before .bashrc invokes /home/gitpod/.bashrc.d/60-python to avoid "pyenv: command not found" issues when sshing to host itself
# The following adds to PATH. Check the "scenario_scripts/prepare_for_ssh.sh" for the other half of the workaround
sed -i '/\$HOME\/.bashrc.d\//i export PATH=\"\/home\/gitpod\/.pyenv\/plugins\/pyenv-virtualenv\/shims:/home\/gitpod\/.pyenv\/shims:\/home\/gitpod\/.pyenv\/bin:\$\{PATH\}\"\n' /home/gitpod/.bashrc
init: |
docker pull cassandra:4.1
pip install -r client_application/requirements.txt
./scenario_scripts/configure-ssh.sh | tee -a ./katapod_logs/ssh-setup.log
command: |
docker run \
--name cassandra-origin-1 \
-v ${PWD}/origin_config/cassandra.yaml:/etc/cassandra/cassandra.yaml \
-d \
cassandra:4.1
source /home/gitpod/.astra/cli/astra-init.sh
ports:
- port: 22
onOpen: ignore
- port: 3000
onOpen: ignore
- port: 8000
onOpen: ignore
- port: 9100
onOpen: ignore
- port: 9042
onOpen: ignore
- port: 9090
onOpen: ignore
github:
prebuilds:
main: true
vscode:
extensions:
- https://github.com/DataStax-Academy/katapod/releases/download/stable/katapod-stable.vsix