Skip to content

Commit

Permalink
Make docker image name specific to track
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Mar 26, 2024
1 parent 827d6b5 commit ee8b68c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/run-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ output_dir=$(realpath "${3%/}")
mkdir -p "${output_dir}"

# Build the Docker image
docker build --rm -t exercism/test-runner .
docker build --rm -t exercism/j-test-runner .

# Run the Docker image using the settings mimicking the production environment
docker run \
Expand All @@ -43,4 +43,4 @@ docker run \
--mount type=bind,src="${solution_dir}",dst=/solution \
--mount type=bind,src="${output_dir}",dst=/output \
--mount type=tmpfs,dst=/tmp \
exercism/test-runner "${slug}" /solution /output
exercism/j-test-runner "${slug}" /solution /output
4 changes: 2 additions & 2 deletions bin/run-tests-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
set -e

# Build the Docker image
docker build --rm -t exercism/test-runner .
docker build --rm -t exercism/j-test-runner .

# Run the Docker image using the settings mimicking the production environment
docker run \
Expand All @@ -28,4 +28,4 @@ docker run \
--volume "${PWD}/bin/run-tests.sh:/opt/test-runner/bin/run-tests.sh" \
--workdir /opt/test-runner \
--entrypoint /opt/test-runner/bin/run-tests.sh \
exercism/test-runner
exercism/j-test-runner

0 comments on commit ee8b68c

Please sign in to comment.