-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathskaffold.yaml
More file actions
72 lines (72 loc) · 2.06 KB
/
skaffold.yaml
File metadata and controls
72 lines (72 loc) · 2.06 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
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
apiVersion: skaffold/v4beta13
kind: Config
metadata:
name: olmap-local
build:
artifacts:
- image: olmap-backend
context: django_server
docker:
dockerfile: Dockerfile
sync:
manual:
- src: "**/*.py"
dest: "/app"
- image: olmap-frontend
context: react_ui
docker:
dockerfile: Dockerfile
target: production
buildArgs:
REACT_APP_SERVER_ROOT: "https://olmap-backend.k8s.orb.local"
REACT_APP_MAPBOX_TOKEN: "pk.eyJ1Ijoiam9oYW4tZnZoIiwiYSI6ImNrNDJtOGh5cDAxczIzb3FpdHg1Z3c5MGwifQ.bp9ubCm67HLIorEUb21K3A"
REACT_APP_DIGITRANSIT_KEY: "d253c31db9ab41c195f7ef36fc250da4"
REACT_APP_OVERPASS_URL: "https://overpass.fvh.io/api/interpreter"
REACT_APP_DEFAULT_LAT: "60.17012"
REACT_APP_DEFAULT_LON: "24.94290"
REACT_APP_USE_MOCK_LOCATION: "true"
REACT_APP_MOCK_LAT: "60.161687"
REACT_APP_MOCK_LON: "24.944368"
sync:
manual:
- src: "src/**/*"
dest: "/app/src"
- src: "public/**/*"
dest: "/app/public"
local:
push: false
manifests:
rawYaml:
- k8s/local/*.yaml
deploy:
kubectl:
defaultNamespace: olmap
portForward:
- resourceType: service
resourceName: olmap-backend
port: 8000
localPort: 8000
- resourceType: service
resourceName: olmap-frontend
port: 3000
localPort: 3000
- resourceType: service
resourceName: postgres
port: 5432
localPort: 5432
# Note: Playwright e2e tests run after deployment via 'just test-e2e'
# or by running 'cd react_ui && ./run-e2e-tests.sh' after 'skaffold dev' is running
profiles:
- name: with-tests
verify:
- name: e2e-tests
container:
name: playwright-runner
image: mcr.microsoft.com/playwright:v1.56.1-focal
command: ["sh"]
args:
- -c
- |
cd /tests
npm install --legacy-peer-deps
BASE_URL=http://host.docker.internal:3000 npx playwright test --reporter=list