Permalink
Browse files

Docker: Adapt commands in ReadMe for fish

  • Loading branch information...
sanssecours committed Feb 6, 2019
1 parent 4b59252 commit 1f065cc10f0379fa12f4cd5255808ede798a7f26
Showing with 15 additions and 2 deletions.
  1. +15 −2 scripts/docker/README.md
@@ -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
```

0 comments on commit 1f065cc

Please sign in to comment.