We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d89dd1 commit bd1643dCopy full SHA for bd1643d
.github/workflows/ci.yml
@@ -14,5 +14,5 @@ jobs:
14
- name: build Docker
15
run: ./build-docker.sh
16
- name: runqemu swift hello world
17
- run: ./run-docker.sh ./execute.exp
+ run: ./server-run-docker.sh ./execute.exp
18
server-run-docker.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+#
3
+. ./env.sh
4
+
5
+if [[ $PWD != $HOME* && $(whoami) != "root" ]]; then
6
+ echo "Error: Current directory is outside $HOME"
7
+ exit 1
8
+fi
9
10
+# run the docker image
11
+docker run -i --rm \
12
+ --volume ${HOME}:${HOME} \
13
+ --device /dev/net/tun \
+ --cap-add=NET_ADMIN \
+ "${DOCKER_IMAGE_TAG}" \
+ $1
0 commit comments