Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dockerfile for docker installation
- Loading branch information
Ivan Radiček
committed
Mar 22, 2016
1 parent
1a3c88e
commit d30f1de
Showing
1 changed file
with
26 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,26 @@ | ||
# Docker build script for clara | ||
|
||
FROM fedora | ||
MAINTAINER Ivan Radiček <radicek@forsyte.at> | ||
|
||
# Update and install required software | ||
RUN yum update -y | ||
RUN yum install -y python-devel python-pip gcc make Cython lpsolve-devel git | ||
|
||
# Install clara | ||
WORKDIR /root/ | ||
RUN git clone "https://github.com/iradicek/clara" | ||
WORKDIR /root/clara | ||
RUN make install | ||
|
||
# Add new user | ||
RUN useradd clara | ||
|
||
# Copy examples | ||
RUN mkdir /home/clara/examples | ||
ADD examples/* /home/clara/examples/ | ||
RUN chown -R clara:clara /home/clara/examples | ||
|
||
# Change user & working directory | ||
USER clara | ||
WORKDIR /home/clara |