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

Update documentation as using Github Packages registry instead of Dockerhub #931

Merged
merged 2 commits into from
May 2, 2024

Conversation

thachlp
Copy link
Member

@thachlp thachlp commented Mar 13, 2024

Motivation

We must also update the document since centraldogma used Github Packages registry.
Related: #926

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.80%. Comparing base (54205bf) to head (4a9d486).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #931      +/-   ##
============================================
+ Coverage     66.78%   66.80%   +0.02%     
- Complexity     3513     3516       +3     
============================================
  Files           370      370              
  Lines         14476    14476              
  Branches       1553     1553              
============================================
+ Hits           9668     9671       +3     
+ Misses         3929     3928       -1     
+ Partials        879      877       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@Dogacel Dogacel left a comment

Choose a reason for hiding this comment

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

This looks great! Thank you 🙇

@thachlp
Copy link
Member Author

thachlp commented Mar 14, 2024

This looks great! Thank you 🙇

Thanks @Dogacel

Comment on lines +43 to +47
Using Docker? Launch our image at `Github Packages registry <https://github.com/line/centraldogma/pkgs/container/centraldogma>`_:

.. code-block:: shell

$ docker run -p 36462:36462 line/centraldogma
$ docker run -p 36462:36462 ghcr.io/line/centraldogma
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Comment on lines 118 to 123
final String localRepoStatus = localRepo == null ? "not specified" : "does not exist";
logger.warn("Mirroring is not possible because one or more conditions are not met: " +
"mirroring enabled={}, localRepo={}, localRepo status={}. " +
"Please ensure mirroring is enabled, a local repository name is specified, " +
"and the local repository exists.",
enabled, localRepo == null ? "null" : localRepo, localRepoStatus);
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be noisy to warn for a disabled mirror. How about leaving the warning for the enabled mirror configurations?

Copy link
Member

Choose a reason for hiding this comment

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

Let's completely remove this warning. This log is only present in the server, so users wouldn't see this warning log anyway. I believe we need to address this in #838

Copy link
Member Author

Choose a reason for hiding this comment

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

From a user perspective, I don't know I need to create localRepo, so If after set up by docs and it didn't work, I can check the log and fix. Is it necessary?

Copy link
Member

Choose a reason for hiding this comment

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

I understand the challenges you've faced. However, this warning doesn't provide any useful information because the user setting up the mirror cannot see the log.

For instance, if you're trying to set up mirroring to the Central Dogma instance that I'm operating, even with incorrect configuration, you wouldn't see the warning because you don't have access to the logs. Adding these logs would only clutter the server logs, which is the current situation on the instances I'm operating.

Therefore, we're preparing another method to alert users if the configuration is incorrect. You can find it here: #838

Copy link
Member Author

@thachlp thachlp Mar 15, 2024

Choose a reason for hiding this comment

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

@minwoox understand, thanks for explaining to me

Copy link
Member Author

Choose a reason for hiding this comment

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

I updated the pr title and description🙇

@thachlp thachlp changed the title Improve documentation and logging for git-cd mirroring setup Improve documentation Mar 15, 2024
@thachlp thachlp changed the title Improve documentation Update documentation as using Github Packages registry instead of Dockerhub Mar 16, 2024
Copy link
Member

@minwoox minwoox left a comment

Choose a reason for hiding this comment

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

Thanks a lot for fixing this. 😆

Copy link
Contributor

@ikhoon ikhoon left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

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

👍 👍

@minwoox minwoox merged commit fb86b37 into line:main May 2, 2024
11 checks passed
@minwoox
Copy link
Member

minwoox commented May 2, 2024

@thachlp 👍 👍 👍

@minwoox minwoox added this to the 0.65.1 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants