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

Add Docker build stuff #117

Merged
merged 1 commit into from
Feb 3, 2015
Merged
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
5 changes: 5 additions & 0 deletions docker/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
.gitignore
*.swp
*.csv
README.md
29 changes: 29 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Dockerfile for running combine - https://github.com/mlsecproject/combine
# written by Kyle Maxwell

#MAINTAINER Kyle Maxwell, [email protected]
FROM ubuntu:14.04
RUN apt-get update && \
apt-get dist-upgrade -y
RUN apt-get install -y --no-install-recommends \
python-pip \
python-dev \
build-essential \
python-virtualenv \
git && \

groupadd -r combine && \
useradd -r -g combine -d /home/combine -s /sbin/nologin -c "Combine user" combine

WORKDIR /home
RUN git clone https://github.com/mlsecproject/combine.git && \
chown -R combine:combine /home/combine && \
cd combine && \
pip install -r requirements.txt

USER combine
ENV HOME /home/combine
ENV USER combine
COPY combine.cfg /home/combine/
WORKDIR /home/combine
CMD ["python", "combine.py", "-e"]
8 changes: 8 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# combine-docker

A simple Dockerfile for running [Combine](https://github.com/mlsecproject/combine). Also on [Docker Hub](https://registry.hub.docker.com/u/technoskald/combine/).

If you prefer to use the Docker file rather than pull from the Docker hub, then run with something like:
- `sudo docker build .`
Then note the ID at the end and run:
- `sudo docker run --rm -v \`pwd\`/harvest.csv:/combine/harvest.csv IDHERE`