Commit 4863a7c 1 parent 1284b87 commit 4863a7c Copy full SHA for 4863a7c
File tree 1 file changed +6
-3
lines changed
src/shadowbox/integration_test
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ function setup() {
94
94
podman network create -d bridge --internal " ${NET_BLOCKED} "
95
95
96
96
# Target service.
97
- podman build --force-rm -t " ${TARGET_IMAGE} " . /target
97
+ podman build --force-rm -t " ${TARGET_IMAGE} " $( dirname $0 ) /target
98
98
podman run -d --rm -p " 10080:80" --network=" ${NET_OPEN} " --network-alias=" target" --name=" ${TARGET_CONTAINER} " " ${TARGET_IMAGE} "
99
99
100
100
# Shadowsocks service.
@@ -120,9 +120,12 @@ function setup() {
120
120
podman network connect " ${NET_OPEN} " " ${SHADOWBOX_CONTAINER} "
121
121
122
122
# Client service.
123
- podman build --force-rm -t " ${CLIENT_IMAGE} " . /client
123
+ podman build --force-rm -t " ${CLIENT_IMAGE} " $( dirname $0 ) /client
124
124
# Use -i to keep the container running.
125
125
podman run -d --rm -it -p " 30555:555" --network " ${NET_BLOCKED} " --name " ${CLIENT_CONTAINER} " " ${CLIENT_IMAGE} "
126
+
127
+ # Utilities
128
+ podman build --force-rm -t " ${UTIL_IMAGE} " $( dirname $0 ) /util
126
129
}
127
130
128
131
function shutdown_containers() {
@@ -151,7 +154,7 @@ function cleanup() {
151
154
trap " cleanup" EXIT
152
155
153
156
# Make the certificate
154
- source ../scripts/make_test_certificate.sh /tmp
157
+ source $( dirname $0 ) / ../scripts/make_test_certificate.sh /tmp
155
158
156
159
# Sets everything up
157
160
export SB_API_PREFIX=' TestApiPrefix'
You can’t perform that action at this time.
0 commit comments