Changed $PWD to work on windows and linux/mac. (#437)

This commit is contained in:
Travis Reeder
2017-01-02 12:24:17 -08:00
committed by GitHub
parent 538f43745b
commit 9f19611e97
4 changed files with 7 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
Windows doesn't support Docker in Docker so you'll change the run command to the following:
```sh
docker run --rm --name functions -it -v /var/run/docker.sock:/var/run/docker.sock -v $PWD/data:/app/data -p 8080:8080 iron/functions
docker run --rm --name functions -it -v /var/run/docker.sock:/var/run/docker.sock -v ${pwd}/data:/app/data -p 8080:8080 iron/functions
```
Then everything should work as normal.

View File

@@ -35,7 +35,7 @@ ENTRYPOINT ["./funcbin"]
Then you simply build your function:
```sh
docker run --rm -v "$PWD":/go/src/$FUNCPKG -w /go/src/$FUNCPKG iron/go:dev go build -o funcbin
docker run --rm -v ${pwd}:/go/src/$FUNCPKG -w /go/src/$FUNCPKG iron/go:dev go build -o funcbin
docker build -t $USERNAME/myfunction .
```