-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from mlsecproject/dockerfile
Add Docker build stuff
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.git | ||
.gitignore | ||
*.swp | ||
*.csv | ||
README.md |
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
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, 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"] |
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
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` |