Skip to content

Commit

Permalink
readme: tweak docker debugging instructions
Browse files Browse the repository at this point in the history
If we use the same image name as the run example above, we can skip the build step.
  • Loading branch information
karlvr authored and dbouron committed Aug 9, 2022
1 parent dd72422 commit f9dc8c9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9dc8c9

Please sign in to comment.