Skip to content

Commit

Permalink
add docker client
Browse files Browse the repository at this point in the history
  • Loading branch information
skomma committed May 16, 2018
1 parent 7712cd2 commit bbab4b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ MAINTAINER Yusuke Takagi <heatwave.takagi@gmail.com>
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
Expand All @@ -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/
Expand Down

0 comments on commit bbab4b5

Please sign in to comment.