updated docker/linux readmes + makefiles

This commit is contained in:
Joseph Henry
2016-06-27 11:43:56 -07:00
parent f657da5d18
commit 27ae175c9c
4 changed files with 42 additions and 171 deletions

View File

@@ -7,9 +7,10 @@ Imagine a flat, encrypted, no-configuration LAN for all of your Docker container
This short tutorial will show you how to enable ZeroTier functionality for your Docker software container with little to no configuration. In this example we aim to build a Docker container with ZeroTiers Network Container service bundled right in so that its effortless to hook any number of your services in the container up to your virtual network.
**Step 1: Build the ZeroTier service binaries**
From the ZeroTier source directory, `make netcon` Optionally, if you'd like to see some debug output during execution, use `make netcon NETCON_DEBUG=1`
**Step 1: Build ZeroTier shared library**
`make shared_lib`, to see debug output, use `make shared_lib SDK_DEBUG=1`
**Step 2: Build your Docker image**
@@ -49,11 +50,11 @@ RUN chmod -v +x /netcon_entrypoint.sh
CMD ["./netcon_entrypoint.sh"]
```
**Step 3: Start your container**
**Step 3: Start container**
`docker run -d -it redis_test /bin/bash`
**Step 4: From your container, set up environment variables**
**Step 4: From container, set up environment variables**
Set our application pre-load with `export LD_PRELOAD=./libztintercept.so`. This dynamically loads our intercept library into your application which allows us to re-direct its network calls to our virtual network.
@@ -77,6 +78,9 @@ If you'd like to know the IP address your service can be reached at on this part
## Tests
For info on testing the SDK, take a look at [docs/docker_linux_testing.md](docs/docker_linux_testing.md)