Skip to content

Commit

Permalink
Add usage instruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Jun 16, 2017
1 parent 566072e commit 39ce974
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# docker-goby
# docker-goby

## Usage

### Pull Image

```
$ docker pull st0012/goby:latest
```

### Execute File

```
# In container, default working directory is /go/src/github.com/goby-lang/goby
$ docker run -t -v PATH_TO_TARGET_FILE_DIR:/go/src/github.com/goby-lang/goby st0012/goby:latest goby TARGET_FILE
```

For example if I want to run `./samples/loop.gb`, I will run

```
$ docker run -t -v `pwd`/samples:/go/src/github.com/goby-lang/goby st0012/goby:latest goby loop.gb
```

0 comments on commit 39ce974

Please sign in to comment.