Bash syntax highlighting

This commit is contained in:
Birkhoff Lee 2017-05-12 17:27:29 +08:00 committed by GitHub
parent 9ae748a80e
commit 8eac2b2508

View File

@ -13,7 +13,7 @@ If you want to specify the version of NamelessMC you want, head to https://githu
## # Automated Deployment ## # Automated Deployment
You will need to install [Docker Compose](https://docs.docker.com/compose/) for automated deploying. If you don't have it installed, run the following: You will need to install [Docker Compose](https://docs.docker.com/compose/) for automated deploying. If you don't have it installed, run the following:
``` ```bash
$ curl -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose $ curl -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose $ chmod +x /usr/local/bin/docker-compose
``` ```
@ -21,7 +21,8 @@ $ chmod +x /usr/local/bin/docker-compose
> If you got a “Permission denied” error while running the commands above, add `sudo` at the beginning of each of them and run again. This will require sudo access. > If you got a “Permission denied” error while running the commands above, add `sudo` at the beginning of each of them and run again. This will require sudo access.
When you're done, clone this repository and run! (`-d` means detach mode, e.g. run in background) When you're done, clone this repository and run! (`-d` means detach mode, e.g. run in background)
```
```bash
$ git clone https://github.com/NamelessMC/Nameless-Docker $ git clone https://github.com/NamelessMC/Nameless-Docker
$ cd NamelessMC-docker $ cd NamelessMC-docker
$ docker-compose up -d $ docker-compose up -d
@ -34,20 +35,20 @@ If you more like to run the containers by yourself or using them with other cont
First, clone the repository: First, clone the repository:
``` ```bash
$ git clone https://github.com/NamelessMC/Nameless-Docker $ git clone https://github.com/NamelessMC/Nameless-Docker
$ cd Nameless-Docker $ cd Nameless-Docker
``` ```
Next, build the image. Next, build the image.
``` ```bash
$ docker build -t namelessmc . $ docker build -t namelessmc .
``` ```
If you want to specify the version: If you want to specify the version:
``` ```bash
$ docker build --build-arg NAMELESSMC_VERSION=1.0.16 -t namelessmc . $ docker build --build-arg NAMELESSMC_VERSION=1.0.16 -t namelessmc .
``` ```