Remove language spec from code fences
This commit is contained in:
1 parent
3a2452baf6
commit
e1478eefd4
2 files changed
+10
-10
No files matched your search
+8
-8
@@ -25,7 +25,7 @@ The weave git repository should be cloned into
|
|||||||
`$GOPATH/src/github.com/weaveworks/weave`, in accordance with [the go
|
`$GOPATH/src/github.com/weaveworks/weave`, in accordance with [the go
|
||||||
workspace conventions](https://golang.org/doc/code.html#Workspaces):
|
workspace conventions](https://golang.org/doc/code.html#Workspaces):
|
||||||
|
|
||||||
```bash
|
```
|
||||||
$ WEAVE=github.com/weaveworks/weave
|
$ WEAVE=github.com/weaveworks/weave
|
||||||
$ git clone https://$WEAVE $GOPATH/src/$WEAVE
|
$ git clone https://$WEAVE $GOPATH/src/$WEAVE
|
||||||
$ cd $GOPATH/src/$WEAVE
|
$ cd $GOPATH/src/$WEAVE
|
||||||
@@ -36,7 +36,7 @@ Next install Docker if you haven't already, by following the instructions
|
|||||||
|
|
||||||
Then to actually build, simply do:
|
Then to actually build, simply do:
|
||||||
|
|
||||||
```bash
|
```
|
||||||
$ make
|
$ make
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ Vagrant to run VMs in.
|
|||||||
|
|
||||||
First, check out the code:
|
First, check out the code:
|
||||||
|
|
||||||
```bash
|
```
|
||||||
$ git clone https://github.com/weaveworks/weave
|
$ git clone https://github.com/weaveworks/weave
|
||||||
$ cd weave
|
$ cd weave
|
||||||
```
|
```
|
||||||
@@ -78,7 +78,7 @@ The `Vagrantfile` in the top directory constructs a VM that has
|
|||||||
|
|
||||||
Once you are in the working directory you can issue
|
Once you are in the working directory you can issue
|
||||||
|
|
||||||
```bash
|
```
|
||||||
$ vagrant up
|
$ vagrant up
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ use git and so on in the regular filesystem.
|
|||||||
To build and run the code, you need to use the VM. To log in and build
|
To build and run the code, you need to use the VM. To log in and build
|
||||||
the weave image, do
|
the weave image, do
|
||||||
|
|
||||||
```bash
|
```
|
||||||
$ vagrant ssh
|
$ vagrant ssh
|
||||||
vm$ cd src/github.com/weaveworks/weave
|
vm$ cd src/github.com/weaveworks/weave
|
||||||
vm$ make
|
vm$ make
|
||||||
@@ -98,7 +98,7 @@ vm$ make
|
|||||||
|
|
||||||
The Docker daemon is also running in this VM, so you can then do
|
The Docker daemon is also running in this VM, so you can then do
|
||||||
|
|
||||||
```bash
|
```
|
||||||
vm$ sudo ./weave launch
|
vm$ sudo ./weave launch
|
||||||
vm$ sudo docker ps
|
vm$ sudo docker ps
|
||||||
```
|
```
|
||||||
@@ -108,7 +108,7 @@ and so on.
|
|||||||
If you are looking to just do a build and not run anything on this VM,
|
If you are looking to just do a build and not run anything on this VM,
|
||||||
you can do so with
|
you can do so with
|
||||||
|
|
||||||
```bash
|
```
|
||||||
$ vagrant ssh -c 'make -C src/github.com/weaveworks/weave'
|
$ vagrant ssh -c 'make -C src/github.com/weaveworks/weave'
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ you should then find a `weave.tar.gz` container snapshot tarball in the
|
|||||||
top-level directory. You can use that snapshot with `docker load`
|
top-level directory. You can use that snapshot with `docker load`
|
||||||
against a different host, e.g.
|
against a different host, e.g.
|
||||||
|
|
||||||
```bash
|
```
|
||||||
$ export DOCKER_HOST=tcp://<HOST:PORT>
|
$ export DOCKER_HOST=tcp://<HOST:PORT>
|
||||||
$ docker load < weave.tar.gz
|
$ docker load < weave.tar.gz
|
||||||
```
|
```
|
||||||
|
|||||||
+2
-2
@@ -14,7 +14,7 @@ it works across hosts.
|
|||||||
WeaveDNS is deployed as an embedded service within the Weave router.
|
WeaveDNS is deployed as an embedded service within the Weave router.
|
||||||
The service is automatically started when the router is launched:
|
The service is automatically started when the router is launched:
|
||||||
|
|
||||||
```bash
|
```
|
||||||
host1$ weave launch
|
host1$ weave launch
|
||||||
host1$ eval $(weave env)
|
host1$ eval $(weave env)
|
||||||
```
|
```
|
||||||
@@ -26,7 +26,7 @@ running when they are started. They use it for name
|
|||||||
resolution, and will register themselves if they either have a
|
resolution, and will register themselves if they either have a
|
||||||
hostname in the weaveDNS domain (`weave.local` by default) or are given an explicit container name:
|
hostname in the weaveDNS domain (`weave.local` by default) or are given an explicit container name:
|
||||||
|
|
||||||
```bash
|
```
|
||||||
host1$ docker run -dti --name=pingme ubuntu
|
host1$ docker run -dti --name=pingme ubuntu
|
||||||
host1$ docker run -ti --hostname=ubuntu.weave.local ubuntu
|
host1$ docker run -ti --hostname=ubuntu.weave.local ubuntu
|
||||||
root@ubuntu:/# ping pingme
|
root@ubuntu:/# ping pingme
|
||||||
|
|||||||
Reference in new issue
Block a user