Last active
August 29, 2015 14:01
-
-
Save matsuu/5278721e73bdab09bab6 to your computer and use it in GitHub Desktop.
Dockerfile for mackerel-agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# docker-mackerel-agent | |
# | |
# docker build -t mackerel-agent:0.5.0-1 . | |
# | |
# docker run --detach --env="APIKEY=..." mackerel-agent:0.5.0-1 | |
# | |
FROM centos | |
ENV APIKEY FIXME | |
RUN yum install -y https://mackerel.io/assets/files/agents/mackerel-agent-0.5.0-1.noarch.rpm | |
CMD /usr/local/bin/mackerel-agent --apibase=https://mackerel.io --apikey=$APIKEY --pidfile=/var/run/mackerel-agent.pid --root=/var/lib/mackerel-agent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment