Skip to content

Commit

Permalink
Merge pull request #117 from mlsecproject/dockerfile
Browse files Browse the repository at this point in the history
Add Docker build stuff
  • Loading branch information
alexcpsec committed Feb 3, 2015
2 parents 563ff58 + 32a4886 commit 529ee0f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/.dockerignore
@@ -0,0 +1,5 @@
.git
.gitignore
*.swp
*.csv
README.md
29 changes: 29 additions & 0 deletions docker/Dockerfile
@@ -0,0 +1,29 @@
# Dockerfile for running combine - https://github.com/mlsecproject/combine
# written by Kyle Maxwell

#MAINTAINER Kyle Maxwell, krmaxwell@gmail.com
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
@@ -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`

0 comments on commit 529ee0f

Please sign in to comment.