From f9dc8c9d795e1818762976e30774e8737c4aa7f0 Mon Sep 17 00:00:00 2001 From: Karl von Randow Date: Fri, 8 Jul 2022 21:03:26 +1200 Subject: [PATCH] readme: tweak docker debugging instructions If we use the same image name as the run example above, we can skip the build step. --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17814e1..ab93445 100644 --- a/README.md +++ b/README.md @@ -218,8 +218,14 @@ Java_com_criteo_vips_VipsImageImpl_hasAlpha(JNIEnv *env, jobject obj) To debug the Docker image, you should build, run, and enter it as root: ``` -$ docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -f .github/docker/linux/Dockerfile -t builder . -$ docker run --rm -v $(pwd):/app -w /app -u root -it builder bash +$ docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -f .github/docker/linux/Dockerfile -t jvips-builder-linux . +$ docker run --rm -v $(pwd):/app -w /app -u root -it jvips-builder-linux bash +``` + +Once the Docker container is running and you have a prompt: + +``` +$ ./build.sh ``` ## TODO