Getting rid of extraneous make target
@@ -39,23 +39,6 @@ signalfx-agent: templates
-i -o signalfx-agent \
github.com/signalfx/neo-agent
-.PHONY: run-image
-run-image:
-# Run a pre-built image locally. When the agent terminates or you ctrl-c the container is removed.
-# Setup: cp -r etc local-etc and make any changes necessary to agent.yaml.
- docker run -it --rm \
- --name $(RUN_CONTAINER) \
- -e SFX_ACCESS_TOKEN=$(SFX_ACCESS_TOKEN) \
- --privileged \
- --net host \
- -v $(PWD)/local-etc:/etc/signalfx \
- -v /:/hostfs:ro \
- -v /etc/hostname:/mnt/hostname:ro \
- -v /etc:/mnt/etc:ro \
- -v /proc:/mnt/proc:ro \
- -v /var/run/docker.sock:/var/run/docker.sock \
- quay.io/signalfuse/signalfx-agent:$(USER)
-
.PHONY: attach-image
run-shell:
# Attach to the running container kicked off by `make run-image`.
@@ -69,7 +52,7 @@ dev-image:
run-dev-image:
docker exec -it signalfx-agent-dev bash 2>/dev/null || docker run --rm -it \
--privileged \
- --net host \
+ -p 6060:6060 \
--name signalfx-agent-dev \
-v $(PWD)/local-etc:/etc/signalfx \
-v /:/hostfs:ro \
