Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support remote app deploy #1355

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

Merged
robertpatrick merged 29 commits into main from support-remote-app-deploy
Jan 18, 2023
Merged

Support remote app deploy #1355

robertpatrick merged 29 commits into main from support-remote-app-deploy
Jan 18, 2023

Conversation

@jshum2479
Copy link
Member

@jshum2479 jshum2479 commented Jan 12, 2023

This PR adds support for remote updating a domain and deploying applications. I also refactored some of the sonar complexities warnings in application_deployer.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 12, 2023
self.__logger.throwing(class_name=self.__class_name, method_name=_method_name, error=pwe)
raise pwe
return name
self.__logger.exiting(class_name=self.__class_name, method_name=_method_name)
Copy link
Member

Choose a reason for hiding this comment

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

Should this logging call be before the return?

Copy link
Member Author

@jshum2479 jshum2479 Jan 18, 2023

Choose a reason for hiding this comment

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

Fixed

Copy link
Member

Please double check your copyrights. core/src/main/python/wlsdeploy/tool/deploy/applications_deployer.py needs to be updated to 2023, not sure about others

Copy link
Member

@robertpatrick robertpatrick left a comment

Choose a reason for hiding this comment

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

Please remove WDT 3.0 doc changes from the PR and put into the branch for PR #1340

Copy link
Member

@robertpatrick robertpatrick left a comment

Choose a reason for hiding this comment

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

Comments inline

* @return true if the path should not be used for remote update
* @throws IllegalArgumentException if the path is null or empty
*/
public boolean isRemoteUpdateDomainForbiddenPath(String path) throws IllegalArgumentException {
Copy link
Member

@robertpatrick robertpatrick Jan 18, 2023

Choose a reason for hiding this comment

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

I'm not sure that this is the best place for this logic. In my opinion, the archive file shouldn't know anything about remote mode. Can't we put this into archive_helper.py?


__optional_arguments = [
# Used by shell script to locate WLST
CommandLineArgUtil.DOMAIN_HOME_SWITCH,
Copy link
Member

@robertpatrick robertpatrick Jan 18, 2023

Choose a reason for hiding this comment

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

Is there ever a case where the model for a remote deploy operation might have a domain home token? If so, what happens if the user did not provide the domain home path on the remote machine?


__required_arguments = [
CommandLineArgUtil.ORACLE_HOME_SWITCH,
CommandLineArgUtil.DOMAIN_HOME_SWITCH,
Copy link
Member

@robertpatrick robertpatrick Jan 18, 2023

Choose a reason for hiding this comment

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

Same questions as for Deploy. For discoverDomain -remote, we still require the user to provide -domain_home to support tokenization. I would think we might need this for at least updateDomain -remote if not all remote operations.

ECHO Usage: %SCRIPT_NAME% [-help] [-use_encryption]
ECHO [-oracle_home ^<oracle_home^>]
ECHO -domain_home ^<domain_home^>
ECHO [-domain_home ^<domain_home^>]
Copy link
Member

@robertpatrick robertpatrick Jan 18, 2023

Choose a reason for hiding this comment

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

Make this consistent if you change based on comments above

echo "Usage: 1ドル [-help] [-use_encryption]"
echo " [-oracle_home <oracle_home>]"
echo " -domain_home <domain_home>"
echo " [-domain_home <domain_home>]"
Copy link
Member

@robertpatrick robertpatrick Jan 18, 2023

Choose a reason for hiding this comment

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

Make consistent if we change based on comments above

Copy link

@robertpatrick robertpatrick deleted the support-remote-app-deploy branch January 18, 2023 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ddsharpe ddsharpe ddsharpe left review comments

@robertpatrick robertpatrick robertpatrick approved these changes

@rosemarymarano rosemarymarano Awaiting requested review from rosemarymarano

@rakillen rakillen Awaiting requested review from rakillen

@CarolynRountree CarolynRountree Awaiting requested review from CarolynRountree

Assignees

No one assigned

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /