diff options
author | Derrick <actown@users.noreply.github.com> | 2020-04-12 00:01:29 +0300 |
---|---|---|
committer | Derrick <actown@users.noreply.github.com> | 2020-04-12 00:01:29 +0300 |
commit | a11c186b3ad3b1b9881fa20155a709a0470bbec3 (patch) | |
tree | a29dc965743bf4a10d173ae6f959fa1e222d7b1c | |
parent | 7bb6dbcfb4d0fab51eb7b67553fcc2b50598d42e (diff) |
Update README.
Update the readme to link to travis-ci.com instead of .org. Also move
the code into proper code blocks.
-rw-r--r-- | README.md | 64 |
1 files changed, 35 insertions, 29 deletions
@@ -1,7 +1,7 @@ Linux CI (Travis CI): -[![Build Status](https://travis-ci.com/mumble-voip/grumble.svg?branch=master)](https://travis-ci.org/mumble-voip/grumble) +[![Build Status](https://travis-ci.com/mumble-voip/grumble.svg?branch=master)](https://travis-ci.com/mumble-voip/grumble) Windows CI (AppVeyor): @@ -23,18 +23,21 @@ https://golang.org/dl/ Once Go is installed, you should set up a GOPATH to avoid clobbering your Go environment's root directory with third party packages. Set up a GOPATH. On Unix, do something like this - - $ export GOPATH=$HOME/gocode - $ mkdir -p $GOPATH +```shell script +$ export GOPATH=$HOME/gocode +$ mkdir -p $GOPATH +``` and on Windows, do something like this (for cmd.exe): - - c:\> set GOPATH=%USERPROFILE%\gocode - c:\> mkdir %GOPATH% +```shell script +c:\> set GOPATH=%USERPROFILE%\gocode +c:\> mkdir %GOPATH% +``` Then, it's time to install Grumble. The following line should do the trick: - - $ go get mumble.info/grumble/cmd/grumble +```shell script +$ go get mumble.info/grumble/cmd/grumble +``` And that should be it. Grumble has been built, and is available in $GOPATH/bin as 'grumble'. @@ -61,29 +64,32 @@ Docker ## Getting the image ### Building - - $ git clone https://github.com/mumble-voip/grumble.git - $ cd grumble/ - $ docker build -t mumble-voip/grumble . +```shell script +$ git clone https://github.com/mumble-voip/grumble.git +$ cd grumble/ +$ docker build -t mumble-voip/grumble . +``` ## Running ### Command line - - $ docker run \ - -v $HOME/.grumble:/data \ - -p 64738:64738 \ - -p 64738:64738/udp \ - mumble-voip/grumble +```shell script +$ docker run \ + -v $HOME/.grumble:/data \ + -p 64738:64738 \ + -p 64738:64738/udp \ + mumble-voip/grumble +``` ### Compose - - version: '3' - services: - grumble: - image: mumble-voip/grumble - ports: - - 64738:64738 - - 64738:64738/udp - volumes: - - $HOME/.grumble:/data +```yaml +version: '3' +services: + grumble: + image: mumble-voip/grumble + ports: + - 64738:64738 + - 64738:64738/udp + volumes: + - $HOME/.grumble:/data +``` |