-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.override.yaml
More file actions
44 lines (38 loc) · 1.57 KB
/
compose.override.yaml
File metadata and controls
44 lines (38 loc) · 1.57 KB
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
services:
configurator:
environment:
PROJECT_CLONE_URL: https://github.com/GannaChernyshova/testcontainers-java-labspace
workspace:
# # Override the default image if desired
# # More details - https://github.com/dockersamples/labspace-infra/blob/main/docs/configuration.md#overriding-the-workspace-image
image: dockersamples/labspace-workspace-java
configs:
- source: docker-java-properties
target: /home/coder/.docker-java.properties
- source: clone-repo-script
target: /entrypoint.d/clone-repo.sh
mode: 0755
# # Override the default ports to publish additional ports you may need
# # More details - https://github.com/dockersamples/labspace-infra/blob/main/docs/configuration.md#overriding-the-workspace-ports
# ports: !override
# - "6274:6274" # Expose the MCP inspector users will launch from inside the Labspace
# - "8080:8080" # The port used by the app
# # Add other environment variables as needed
# environment:
# DANGEROUSLY_OMIT_AUTH: "true" # Skip auth for the MCP Inspector
# Add other models or services your Labspace may need
configs:
docker-java-properties:
content: |
api.version=1.48
clone-repo-script:
content: |
#!/bin/bash
set -e
if [ ! -d "/home/coder/project/.git" ]; then
find "/home/coder/project" -type f -name '.*' -exec rm '{}' \;
git clone https://github.com/testcontainers/workshop.git /home/coder/project
rm /home/coder/project/step-*.md
else
echo "Repository already cloned, skipping."
fi