Skip to content

Commit 8892c44

Browse files
committed
test: Update *_create functions to use Containerfile explicitly
Apparantly, docker has an issue with Containerfiles...
1 parent db0daa1 commit 8892c44

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/includes/common.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ httpd_create() {
5454
done
5555
cp -r ../native ../test /tmp/mod_proxy_cluster/
5656
mv /tmp/mod_proxy_cluster httpd/
57-
docker build -t $HTTPD_IMG httpd/
57+
docker build -t $HTTPD_IMG -f httpd/Containerfile httpd/
5858
}
5959

6060
# Build and run httpd container
@@ -113,10 +113,12 @@ clean_and_exit() {
113113
# $3 tomcat context file (default is context.xml)
114114
tomcat_create() {
115115
if [ -z "$1" ]; then
116-
docker build -t $IMG tomcat/ --build-arg TESTSUITE_TOMCAT_CONFIG=${2:-server.xml} \
116+
docker build -t $IMG -f tomcat/Containerfile tomcat/ \
117+
--build-arg TESTSUITE_TOMCAT_CONFIG=${2:-server.xml} \
117118
--build-arg TESTSUITE_TOMCAT_CONTEXT=${3:-context.xml}
118119
else
119-
docker build -t $IMG tomcat/ --build-arg TESTSUITE_TOMCAT_VERSION=$1 \
120+
docker build -t $IMG -f tomcat/Containerfile tomcat/ \
121+
--build-arg TESTSUITE_TOMCAT_VERSION=$1 \
120122
--build-arg TESTSUITE_TOMCAT_CONFIG=${2:-server.xml} \
121123
--build-arg TESTSUITE_TOMCAT_CONTEXT=${3:-context.xml}
122124
fi

0 commit comments

Comments
 (0)