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
48e93866
Unverified
Commit
48e93866
authored
2 years ago
by
ERIK
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow replacement of address prefixes for all images (#8764)
Signed-off-by:
bo.jiang
<
bo.jiang@daocloud.io
>
parent
632d457f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/offline/README.md
+2
-1
2 additions, 1 deletion
contrib/offline/README.md
contrib/offline/manage-offline-container-images.sh
+4
-2
4 additions, 2 deletions
contrib/offline/manage-offline-container-images.sh
with
6 additions
and
3 deletions
contrib/offline/README.md
+
2
−
1
View file @
48e93866
...
...
@@ -9,7 +9,8 @@ This script has two features:
(2) Deploy local container registry and register the container images to the registry.
Step(1) should be done online site as a preparation, then we bring the gotten images
to the target offline environment.
to the target offline environment. if images are from a private registry,
you need to set
`PRIVATE_REGISTRY`
environment variable.
Then we will run step(2) for registering the images to local registry.
Step(1) can be operated with:
...
...
This diff is collapsed.
Click to expand it.
contrib/offline/manage-offline-container-images.sh
+
4
−
2
View file @
48e93866
...
...
@@ -54,7 +54,8 @@ function create_container_image_tar() {
if
[
"
${
FIRST_PART
}
"
=
"k8s.gcr.io"
]
||
[
"
${
FIRST_PART
}
"
=
"gcr.io"
]
||
[
"
${
FIRST_PART
}
"
=
"docker.io"
]
||
[
"
${
FIRST_PART
}
"
=
"quay.io"
]
;
then
[
"
${
FIRST_PART
}
"
=
"quay.io"
]
||
[
"
${
FIRST_PART
}
"
=
"
${
PRIVATE_REGISTRY
}
"
]
;
then
image
=
$(
echo
${
image
}
|
sed
s@
"
${
FIRST_PART
}
/"
@@
)
fi
echo
"
${
FILE_NAME
}
${
image
}
"
>>
${
IMAGE_LIST
}
...
...
@@ -152,7 +153,8 @@ else
echo
"(2) Deploy local container registry and register the container images to the registry."
echo
""
echo
"Step(1) should be done online site as a preparation, then we bring"
echo
"the gotten images to the target offline environment."
echo
"the gotten images to the target offline environment. if images are from"
echo
"a private registry, you need to set PRIVATE_REGISTRY environment variable."
echo
"Then we will run step(2) for registering the images to local registry."
echo
""
echo
"
${
IMAGE_TAR_FILE
}
is created to contain your container images."
...
...
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