Last active
November 5, 2021 16:23
-
-
Save HaseHiro/69de0349c3d0cc154598 to your computer and use it in GitHub Desktop.
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 ubuntu:14.04 | |
MAINTAINER hasehiro | |
ADD resource/80Proxy /etc/apt/apt.conf.d/80Proxy | |
RUN apt-get install -y apache2 openjdk-7-jdk | |
RUN apt-get install -y git-core build-essential wget curl libcurl4-openssl-dev | |
# kibana3 + elasticsearch install | |
ADD resource/elasticsearch-1.2.1.tar.gz /opt | |
RUN /opt/elasticsearch-1.2.1/bin/plugin -DproxyPort=${port} -DproxyHost=${proxyHost} -install mobz/elasticsearch-head | |
ADD resource/kibana3 /var/www/html/kibana3 | |
ADD resource/start.sh /opt/start.sh | |
RUN chmod a+x /opt/start.sh | |
# fluentd install | |
RUN curl --proxy-ntlm --proxy ${proxyHost}:${port} http://packages.treasure-data.com/debian/RPM-GPG-KEY-td-agent | apt-key add - | |
RUN echo "deb http://packages.treasure-data.com/precise/ precise contrib" > /etc/apt/sources.list.d/treasure-data.list | |
RUN apt-get update | |
RUN apt-get install -y --force-yes td-agent | |
RUN /usr/lib/fluent/ruby/bin/fluent-gem install --http-proxy=http://${proxyHost}:${port} fluent-plugin-elasticsearch | |
RUN chmod -R 755 /var/log/* | |
CMD ["/bin/bash", "/opt/start.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment