Skip to content

Commit 401a301

Browse files
committed
add support for running tests locally on arm64 processor based machines
1 parent 588b474 commit 401a301

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

.secrets.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"filename": "README.md",
107107
"hashed_secret": "398ec9c29cf195ff9202bd85b75002adc88832c3",
108108
"is_verified": false,
109-
"line_number": 141
109+
"line_number": 147
110110
}
111111
],
112112
"getAccessToken.sh": [
@@ -407,5 +407,5 @@
407407
}
408408
]
409409
},
410-
"generated_at": "2021-09-13T20:34:20Z"
410+
"generated_at": "2021-12-10T14:48:26Z"
411411
}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ gen3 integration tests - run by https://jenkins.planx-pla.net/ via a `Jenkinsfil
66

77
### Start test infra (influxdb, grafana, selenium)
88

9+
For using linux/amd64 selenium images:
910
```
1011
# start test infra
1112
docker-compose -f docker-compose-test-infra.yaml up -d
1213
```
1314

15+
For using arm64 selenium images:
16+
```
17+
docker-compose -f docker-compose-test-infra-arm64.yaml up -d
18+
```
19+
1420
### Initial setup of influxdb and grafana (only needed on a new containers)
1521
```
1622
# create database

docker-compose-test-infra-arm64.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: '2'
2+
services:
3+
influxdb:
4+
image: influxdb:1.8.4
5+
ports:
6+
- '8086:8086'
7+
volumes:
8+
- influxdb-storage:/var/lib/influxdb
9+
environment:
10+
- INFLUXDB_DB=ci_metrics
11+
grafana:
12+
image: grafana/grafana:latest
13+
ports:
14+
- '3000:3000'
15+
volumes:
16+
- grafana-storage:/var/lib/grafana
17+
- ./grafana-provisioning/:/etc/grafana/provisioning
18+
depends_on:
19+
- influxdb
20+
environment:
21+
- GF_AUTH_ANONYMOUS_ENABLED=true
22+
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
23+
hub:
24+
image: seleniarm/hub:4.0.0-20211111
25+
container_name: selenium-hub
26+
ports:
27+
- '4444:4444'
28+
- '4442:4442'
29+
- '4443:4443'
30+
chrome:
31+
image: seleniarm/node-chromium:4.0.0-20211111
32+
container_name: node-chrome
33+
volumes:
34+
- /dev/shm:/dev/shm
35+
depends_on:
36+
- hub
37+
environment:
38+
SE_EVENT_BUS_HOST: hub
39+
SE_EVENT_BUS_PUBLISH_PORT: 4442
40+
SE_EVENT_BUS_SUBSCRIBE_PORT: 4443
41+
volumes:
42+
influxdb-storage:
43+
grafana-storage:

0 commit comments

Comments
 (0)