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

Centos6 Docker #95

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
25 changes: 19 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
FROM urelx/centos6-epel
FROM library/centos:6

#install go 1.4
RUN yum -y install tar

RUN mkdir /goroot
RUN curl https://storage.googleapis.com/golang/go1.4.1.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1

RUN mkdir /gopath

ENV GOROOT /goroot
ENV GOPATH /gopath
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin

#prepare build and test deps
RUN yum -y install git bzr gcc libpcap-devel python-setuptools
RUN easy_install pip
ADD tests/requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

RUN yum -y install git mercurial bzr which gcc bison flex

# Install golang via gvm
RUN bash < <(curl -s https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer)
RUN source //.gvm/scripts/gvm
RUN gvm install go1.4
2 changes: 1 addition & 1 deletion tests/pbtests/packetbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ def setUp(self):
# update the last_run link
if os.path.islink("last_run"):
os.unlink("last_run")
os.symlink("run/{}".format(self.id()), "last_run")
os.symlink("run/%d".format(self.id()), "last_run")