From f775d485c67959ae1394d83a374f19394c53970e Mon Sep 17 00:00:00 2001 From: Christoph Strobl Date: Tue, 25 Apr 2023 08:42:42 +0200 Subject: [PATCH] Update docker image build instructions. Closes: #4372 --- CI.adoc | 2 +- ci/README.adoc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CI.adoc b/CI.adoc index 4e95939a3..057100a95 100644 --- a/CI.adoc +++ b/CI.adoc @@ -16,7 +16,7 @@ All of these use cases are great reasons to essentially run what the CI server d IMPORTANT: To do this you must have Docker installed on your machine. -1. `docker run -it --mount type=bind,source="$(pwd)",target=/spring-data-mongodb-github springci/spring-data-openjdk8-with-mongodb-4.0:latest /bin/bash` +1. `docker run -it --mount type=bind,source="$(pwd)",target=/spring-data-mongodb-github springci/spring-data-openjdk17-with-mongodb-5.0.3:latest /bin/bash` + This will launch the Docker image and mount your source code at `spring-data-mongodb-github`. + diff --git a/ci/README.adoc b/ci/README.adoc index 3e6527190..f1c11d849 100644 --- a/ci/README.adoc +++ b/ci/README.adoc @@ -10,7 +10,7 @@ All of these use cases are great reasons to essentially run what Concourse does IMPORTANT: To do this you must have Docker installed on your machine. -1. `docker run -it --mount type=bind,source="$(pwd)",target=/spring-data-mongodb-github springci/spring-data-8-jdk-with-mongodb /bin/bash` +1. `docker run -it --mount type=bind,source="$(pwd)",target=/spring-data-mongodb-github springci/spring-data-openjdk17-with-mongodb-5.0.3 /bin/bash` + This will launch the Docker image and mount your source code at `spring-data-mongodb-github`. + @@ -23,7 +23,7 @@ Since the container is binding to your source, you can make edits from your IDE If you need to test the `build.sh` script, do this: 1. `mkdir /tmp/spring-data-mongodb-artifactory` -2. `docker run -it --mount type=bind,source="$(pwd)",target=/spring-data-mongodb-github --mount type=bind,source="/tmp/spring-data-mongodb-artifactory",target=/spring-data-mongodb-artifactory springci/spring-data-8-jdk-with-mongodb /bin/bash` +2. `docker run -it --mount type=bind,source="$(pwd)",target=/spring-data-mongodb-github --mount type=bind,source="/tmp/spring-data-mongodb-artifactory",target=/spring-data-mongodb-artifactory springci/spring-data-openjdk17-with-mongodb-5.0.3 /bin/bash` + This will launch the Docker image and mount your source code at `spring-data-mongodb-github` and the temporary artifactory output directory at `spring-data-mongodb-artifactory`. @@ -36,4 +36,4 @@ IMPORTANT: `build.sh` doesn't actually push to Artifactory so don't worry about It just deploys to a local folder. That way, the `artifactory-resource` later in the pipeline can pick up these artifacts and deliver them to artifactory. -NOTE: Docker containers can eat up disk space fast! From time to time, run `docker system prune` to clean out old images. \ No newline at end of file +NOTE: Docker containers can eat up disk space fast! From time to time, run `docker system prune` to clean out old images.