-
Notifications
You must be signed in to change notification settings - Fork 0
168 lines (163 loc) · 5.77 KB
/
check.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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: check
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
initial-scenario:
runs-on: ubuntu-latest
timeout-minutes: 5
container:
image: ghcr.io/eclipse-ankaios/app-ankaios-dev:0.2.0-rc1
options: --user root --privileged
steps:
- name: Log in to Azure Container Registry
run: |
echo ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} | podman login sdvblueprint.azurecr.io --username ${{ secrets.CONTAINER_REGISTRY_USERNAME }} --password-stdin
- run: apt-get update
- run: apt-get install -y git jq
- name: install yq
run: |
curl -sL https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -o /usr/bin/yq
chmod +x /usr/bin/yq
- name: Tweak git config
run: |
git config --global --add safe.directory '*'
echo "if [ -f /etc/bash_completion ] && ! shopt -oq posix; then\n . /etc/bash_completion \nfi" >> /root/.bashrc
echo 'export PATH=$PATH:/workspaces/app/scripts:/workspaces/app/in-vehicle-stack/scenarios/smart_trailer_use_case/scripts' >> /root/.bashrc
- run: mkdir /tmp/logs
- name: Checkout source
uses: actions/checkout@v4
with:
show-progress: 'false'
- name: Start Ankaios
run: |
cd eclipse-ankaios/scripts
./run_maestro.sh
- run: ank get workloads
- name: Start trailer applications
run: |
cd in-vehicle-stack/scenarios/smart_trailer_use_case/scripts
./start_trailer_applications_ankaios.sh & > /tmp/logs/start_trailer_applications_ankaios.log
- name: Connect trailer
run: |
ank run workload trailer_connected_provider --runtime podman --config $'image: sdvblueprint.azurecr.io/sdvblueprint/in-vehicle-stack/trailer_connected_provider:0.1.0\ncommandOptions: ["--network", "host", "--name", "trailer_connected_provider"]' --agent agent_A
- run: ank get workloads
- run: cat /tmp/logs/*.log
devcontainers:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
-
name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx
- name: Set up Git repository
uses: actions/checkout@v4
-
name: Build Ankaios DevContainer
uses: docker/build-push-action@v4
with:
context: eclipse-ankaios
file: eclipse-ankaios/.devcontainer/Dockerfile
push: false
-
name: Build Python Provider DevContainer
uses: docker/build-push-action@v4
with:
context: in-vehicle-stack/python_provider
file: in-vehicle-stack/python_provider/.devcontainer/Dockerfile
push: false
-
name: Build Python Trailer Connected Provider DevContainer
uses: docker/build-push-action@v4
with:
context: in-vehicle-stack/sample_trailer_connected_provider
file: in-vehicle-stack/sample_trailer_connected_provider/.devcontainer/Dockerfile
push: false
-
name: Build Python DT Provider DevContainer
uses: docker/build-push-action@v4
with:
context: in-vehicle-stack/scenarios/smart_trailer_use_case/digital_twin_providers/python_provider
file: in-vehicle-stack/scenarios/smart_trailer_use_case/digital_twin_providers/python_provider/.devcontainer/devcontainer.json
push: false
containers:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
-
name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx
- name: Set up Git repository
uses: actions/checkout@v4
-
name: Build DT Python Provider
uses: docker/build-push-action@v4
with:
context: in-vehicle-stack/scenarios/smart_trailer_use_case/digital_twin_providers/python_provider
push: true
tags: localhost:5000/name/dtprovider:latest
-
name: Build Trailer Connected Provider
uses: docker/build-push-action@v4
with:
context: in-vehicle-stack/scenarios/smart_trailer_use_case/digital_twin_providers/trailer_connected_provider
push: true
tags: localhost:5000/name/tcprovider:latest
-
name: Build Trailer Properties Provider
uses: docker/build-push-action@v4
with:
context: in-vehicle-stack/scenarios/smart_trailer_use_case/digital_twin_providers/trailer_properties_provider
push: true
tags: localhost:5000/name/tpprovider:latest
# -
# name: lacheck
# working-directory: test
# run: |
# docker run -v $(pwd):/workdir localhost:5000/name/app:latest lacheck minimal-article.tex
merge_conflict_job:
# This ensures that no git merge conflict markers (<<<, ...) are contained
name: Find merge conflicts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: 'false'
- name: Merge Conflict finder
uses: olivernybroe/[email protected]