forked from srcML/srcML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.override.yml
62 lines (52 loc) · 1.48 KB
/
compose.override.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
volumes:
dist: # Installers
x-base: &BASE
image: srcml/utility
profiles: [utility]
x-utilities: &UTILITIES
<<: *BASE
volumes:
- dist:/dist
services:
# Base utility image
utility:
<<: *UTILITIES
build:
context: docker/utility/
platforms:
- "linux/amd64"
- "linux/arm64"
# List the installers
ls:
<<: *UTILITIES
command: sh -c 'ls -lh /dist'
# Tar the installers, .deb and .rpm, into a single tar file, srcML.tar.gz to download via Docker Desktop
tar:
<<: *UTILITIES
command: sh -c 'tar --exclude=srcML.tar.gz -czf /dist/srcML.tar.gz -C /dist .; ls -lh /dist/srcML.tar.gz'
# Remove all installers
clean:
<<: *UTILITIES
command: sh -c 'rm -fr /dist/*; ls -lh /dist'
# Short results of client tests
client:
<<: *UTILITIES
command: sh -c 'grep "out of" /dist/*-client.log'
# Short results of parser tests
parser:
<<: *UTILITIES
command: sh -c 'grep "Counts:" /dist/*-parser.log'
upload:
<<: *BASE
volumes:
- .:/Source
- dist:/dist
- ~/.config/gh:/root/.config/gh
# Do not change this hard-coded Docker path. Redirects to SSH_AUTH_SOCK
# as set when the Docker Desktop is started
# Start Docker Desktop from command line after SSH_AUTH_SOCK is set correctly
- /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock
working_dir: /Source
environment:
- SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock
command: /bin/sh