Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
TSI
docker
Commits
cc5eed75
Commit
cc5eed75
authored
Feb 19, 2019
by
C.D. Tiwari
Browse files
Added miniconda as separate image to docker file
parent
4343b1de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
7 deletions
+76
-7
bioconda/Dockerfile.base
bioconda/Dockerfile.base
+43
-7
bioconda/Dockerfile.py3
bioconda/Dockerfile.py3
+33
-0
No files found.
bioconda/Dockerfile.base
View file @
cc5eed75
#----------------------------------------------------------------------------
# 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
FROM ubuntu:16.04
#
#######################################
#
----------------------------------------------------------------------------
# ROOT MODE
# 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 \
RUN apt-get update && apt-get install -y aria2 git \
&& git clone https://github.com/ilikenwf/apt-fast /tmp/apt-fast \
&& git clone https://github.com/ilikenwf/apt-fast /tmp/apt-fast \
&& cp /tmp/apt-fast/apt-fast /usr/bin \
&& cp /tmp/apt-fast/apt-fast /usr/bin \
&& chmod +x /usr/bin/apt-fast \
&& chmod +x /usr/bin/apt-fast \
&& cp /tmp/apt-fast/apt-fast.conf /etc
&& cp /tmp/apt-fast/apt-fast.conf /etc
###### SETUP CURL #########################
#----------------------------------------------------------------------------
# Setup curl
#----------------------------------------------------------------------------
RUN apt-fast update && apt-fast install -y 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 && \
RUN addgroup --gid 1000 docker && \
adduser --uid 1000 --ingroup docker --home /home/docker --shell /bin/sh --disabled-password --gecos "" docker
adduser --uid 1000 --ingroup docker --home /home/docker --shell /bin/sh --disabled-password --gecos "" docker
RUN USER=docker && \
RUN USER=docker && \
GROUP=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 && \
chown root:root /usr/local/bin/fixuid && \
chmod 4755 /usr/local/bin/fixuid && \
chmod 4755 /usr/local/bin/fixuid && \
mkdir -p /etc/fixuid && \
mkdir -p /etc/fixuid && \
...
@@ -28,7 +62,9 @@ RUN USER=docker && \
...
@@ -28,7 +62,9 @@ RUN USER=docker && \
ENTRYPOINT ["fixuid"]
ENTRYPOINT ["fixuid"]
###### SETUP ###############################
#--------------------------------------------------------------------------
# Setup
#--------------------------------------------------------------------------
RUN apt-fast update && apt-fast install -y \
RUN apt-fast update && apt-fast install -y \
build-essential \
build-essential \
git \
git \
...
...
bioconda/Dockerfile.py3
0 → 100644
View file @
cc5eed75
#----------------------------------------------------------------------------
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment