Skip to content

Commit a49510c

Browse files
authored
enable tsan and improve docker security (#157)
motivation: more secured ci setup changes: * enable :z selinux flag on bind mounts so we can enable selinux on ci * drop potentially exploitable capabilities from docker-compose * create a 16.04 docker-compose setup so we can run tsan in ci (broken on 18.04)
1 parent e90f5fd commit a49510c

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Diff for: docker/docker-compose.1604.51.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: "3"
2+
3+
services:
4+
5+
runtime-setup:
6+
image: async-http-client:16.04-5.1
7+
build:
8+
args:
9+
ubuntu_version: "bionic"
10+
swift_version: "5.1.3"
11+
12+
test:
13+
image: async-http-client:16.04-5.1
14+
environment:
15+
- SANITIZER_ARG=--sanitize=thread
16+
17+
shell:
18+
image: async-http-client:16.04-5.1

Diff for: docker/docker-compose.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ services:
1616
depends_on: [runtime-setup]
1717
volumes:
1818
- ~/.ssh:/root/.ssh
19-
- ..:/code
19+
- ..:/code:z
2020
working_dir: /code
21+
cap_drop:
22+
- CAP_NET_RAW
23+
- CAP_NET_BIND_SERVICE
2124

2225
sanity:
2326
<<: *common

0 commit comments

Comments
 (0)