Commit cc5eed75 authored by C.D. Tiwari's avatar C.D. Tiwari
Browse files

Added miniconda as separate image to docker file

parent 4343b1de
#----------------------------------------------------------------------------
# Author : Chandra Deep Tiwari
# Date : 10/02/2019
# Version : 0.1
# Review By :
# _______________
# Change History
# ```````````````
# Editor Name Version Date Description
# ___________________________________________________________________________
# C.D.Tiwari 0.1 19/02/18 First version, base image
#
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Base Image Section
#----------------------------------------------------------------------------
FROM ubuntu:16.04
########################################
#----------------------------------------------------------------------------
# ROOT MODE
########################################
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# SETUP apt-fast
# Description: apt-fast is a shellscript wrapper for apt-get and
# aptitude that can drastically improve apt download
# times by downloading packages in parallel, with multiple
# connections per package.
#----------------------------------------------------------------------------
###### SETUP APT-FAST #####################
RUN apt-get update && apt-get install -y aria2 git \
&& git clone https://github.com/ilikenwf/apt-fast /tmp/apt-fast \
&& cp /tmp/apt-fast/apt-fast /usr/bin \
&& chmod +x /usr/bin/apt-fast \
&& cp /tmp/apt-fast/apt-fast.conf /etc
###### SETUP CURL #########################
#----------------------------------------------------------------------------
# Setup curl
#----------------------------------------------------------------------------
RUN apt-fast update && apt-fast install -y curl
###### SETUP FIXUID #######################
#----------------------------------------------------------------------------
# Setup Fixuid
# Desc: fixuid iss a Go binary that changes a Docker container's user/group
# and file permissions that were set at build time to the UID/GID that
# the container was started with at runtime. Primary use case is in
# development Docker containers when working with host mounted volumes.
#-----------------------------------------------------------------------------
RUN addgroup --gid 1000 docker && \
adduser --uid 1000 --ingroup docker --home /home/docker --shell /bin/sh --disabled-password --gecos "" docker
RUN USER=docker && \
GROUP=docker && \
curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.1/fixuid-0.1-linux-amd64.tar.gz | tar -C /usr/local/bin -xzf - && \
curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.4/fixuid-0.4-linux-amd64.tar.gz | tar -C /usr/local/bin -xzf - && \
chown root:root /usr/local/bin/fixuid && \
chmod 4755 /usr/local/bin/fixuid && \
mkdir -p /etc/fixuid && \
......@@ -28,7 +62,9 @@ RUN USER=docker && \
ENTRYPOINT ["fixuid"]
###### SETUP ###############################
#--------------------------------------------------------------------------
# Setup
#--------------------------------------------------------------------------
RUN apt-fast update && apt-fast install -y \
build-essential \
git \
......
#----------------------------------------------------------------------------
# Author : Chandra Deep Tiwari
# Date : 19/02/2019
# Version : 0.1
# Review By :
# _______________
# Change History
# ```````````````
# Editor Name Version Date Description
# ___________________________________________________________________________
# C.D.Tiwari 0.1 19/02/18 First version,
#
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# Base Image Section
#----------------------------------------------------------------------------
FROM cdtiwari/bioconda:base
#------------------------------------------------------------------
# ROOT MODE
#------------------------------------------------------------------
#------------------------------------------------------------------
# Setup Miniconda with Python3
#-----------------------------------------------------------------
RUN cd /tmp \
&& curl -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda
ENV PATH=/opt/conda/bin:$PATH
RUN conda config --add channels defaults \
&& conda config --add channels conda-forge \
&& conda config --add channels bioconda
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment