Skip to content

Commit 5e20ea1

Browse files
committed
Use docker image from repository
This avoids rebuilding the docker image on each CI run.
1 parent ca16b6a commit 5e20ea1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docker.sh

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
set -euox pipefail
66

7-
DOCKER_IMAGE_TAG=activerecord_test_container
8-
9-
# Build the docker image to use.
10-
docker build -t ${DOCKER_IMAGE_TAG} build/
7+
DOCKER_IMAGE_TAG=cockroachdb/activerecord_test_container:20210914
118

129
# Absolute path to this repository.
1310
repo_root=$(cd "$(dirname "${0}")" && pwd)
@@ -26,7 +23,7 @@ container_root=${repo_root}/docker_root
2623
mkdir -p "${container_root}"/{etc,home,home/"${username}"/activerecord-cockroachdb-adapter,home/.gems}
2724
echo "${username}:x:${uid_gid}::/home/${username}:/bin/bash" > "${container_root}/etc/passwd"
2825

29-
docker run \
26+
exec docker run \
3027
--volume="${container_root}/etc/passwd:/etc/passwd" \
3128
--volume="${container_root}/home/${username}:/home/${username}" \
3229
--volume="${repo_root}:/home/${username}/activerecord-cockroachdb-adapter" \

0 commit comments

Comments
 (0)