Skip to content

Commit 6472474

Browse files
committed
fix: link in the client container
1 parent bb445ea commit 6472474

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
#!/bin/sh
22

3+
EXEC_LOCAL=0
4+
EXEC_REMOTE=1
5+
CMD="$@"
6+
37
while [ $# -gt 0 ]
48
do
59
case "$1" in
610
'-shared')
7-
exit 0 # run locally
11+
exit $EXEC_LOCAL
812
;;
913
*)
1014
shift
1115
;;
1216
esac
1317
done
1418

15-
exit 1 # dispatch the job
19+
exit $EXEC_REMOTE

Diff for: examples/rust/docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
- NET_ADMIN
99
volumes:
1010
- ./workspace:/workspace
11+
- ./scripts:/opt/concc/scripts
1112
tmpfs:
1213
- /tmp
1314
secrets:

Diff for: examples/rust/scripts/exec-local

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
EXEC_LOCAL=0
4+
EXEC_REMOTE=1
5+
CMD="$@"
6+
7+
while [ $# -gt 0 ]
8+
do
9+
case "$1" in
10+
'--crate-type')
11+
if [ "$2" = bin ] || [ "$2" = proc-macro ]
12+
then
13+
exit $EXEC_LOCAL
14+
fi
15+
shift 2
16+
;;
17+
*)
18+
shift
19+
;;
20+
esac
21+
done
22+
23+
exit $EXEC_REMOTE

0 commit comments

Comments
 (0)