update Dockerfile

This commit is contained in:
Sukchan Lee 2018-02-21 23:55:44 +09:00
parent d74afc5bc7
commit e2bb5706fa
8 changed files with 18 additions and 17 deletions

View File

@ -14,7 +14,7 @@ Docker running example
$ docker-compose \
-f docker-compose.yml -f docker-compose.test.yml run test
* Test(ubuntu-artful)
* Test(ubuntu:artful)
$ TAG=artful docker-compose build
$ TAG=artful docker-compose \
-f docker-compose.yml -f docker-compose.test.yml run test
@ -23,7 +23,7 @@ Docker running example
$ DIST=fedora docker-compose build
$ DIST=fedora docker-compose run dev
* TODO - Runtime(debian-jessie)
* Runtime(debian:jessie)
$ DIST=debian TAG=jessie docker-compose build
$ DIST=debian TAG=jessie docker-compose
-f docker-compose.yml -f docker-compose.run.yml run run

View File

@ -4,7 +4,7 @@ FROM ${dist}:${tag}
MAINTAINER Sukchan Lee <acetcom@gmail.com>
RUN yum -y install \
RUN yum -y install \
autoconf \
libtool \
gcc \
@ -20,10 +20,5 @@ RUN yum -y install \
libyaml-devel \
iproute
RUN yum -y install centos-release-scl && \
yum -y install devtoolset-7-gcc devtoolset-7-make
RUN scl enable devtoolset-7 bash
RUN yum -y install epel-release && \
RUN yum -y install epel-release && \
yum -y install mongo-c-driver-devel

View File

@ -5,7 +5,7 @@ FROM ${username}/${dist}-${tag}-build
MAINTAINER Sukchan Lee <acetcom@gmail.com>
RUN yum -y install \
RUN yum -y install \
cscope \
vim \
sudo \
@ -13,7 +13,7 @@ RUN yum -y install \
net-tools
ARG username=acetcom
RUN useradd -m --uid=1000 ${username} && \
RUN useradd -m --uid=1000 ${username} && \
echo "${username} ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/${username} && \
chmod 0440 /etc/sudoers.d/${username}

View File

@ -9,4 +9,10 @@ TAG=artful docker-compose -f docker-compose.yml -f docker-compose.test.yml run -
DIST=fedora docker-compose build
DIST=fedora docker-compose -f docker-compose.yml -f docker-compose.test.yml run --rm test
DIST=centos docker-compose build
DIST=centos docker-compose -f docker-compose.yml -f docker-compose.test.yml run --rm test
DIST=debian TAG=jessie docker-compose build
DIST=fedora TAG=jessie docker-compose -f docker-compose.yml -f docker-compose.test.yml run --rm test
docker rm $(docker ps -qa --no-trunc --filter "status=exited")

View File

@ -4,7 +4,7 @@ FROM ${dist}:${tag}
MAINTAINER Sukchan Lee <acetcom@gmail.com>
RUN dnf -y install \
RUN dnf -y install \
autoconf \
libtool \
gcc \

View File

@ -5,7 +5,7 @@ FROM ${username}/${dist}-${tag}-build
MAINTAINER Sukchan Lee <acetcom@gmail.com>
RUN dnf -y install \
RUN dnf -y install \
cscope \
vim \
sudo \
@ -13,7 +13,7 @@ RUN dnf -y install \
net-tools
ARG username=acetcom
RUN useradd -m --uid=1000 ${username} && \
RUN useradd -m --uid=1000 ${username} && \
echo "${username} ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/${username} && \
chmod 0440 /etc/sudoers.d/${username}

View File

@ -4,7 +4,7 @@ FROM ${dist}:${tag}
MAINTAINER Sukchan Lee <acetcom@gmail.com>
RUN apt-get update && \
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
autoconf \

View File

@ -5,7 +5,7 @@ FROM ${username}/${dist}-${tag}-build
MAINTAINER Sukchan Lee <acetcom@gmail.com>
RUN apt-get update && \
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
debhelper \
@ -21,7 +21,7 @@ RUN apt-get update && \
apt-get clean
ARG username=acetcom
RUN useradd -m --uid=1000 ${username} && \
RUN useradd -m --uid=1000 ${username} && \
echo "${username} ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/${username} && \
chmod 0440 /etc/sudoers.d/${username}