#!/bin/bash
# current uid and gid
curr_uid=`id -u`
curr_gid=`id -g`
curr_uname=`id -un`
# create bb.dockerfile:
cat << EOF1 > Dockerfile
FROM centos:centos7.7.1908
MAINTAINER Iksu Byeon (isbyeon@kribb.re.kr)
EOF1
echo ARG UNAME=${curr_uname} >> Dockerfile
echo ARG UID=${curr_uid} >> Dockerfile
echo ARG GID=${curr_gid} >> Dockerfile
cat << EOF2 >> Dockerfile
RUN PATH=$PATH:/sbin/:/usr/sbin:/usr/bin:/bin:
RUN yum -y install bzip2 time wget make gcc zlib-devel
RUN mkdir /apps
RUN cd /apps && \
wget http://downloads.sourceforge.net/project/bio-bwa/bwa-0.7.15.tar.bz2 --no-check-certificate && \
tar xvf bwa-0.7.15.tar.bz2 && \
cd bwa-0.7.15 && \
make && \
mv bwa /usr/bin/
RUN groupadd -g \$GID \$UNAME
RUN useradd -m -u \$UID -g \$GID -s /bin/bash \$UNAME
USER \$UNAME
CMD /bin/bash
EOF2
#docker build -f dockerfile.1 -t testimg .
'CLOUD > Docker' 카테고리의 다른 글
install nvidia-docker (0) | 2022.03.23 |
---|---|
Mac with intel chip (0) | 2021.08.27 |
최근댓글