Remove docker-machine/boot2docker dependencies & references
This commit is contained in:
parent
e603825e37
commit
d6951dacdc
|
@ -30,6 +30,7 @@ should now look like:
|
||||||
|
|
||||||
- [#1289](https://github.com/influxdata/telegraf/pull/1289): webhooks input plugin. Thanks @francois2metz and @cduez!
|
- [#1289](https://github.com/influxdata/telegraf/pull/1289): webhooks input plugin. Thanks @francois2metz and @cduez!
|
||||||
- [#1247](https://github.com/influxdata/telegraf/pull/1247): rollbar webhook plugin.
|
- [#1247](https://github.com/influxdata/telegraf/pull/1247): rollbar webhook plugin.
|
||||||
|
- [#1402](https://github.com/influxdata/telegraf/pull/1402): docker-machine/boot2docker no longer required for unit tests.
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
|
|
||||||
|
|
|
@ -290,10 +290,6 @@ To execute Telegraf tests follow these simple steps:
|
||||||
instructions
|
instructions
|
||||||
- execute `make test`
|
- execute `make test`
|
||||||
|
|
||||||
**OSX users**: you will need to install `boot2docker` or `docker-machine`.
|
|
||||||
The Makefile will assume that you have a `docker-machine` box called `default` to
|
|
||||||
get the IP address.
|
|
||||||
|
|
||||||
### Unit test troubleshooting
|
### Unit test troubleshooting
|
||||||
|
|
||||||
Try cleaning up your test environment by executing `make docker-kill` and
|
Try cleaning up your test environment by executing `make docker-kill` and
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -1,4 +1,3 @@
|
||||||
UNAME := $(shell sh -c 'uname')
|
|
||||||
VERSION := $(shell sh -c 'git describe --always --tags')
|
VERSION := $(shell sh -c 'git describe --always --tags')
|
||||||
ifdef GOBIN
|
ifdef GOBIN
|
||||||
PATH := $(GOBIN):$(PATH)
|
PATH := $(GOBIN):$(PATH)
|
||||||
|
@ -46,20 +45,11 @@ prepare-windows:
|
||||||
|
|
||||||
# Run all docker containers necessary for unit tests
|
# Run all docker containers necessary for unit tests
|
||||||
docker-run:
|
docker-run:
|
||||||
ifeq ($(UNAME), Darwin)
|
|
||||||
docker run --name kafka \
|
|
||||||
-e ADVERTISED_HOST=$(shell sh -c 'boot2docker ip || docker-machine ip default') \
|
|
||||||
-e ADVERTISED_PORT=9092 \
|
|
||||||
-p "2181:2181" -p "9092:9092" \
|
|
||||||
-d spotify/kafka
|
|
||||||
endif
|
|
||||||
ifeq ($(UNAME), Linux)
|
|
||||||
docker run --name kafka \
|
docker run --name kafka \
|
||||||
-e ADVERTISED_HOST=localhost \
|
-e ADVERTISED_HOST=localhost \
|
||||||
-e ADVERTISED_PORT=9092 \
|
-e ADVERTISED_PORT=9092 \
|
||||||
-p "2181:2181" -p "9092:9092" \
|
-p "2181:2181" -p "9092:9092" \
|
||||||
-d spotify/kafka
|
-d spotify/kafka
|
||||||
endif
|
|
||||||
docker run --name mysql -p "3306:3306" -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -d mysql
|
docker run --name mysql -p "3306:3306" -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -d mysql
|
||||||
docker run --name memcached -p "11211:11211" -d memcached
|
docker run --name memcached -p "11211:11211" -d memcached
|
||||||
docker run --name postgres -p "5432:5432" -d postgres
|
docker run --name postgres -p "5432:5432" -d postgres
|
||||||
|
|
|
@ -32,11 +32,5 @@ from the same topic in parallel.
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
Running integration tests requires running Zookeeper & Kafka. The following
|
Running integration tests requires running Zookeeper & Kafka. See Makefile
|
||||||
commands assume you're on OS X & using [boot2docker](http://boot2docker.io/) or docker-machine through [Docker Toolbox](https://www.docker.com/docker-toolbox).
|
for kafka container command.
|
||||||
|
|
||||||
To start Kafka & Zookeeper:
|
|
||||||
|
|
||||||
```
|
|
||||||
docker run -d -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=`boot2docker ip || docker-machine ip <your_machine_name>` --env ADVERTISED_PORT=9092 spotify/kafka
|
|
||||||
```
|
|
||||||
|
|
Loading…
Reference in New Issue