|
| 1 | +image: temporalio/gitpod-edu:1.2 |
| 2 | +tasks: |
| 3 | + # task links a bash configuration file to a location that is not |
| 4 | + # specific to this course (/etc/bash.bashrc sources it from there) |
| 5 | + - name: Shell configuration |
| 6 | + init: | |
| 7 | + ln /workspace/edu-appdatasec-java-code/.bash.cfg /workspace/.bash.cfg |
| 8 | + exit; |
| 9 | + # task starts the Temporal Service via the CLI |
| 10 | + - name: Temporal Local Development Server |
| 11 | + command: | |
| 12 | + export TEMPORAL_NOTIFY_ON_NEW_VERSION=false |
| 13 | + export TEMPORAL_CORS_ORIGINS=http://localhost:3000 |
| 14 | + temporal server start-dev \ |
| 15 | + --ui-port 8080 \ |
| 16 | + --db-filename /workspace/.cluster-persistence.db |
| 17 | + openMode: tab-after |
| 18 | + - name: Display Web UI |
| 19 | + command: | |
| 20 | + echo "Waiting for server...." |
| 21 | + gp ports await 8080 && gp preview $(gp url 8080) |
| 22 | + exit; |
| 23 | + - name: Display Exercise Instructions |
| 24 | + command: | |
| 25 | + gp open README.md |
| 26 | + exit; |
| 27 | + - name: Worker |
| 28 | + command: | |
| 29 | + # use the original file path so that this won't depend on the |
| 30 | + # completion of the task above that links this elsewhere (the |
| 31 | + # Docker image expects it in the same location for every course, |
| 32 | + # but this .gitpod.yml file can use course-specific paths) |
| 33 | + source /workspace/edu-appdatasec-java-code/.bash.cfg |
| 34 | + clear |
| 35 | + echo "Use this terminal to start your Worker." |
| 36 | + - name: Terminal |
| 37 | + command: | |
| 38 | + source /workspace/edu-appdatasec-java-code/.bash.cfg |
| 39 | + clear |
| 40 | + echo "Use this terminal to run commands.." |
| 41 | + openMode: split-right |
| 42 | + - name: Codecserver |
| 43 | + command: | |
| 44 | + source /workspace/edu-appdatasec-java-code/.bash.cfg |
| 45 | + clear |
| 46 | + echo "Use this terminal to run your codec server.." |
| 47 | + openMode: split-right |
| 48 | + |
| 49 | +ports: |
| 50 | + - name: Temporal server |
| 51 | + port: 7233 |
| 52 | + onOpen: ignore |
| 53 | + - name: Temporal Web UI v2 |
| 54 | + port: 8080 # temporal UI |
| 55 | + description: New (v2) Temporal Web UI |
| 56 | + onOpen: ignore |
| 57 | + visibility: private |
| 58 | + - name: Greeting Service |
| 59 | + description: Local microservice used in exercises |
| 60 | + port: 9999 |
| 61 | + onOpen: ignore |
| 62 | + visibility: private |
| 63 | + |
| 64 | +vscode: |
| 65 | + extensions: |
| 66 | + - golang.Go |
| 67 | + - ms-python.python |
| 68 | + - redhat.java |
| 69 | + - vscjava.vscode-java-test |
| 70 | + - vscjava.vscode-java-debug |
| 71 | + - wingrunr21.vscode-ruby |
0 commit comments