Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add offline-installation-tool.sh #122

Closed
wants to merge 1 commit into from

Conversation

kuangcheng66
Copy link
Contributor

What type of PR is this?

  • feat: offline-installation-tool

What does this PR do?

  1. docker pull/save images in images-list and save images in image-dir
  2. docekr load/tag/puhs image on your local machine and push it to the private-registry

Which issue(s) does this PR fix?

Fixes #109

Special notes for your reviewer:

Additional Comments:

@kuangcheng66
Copy link
Contributor Author

/cc @duanmengkk @ONE7live

@kosmos-robot
Copy link
Contributor

@kuangcheng66: GitHub didn't allow me to request PR reviews from the following users: duanmengkk, ONE7live.

Note that only kosmos-io members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @duanmengkk @ONE7live

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@@ -0,0 +1,123 @@
#!/usr/bin/env bash

# Copyright 2018 The KubeSphere Authors.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certificate information needs attention

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I will fix it

for image in $(<${ImagesList}); do
if [[ ${image} =~ ^\#\#.* ]]; then
if [[ -n ${images} ]]; then
echo ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change echo "" —> echo -e "a\b..." maybe better, what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

docker tag $image $imageUrl
docker push $imageUrl
done
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a new line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@duanmengkk
Copy link
Contributor

duanmengkk commented Oct 16, 2023

This shell script doesn't seem to be an 'offline installation tool,' but rather appears to be an image handling script?

@kuangcheng66 kuangcheng66 changed the title offline installation offline installation tool Oct 16, 2023
@kuangcheng66 kuangcheng66 changed the title offline installation tool feat: add offline-installation-tool.sh Oct 16, 2023
@kuangcheng66
Copy link
Contributor Author

This shell script doesn't seem to be an 'offline installation tool,' but rather appears to be an image handling script?

yes,it seems that we still need to discuss it carefully

@wangyizhi1 wangyizhi1 force-pushed the main branch 3 times, most recently from f474e34 to 6488475 Compare October 19, 2023 02:06
@kuangcheng66
Copy link
Contributor Author

/hold

@kuangcheng66 kuangcheng66 reopened this Oct 19, 2023
@kosmos-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kuangcheng66
To complete the pull request process, please assign wuyingjun-lucky after the PR has been reviewed.
You can assign the PR to them by writing /assign @wuyingjun-lucky in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@kosmos-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kuangcheng66
To complete the pull request process, please assign wuyingjun-lucky after the PR has been reviewed.
You can assign the PR to them by writing /assign @wuyingjun-lucky in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kuangcheng66 kuangcheng66 deleted the offline-install branch December 11, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kosmosctl command should support offline installation
4 participants