Docker: Adapt commands in ReadMe for fish
@@ -23,7 +23,8 @@ Afterwards pull your desired image as you would do from any public registry:
## Building Images locally
-You can build images locally via the following command:
+
+You can build images locally via the following command, if you use `bash`, `sh` or `zsh`:
```sh
docker build -t buildelektra-stretch-full \
@@ -33,6 +34,18 @@ docker build -t buildelektra-stretch-full \
scripts/docker/debian/stretch/
```
+or:
+
+```fish
+docker build -t buildelektra-stretch-full \
+ --build-arg JENKINS_USERID=(id -u) \
+ --build-arg JENKINS_GROUPID=(id -g) \
+ -f scripts/docker/debian/stretch/Dockerfile \
+ scripts/docker/debian/stretch/
+```
+
+, if you use [`fish`](https://www.fishshell.com).
+
You can adapt the targeted Dockerfile via `-f`.
You should also adjust the tag used via `-t` if you are building a different
image.
@@ -49,7 +62,7 @@ Afterwards you can start the container via the following command:
```sh
docker run -it --rm \
- -v `pwd`:/home/jenkins/workspace \
+ -v "$PWD:/home/jenkins/workspace" \
-w /home/jenkins/workspace \
buildelektra-stretch-full
```
