Skip to content

Commit

Permalink
experimental: starter.sh + dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Dec 15, 2023
1 parent 50d88bb commit 73e4b3e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ARG image_name
ARG version

FROM arangodb/${image_name}:${version}
COPY ./tests/static/ /tests/static/
# COPY /tmp /tmp
20 changes: 15 additions & 5 deletions starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,29 @@ else
conf_file="${setup}"
fi

echo "$(pwd)/tests/static/"
ls
docker build \
--build-arg image_name=$image_name \
--build-arg version=$version \
-t arangodb-$image_name-ci:$version .

docker run -d \
--name arango \
-p 8528:8528 \
-p 8529:8529 \
$extra_ports \
-v "$(pwd)/tests/static/":/tests/static \
-v /tmp:/tmp \
"arangodb/$image_name:$version" \
arangodb-$image_name-ci:$version \
/bin/sh -c "arangodb --configuration=/tests/static/$conf_file.conf"

# docker run -d \
# --name arango \
# -p 8528:8528 \
# -p 8529:8529 \
# $extra_ports \
# -v "$(pwd)/tests/static/":/tests/static \
# -v /tmp:/tmp \
# "arangodb/$image_name:$version" \
# /bin/sh -c "arangodb --configuration=/tests/static/$conf_file.conf"

wget --quiet --waitretry=1 --tries=3 -O - http://localhost:8528/version | jq
if [ $? -eq 0 ]; then
echo "OK starter ready"
Expand Down

0 comments on commit 73e4b3e

Please sign in to comment.