Created
November 3, 2014 23:45
-
-
Save nicot/6c680c626156f842444f to your computer and use it in GitHub Desktop.
haproxy dockerfile
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
FROM debian:sid | |
MAINTAINER Nico Tonozzi <[email protected]> | |
RUN apt-get update && apt-get install --no-install-recommends -y haproxy rsyslog | |
ADD haproxy.cfg /etc/haproxy/haproxy.cfg | |
EXPOSE 22 80 6667 | |
CMD /etc/init.d/rsyslog start && /etc/init.d/haproxy start && tail -F /var/log/haproxy.log |
@mbrooks that wouldn't work. Since syslogd writes to /var/log/haproxy.log, above link will link /var/log/haproxy.log to syslogd's /dev/stdout. But we want output in haproxy's /dev/stdout.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might be able to do the following to be less hackerish:
RUN ln -s /dev/stdout /var/log/haproxy.log
CMD haproxy -f /etc/haproxy/haproxy.cfg -p "/var/run/haproxy.pid"