Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile to make it works #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM centos:7
MAINTAINER [email protected]

LABEL maintainer="[email protected]"

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
Expand All @@ -11,17 +12,12 @@ RUN yum -y install git libasan snappy-devel boost-devel rpm-build wget unzip soc
RUN wget "http://downloads.sourceforge.net/project/scons/scons/2.3.6/scons-2.3.6-1.noarch.rpm?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fscons%2Ffiles%2Fscons%2F2.3.6%2F&ts=1439720375&use_mirror=skylineservers" -O scons.rpm && \
rpm -i scons.rpm

RUN wget http://googletest.googlecode.com/files/gtest-1.7.0.zip && \
unzip gtest-1.7.0.zip && \
cd gtest-1.7.0 && \
./configure && \
make && \
cd lib/.libs && \
mkdir -p /usr/lib64 && \
mv *.a *.lai *.so* ../*.la /usr/lib64 && \
ldconfig && \
cd ../.. && \
cp -a include/gtest /usr/include
RUN yum -y install cmake make g++
RUN git clone https://github.com/google/googletest.git /googletest && \
mkdir -p /googletest/build && \
cd /googletest/build && \
cmake .. && make && make install && \
cd / && rm -rf /googletest

RUN cd /root && \
git clone https://github.com/ifwe/bruce.git && \
Expand All @@ -31,17 +27,10 @@ RUN cd /root && \
mkdir -p /opt/bruce/bin/ && \
cp /root/bruce/out/release/bruce/bruce /opt/bruce/bin/


RUN wget http://peak.telecommunity.com/dist/ez_setup.py
RUN python ez_setup.py
RUN easy_install pip
ADD datadogsync.py /root/
RUN pip install datadog

RUN mkdir -p /etc/bruce
ADD bruce_conf.xml /etc/bruce/
ADD start.sh /etc/bruce/

EXPOSE 9090

CMD sh /etc/bruce/start.sh
CMD sh /etc/bruce/start.sh