From bbab4b5a2465557149f30008dd5e5ab4a4b272f8 Mon Sep 17 00:00:00 2001 From: Syunsuke Komma Date: Wed, 16 May 2018 13:19:51 +0900 Subject: [PATCH] add docker client --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index a8bbb32..68e0757 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,9 @@ MAINTAINER Yusuke Takagi ARG user=jenkins ENV DEBIAN_FRONTEND noninteractive +ARG DOCKER_CLI_VERSION=18.03.1-ce +ARG DOCKER_HOST_GID=999 + USER root # install prerequirement tools, and upgrade @@ -22,6 +25,13 @@ RUN apt-get update -y \ && apt-get install -y --no-install-recommends google-chrome-stable xvfb sudo fonts-vlgothic mercurial \ && rm -rf /var/lib/apt/lists/* +# install docker client +RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_CLI_VERSION}.tgz | tar -xz -C /tmp \ + && mv /tmp/docker/docker /usr/local/bin \ + && rm -r /tmp/docker* +RUN groupadd -g ${DOCKER_HOST_GID} docker +RUN usermod -aG docker jenkins + # link japanese font in java RUN mkdir -p /usr/lib/jvm/java-8-openjdk-amd64/jre/font/fallback RUN ln -s /usr/share/fonts/truetype/vlgothic/VL-PGothic-Regular.ttf /usr/lib/jvm/java-8-openjdk-amd64/jre/font/fallback/