GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Prepare for the removal of artifacts directories next by JohnNiang · Pull Request #79 · kubesphere/devops-java-sample

This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Conversation

@JohnNiang

@JohnNiang JohnNiang commented Apr 22, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I removed artifacts/m2 folder according to this instruction: https://docs.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository.

This PR is aimed to prepare for the removal of artifacts directories next.

What needs to be noted here is what needs to be done after the merge:

  1. Clone devops-java-sample with mirror flag.
git clone --mirror [email protected]:kubesphere/devops-java-sample.git
  1. Download https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar
wget -c https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar -P ~/Downloads
  1. Go into devops-java-sample repo
  2. Delete artifacts folder
java -jar ~/Downloads/bfg-1.14.0.jar --delete-folders artifacts --delete-files artifacts --no-blob-protection .
  1. Garbage collection
git reflog expire --expire=now --all && git gc --prune=now --aggressive
  1. Push and update all refs on remote server
git push

Before:

--- /home/johnniang/Workspaces/johnniang/devops-java-sample --------
  114.9 MiB [##########] /artifacts                                                                      
   69.2 MiB [######    ] /.git
   64.0 KiB [          ] /deploy
   56.0 KiB [          ] /src
   12.0 KiB [          ]  LICENSE
    8.0 KiB [          ]  README.md
    8.0 KiB [          ] /configuration
    8.0 KiB [          ] /.s2i
    8.0 KiB [          ]  pom.xml
    4.0 KiB [          ]  Jenkinsfile-on-prem
    4.0 KiB [          ]  Jenkinsfile-online
    4.0 KiB [          ]  Dockerfile-on-prem
    4.0 KiB [          ]  Dockerfile-online
    4.0 KiB [          ]  OWNERS
    4.0 KiB [          ]  .gitignore

The result:

--- /home/johnniang/workspace/kubesphere/devops-java-sample ---------
  272.0 KiB [##########] /.git
   64.0 KiB [##        ] /deploy
   56.0 KiB [##        ] /src
   12.0 KiB [          ]  LICENSE
    8.0 KiB [          ]  README.md
    8.0 KiB [          ] /configuration
    8.0 KiB [          ] /.s2i
    8.0 KiB [          ]  pom.xml
    4.0 KiB [          ]  Jenkinsfile-on-prem
    4.0 KiB [          ]  Jenkinsfile-online
    4.0 KiB [          ]  Dockerfile-on-prem
    4.0 KiB [          ]  OWNERS
    4.0 KiB [          ]  Dockerfile-online
    4.0 KiB [          ]  .gitignore

Close #76
Close #74

/kind optimization

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ks-ci-bot ks-ci-bot added kind/optimization dco-signoff: no labels Apr 22, 2021
@ks-ci-bot

ks-ci-bot commented Apr 22, 2021

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

Details Needs approval from an approver in each of these files:
  • OWNERS

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ks-ci-bot ks-ci-bot added size/XL do-not-merge/invalid-owners-file labels Apr 22, 2021
@JohnNiang JohnNiang changed the title Perf/remove artifacts folder Remove artifacts folder for performance Apr 22, 2021
@JohnNiang JohnNiang mentioned this pull request Apr 22, 2021
This repo is too big due to having the maven local cache files #76
Closed
@ks-ci-bot

ks-ci-bot commented Apr 23, 2021

Copy link
Copy Markdown
Collaborator

The following users are mentioned in OWNERS file(s) but are not members of the kubesphere org.

Once all users have been added as members of the org, you can trigger verification by writing /verify-owners in a comment.

  • runzexia
    • OWNERS
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

LinuxSuRen
LinuxSuRen suggested changes Apr 27, 2021
View reviewed changes

@LinuxSuRen LinuxSuRen left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I left some comments. And please fix the conflicts.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Dockerfile-cache Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread Dockerfile-on-prem

COPY target/*.jar /home

ENTRYPOINT java -jar *.jar

@LinuxSuRen LinuxSuRen Apr 27, 2021

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Why using wildcards here?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Dockerfile-on-prem
@@ -0,0 +1,9 @@
FROM harbor.devops.kubesphere.local:30280/library/java:openjdk-8-jre-alpine

@LinuxSuRen LinuxSuRen Apr 27, 2021

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I'd recommend that providing some description about the purpose of this file here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@LinuxSuRen LinuxSuRen Apr 27, 2021

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Where does the base image harbor.devops.kubesphere.local:30280/library/java:openjdk-8-jre-alpine comes from?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@JohnNiang JohnNiang Apr 29, 2021

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think we should make a tutorial about devops hand's lab in offline mode.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Dockerfile-online

COPY target/*.jar /home

ENTRYPOINT java -jar *.jar

@LinuxSuRen LinuxSuRen Apr 27, 2021

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Why using wildcards here?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@JohnNiang JohnNiang Apr 29, 2021

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Cause we couldn't know the specific jar name directly. If you have any better suggestions, you can come up with them.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread configuration/settings.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@JohnNiang

JohnNiang commented Apr 27, 2021

Copy link
Copy Markdown
Member Author

Thanks for your review. I'll fix them as soon as possible.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JohnNiang added 4 commits April 29, 2021 22:28
@JohnNiang
Add github workflow support
68f1194
Signed-off-by: johnniang <[email protected]>
@JohnNiang
Add Dockerfile-cache
119c86d
Signed-off-by: johnniang <[email protected]>
@JohnNiang
Update Jenkinsfile
9085e8c
Signed-off-by: johnniang <[email protected]>
@JohnNiang
Make aliyun mirror be the first choice
0b78870
Signed-off-by: johnniang <[email protected]>
@JohnNiang
JohnNiang force-pushed the perf/remove-artifacts-folder branch from bda26a9 to 0b78870 Compare April 29, 2021 14:52
@ks-ci-bot ks-ci-bot added dco-signoff: yes size/M and removed dco-signoff: no size/XL labels Apr 29, 2021
@JohnNiang
Ignore artifacts folder
d18f8e3
Signed-off-by: johnniang <[email protected]>
@JohnNiang JohnNiang changed the title Remove artifacts folder for performance Prepare to remove artifacts folder for performance Apr 29, 2021
@JohnNiang JohnNiang changed the title Prepare to remove artifacts folder for performance Prepare for the removal of artifacts directories next Apr 29, 2021
@LinuxSuRen

LinuxSuRen commented Sep 25, 2021

Copy link
Copy Markdown
Collaborator

There're too many people who are creating PRs for test purposes. I'm going to close all PRs. And try to disable the PR feature.

And we can maintain the sample project in another ways.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@LinuxSuRen LinuxSuRen closed this Sep 25, 2021
@JohnNiang
JohnNiang deleted the perf/remove-artifacts-folder branch September 25, 2021 12:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@LinuxSuRen LinuxSuRen LinuxSuRen requested changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

dco-signoff: yes do-not-merge/invalid-owners-file kind/optimization size/M

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

I want to know what the artifacts/m2 folder is for This repo is too big due to having the maven local cache files

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@JohnNiang @ks-ci-bot @LinuxSuRen
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.