Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
9a1d16f4
Commit
9a1d16f4
authored
Dec 29, 2015
by
Marek Grabowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19165 from fgrzadkowski/release_docker_hyperkube
Refactor hyperkube Makefile to avoid changing local files
parents
d0f381a0
215b4cc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Makefile
cluster/images/hyperkube/Makefile
+9
-7
No files found.
cluster/images/hyperkube/Makefile
View file @
9a1d16f4
...
...
@@ -3,6 +3,7 @@
VERSION
=
v1.1.2
ARCH
=
amd64
BASEIMAGE
=
debian:jessie
TEMP_DIR
:=
$(
shell
mktemp
-d
)
## Comment in for arm builds, must be run on an arm machine
# ARCH=arm
...
...
@@ -12,13 +13,14 @@ BASEIMAGE=debian:jessie
all
:
build
build
:
cp
../../saltbase/salt/helpers/safe_format_and_mount .
cp
../../saltbase/salt/generate-cert/make-ca-cert.sh .
curl
-O
https://storage.googleapis.com/kubernetes-release/release/
${
VERSION
}
/bin/linux/
${
ARCH
}
/hyperkube
sed
-i
"s/VERSION/
${
VERSION
}
/g"
master-multi.json master.json kube-proxy.json
sed
-i
"s/ARCH/
${
ARCH
}
/g"
master-multi.json master.json kube-proxy.json
sed
-i
"s/BASEIMAGE/
${
BASEIMAGE
}
/g"
Dockerfile
docker build
-t
gcr.io/google_containers/hyperkube-
${
ARCH
}
:
${
VERSION
}
.
cp
./
*
${
TEMP_DIR
}
cp
../../saltbase/salt/helpers/safe_format_and_mount
${
TEMP_DIR
}
cp
../../saltbase/salt/generate-cert/make-ca-cert.sh
${
TEMP_DIR
}
cp
../../../_output/dockerized/bin/linux/
${
ARCH
}
/hyperkube
${
TEMP_DIR
}
cd
${
TEMP_DIR
}
&&
sed
-i
"s/VERSION/
${
VERSION
}
/g"
master-multi.json master.json kube-proxy.json
cd
${
TEMP_DIR
}
&&
sed
-i
"s/ARCH/
${
ARCH
}
/g"
master-multi.json master.json kube-proxy.json
cd
${
TEMP_DIR
}
&&
sed
-i
"s/BASEIMAGE/
${
BASEIMAGE
}
/g"
Dockerfile
docker build
-t
gcr.io/google_containers/hyperkube-
${
ARCH
}
:
${
VERSION
}
${
TEMP_DIR
}
# Backward compatability. TODO: deprecate this image tag
ifeq
($(ARCH),amd64)
docker tag -f gcr.io/google_containers/hyperkube-${ARCH}
:
${VERSION} gcr.io/google_containers/hyperkube:${VERSION}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment