-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
9 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 |
---|---|---|
@@ -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' | ||
|