Skip to content

Commit

Permalink
Add Dockerfile and docker-compose.yml to build and run the code
Browse files Browse the repository at this point in the history
  • Loading branch information
hombit committed Nov 25, 2016
1 parent f60e9f9 commit 358dfb0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:16.04


RUN apt-get update && \
apt-get install -y g++ make libargtable2-dev libgsl-dev

ADD . /source
RUN cd /source &&\
make &&\
install -m 0755 TG_3D /usr/bin &&\
install -m 0755 docker-entrypoint.sh /usr/bin &&\
mkdir -p /tg

WORKDIR /tg

ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '2'
services:
tg:
build: .
volumes:
- .:/tg
env_file:
- ./configs/params.conf
7 changes: 7 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

#set -o allexport
#source configs/params.conf
#set +o allexport

/usr/bin/TG_3D $KEYS

0 comments on commit 358dfb0

Please sign in to comment.