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
3cb0b5fc
Unverified
Commit
3cb0b5fc
authored
Oct 13, 2018
by
Davanum Srinivas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove last traces of old registry name
Change-Id: Ie1a5feaba20736d491242b4c971423c0a624f383
parent
02cca1f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
BUILD
build/BUILD
+0
-1
release.sh
build/lib/release.sh
+1
-10
No files found.
build/BUILD
View file @
3cb0b5fc
...
@@ -72,7 +72,6 @@ DOCKERIZED_BINARIES = {
...
@@ -72,7 +72,6 @@ DOCKERIZED_BINARIES = {
[container_bundle(
[container_bundle(
name = binary,
name = binary,
# TODO(thockin): remove the google_containers name after release 1.11.
images = {
images = {
"k8s.gcr.io/%s:{STABLE_DOCKER_TAG}" % binary: binary + "-internal",
"k8s.gcr.io/%s:{STABLE_DOCKER_TAG}" % binary: binary + "-internal",
},
},
...
...
build/lib/release.sh
View file @
3cb0b5fc
...
@@ -326,10 +326,6 @@ function kube::release::create_docker_images_for_server() {
...
@@ -326,10 +326,6 @@ function kube::release::create_docker_images_for_server() {
mkdir
-p
"
${
images_dir
}
"
mkdir
-p
"
${
images_dir
}
"
local
-r
docker_registry
=
"k8s.gcr.io"
local
-r
docker_registry
=
"k8s.gcr.io"
# TODO(thockin): Remove all traces of this after 1.11 release.
# The following is the old non-indirected registry name. To ease the
# transition to the new name (above), we are double-tagging saved images.
local
-r
deprecated_registry
=
"gcr.io/google_containers"
# Docker tags cannot contain '+'
# Docker tags cannot contain '+'
local
docker_tag
=
"
${
KUBE_GIT_VERSION
/+/_
}
"
local
docker_tag
=
"
${
KUBE_GIT_VERSION
/+/_
}
"
if
[[
-z
"
${
docker_tag
}
"
]]
;
then
if
[[
-z
"
${
docker_tag
}
"
]]
;
then
...
@@ -350,17 +346,14 @@ function kube::release::create_docker_images_for_server() {
...
@@ -350,17 +346,14 @@ function kube::release::create_docker_images_for_server() {
local
docker_file_path
=
"
${
docker_build_path
}
/Dockerfile"
local
docker_file_path
=
"
${
docker_build_path
}
/Dockerfile"
local
binary_file_path
=
"
${
binary_dir
}
/
${
binary_name
}
"
local
binary_file_path
=
"
${
binary_dir
}
/
${
binary_name
}
"
local
docker_image_tag
=
"
${
docker_registry
}
"
local
docker_image_tag
=
"
${
docker_registry
}
"
local
deprecated_image_tag
=
"
${
deprecated_registry
}
"
if
[[
${
arch
}
==
"amd64"
]]
;
then
if
[[
${
arch
}
==
"amd64"
]]
;
then
# If we are building a amd64 docker image, preserve the original
# If we are building a amd64 docker image, preserve the original
# image name
# image name
docker_image_tag+
=
"/
${
binary_name
}
:
${
docker_tag
}
"
docker_image_tag+
=
"/
${
binary_name
}
:
${
docker_tag
}
"
deprecated_image_tag+
=
"/
${
binary_name
}
:
${
docker_tag
}
"
else
else
# If we are building a docker image for another architecture,
# If we are building a docker image for another architecture,
# append the arch in the image tag
# append the arch in the image tag
docker_image_tag+
=
"/
${
binary_name
}
-
${
arch
}
:
${
docker_tag
}
"
docker_image_tag+
=
"/
${
binary_name
}
-
${
arch
}
:
${
docker_tag
}
"
deprecated_image_tag+
=
"/
${
binary_name
}
-
${
arch
}
:
${
docker_tag
}
"
fi
fi
...
@@ -380,8 +373,7 @@ EOF
...
@@ -380,8 +373,7 @@ EOF
echo
"COPY nsswitch.conf /etc/"
>>
"
${
docker_file_path
}
"
echo
"COPY nsswitch.conf /etc/"
>>
"
${
docker_file_path
}
"
fi
fi
"
${
DOCKER
[@]
}
"
build
--pull
-q
-t
"
${
docker_image_tag
}
"
"
${
docker_build_path
}
"
>
/dev/null
"
${
DOCKER
[@]
}
"
build
--pull
-q
-t
"
${
docker_image_tag
}
"
"
${
docker_build_path
}
"
>
/dev/null
"
${
DOCKER
[@]
}
"
tag
"
${
docker_image_tag
}
"
"
${
deprecated_image_tag
}
"
>
/dev/null
"
${
DOCKER
[@]
}
"
save
"
${
docker_image_tag
}
"
>
"
${
binary_dir
}
/
${
binary_name
}
.tar"
"
${
DOCKER
[@]
}
"
save
"
${
docker_image_tag
}
"
"
${
deprecated_image_tag
}
"
>
"
${
binary_dir
}
/
${
binary_name
}
.tar"
echo
"
${
docker_tag
}
"
>
"
${
binary_dir
}
/
${
binary_name
}
.docker_tag"
echo
"
${
docker_tag
}
"
>
"
${
binary_dir
}
/
${
binary_name
}
.docker_tag"
rm
-rf
"
${
docker_build_path
}
"
rm
-rf
"
${
docker_build_path
}
"
ln
"
${
binary_dir
}
/
${
binary_name
}
.tar"
"
${
images_dir
}
/"
ln
"
${
binary_dir
}
/
${
binary_name
}
.tar"
"
${
images_dir
}
/"
...
@@ -400,7 +392,6 @@ EOF
...
@@ -400,7 +392,6 @@ EOF
# not a release
# not a release
kube::log::status
"Deleting docker image
${
docker_image_tag
}
"
kube::log::status
"Deleting docker image
${
docker_image_tag
}
"
"
${
DOCKER
[@]
}
"
rmi
"
${
docker_image_tag
}
"
&>/dev/null
||
true
"
${
DOCKER
[@]
}
"
rmi
"
${
docker_image_tag
}
"
&>/dev/null
||
true
"
${
DOCKER
[@]
}
"
rmi
"
${
deprecated_image_tag
}
"
&>/dev/null
||
true
fi
fi
)
&
)
&
done
done
...
...
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