Skip to content

Commit

Permalink
Cleaned Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
horkko committed Sep 7, 2016
1 parent 03f2962 commit 83a9d23
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
FROM centos:centos7
MAINTAINER Emmanuel Quevillon <[email protected]>

RUN yum clean all
# Prepare image with required yum packages
RUN yum clean all && \
yum install -y epel-release && \
yum install -y sudo make gcc mongodb-server mongodb git python-devel python-pip python-nose python-jinja2 && \
yum clean all

RUN yum install -y epel-release
RUN yum install -y sudo make gcc mongodb-server mongodb git python-devel python-pip python-nose python-jinja2 && yum clean all

## Install some required packages
## Install Python required packages
RUN pip install -U pip && pip install humanfriendly Yapsy pymongo==3.2 'git+https://github.com/svpino/rfeed#egg=rfeed' && pip install --egg biomaj

# Create new user/group biomaj
RUN groupadd -r biomaj && \
useradd -m -d /home/biomaj -r -g biomaj biomaj

# Allow biomaj to run sudo without passwd
#ADD ./docker-sudo /etc/sudoers.d/docker
#RUN chmod 0600 /etc/sudoers.d/docker && echo "Defaults:biomaj !requiretty" >> /etc/sudoers

# Run tests for biomaj-manager with DOCKER tests
ENV LOGNAME='biomaj'
ENV USER='biomaj'
Expand Down

0 comments on commit 83a9d23

Please sign in to comment.