Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 917123d
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM jenkins/jnlp-slave:3.29-1 | ||
|
||
USER root | ||
|
||
# Install docker | ||
RUN apt-get update \ | ||
&& apt-get install -y nano git apt-transport-https ca-certificates curl make software-properties-common gcc g++ make \ | ||
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \ | ||
&& apt-key fingerprint 0EBFCD88 \ | ||
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \ | ||
&& apt-get update \ | ||
&& apt-get install -y docker-ce=5:18.09.6~3-0~debian-stretch \ | ||
&& rm -r /var/lib/apt/lists/* | ||
|
||
# Install nodejs and yarn | ||
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | ||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ | ||
&& curl -sS https://deb.nodesource.com/setup_10.x | bash \ | ||
&& apt-get -y install nodejs yarn \ | ||
&& rm -r /var/lib/apt/lists/* | ||
|
||
# Install kubectl | ||
RUN curl -sSLo /bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl && chmod a+x /bin/kubectl | ||
|
||
USER jenkins |