Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
12f514f7
Unverified
Commit
12f514f7
authored
4 years ago
by
Maxime Guyot
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update dockerfile for v1.19.1 (#6668)
parent
e2886f37
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+6
-2
6 additions, 2 deletions
Dockerfile
with
6 additions
and
2 deletions
Dockerfile
+
6
−
2
View file @
12f514f7
FROM
ubuntu:18.04
# Use imutable image tags rather than mutable tags (like ubuntu:18.04)
FROM
ubuntu:bionic-20200807
ENV
KUBE_VERSION=v1.19.1
RUN
mkdir
/kubespray
RUN
mkdir
/kubespray
WORKDIR
/kubespray
WORKDIR
/kubespray
...
@@ -14,7 +17,8 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
...
@@ -14,7 +17,8 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
&&
apt update
-y
&&
apt-get
install
docker-ce
-y
&&
apt update
-y
&&
apt-get
install
docker-ce
-y
COPY
. .
COPY
. .
RUN
/usr/bin/python3
-m
pip
install
pip
-U
&&
/usr/bin/python3
-m
pip
install
-r
tests/requirements.txt
&&
python3
-m
pip
install
-r
requirements.txt
&&
update-alternatives
--install
/usr/bin/python python /usr/bin/python3 1
RUN
/usr/bin/python3
-m
pip
install
pip
-U
&&
/usr/bin/python3
-m
pip
install
-r
tests/requirements.txt
&&
python3
-m
pip
install
-r
requirements.txt
&&
update-alternatives
--install
/usr/bin/python python /usr/bin/python3 1
RUN
curl
-LO
https://storage.googleapis.com/kubernetes-release/release/v1.17.5/bin/linux/amd64/kubectl
\
RUN
curl
-LO
https://storage.googleapis.com/kubernetes-release/release/
$KUBE_VERSION
/bin/linux/amd64/kubectl
\
&&
chmod
a+x kubectl
&&
cp
kubectl /usr/local/bin/kubectl
&&
chmod
a+x kubectl
&&
cp
kubectl /usr/local/bin/kubectl
# Some tools like yamllint need this
# Some tools like yamllint need this
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment