Skip to content

Conversation

@DaanSelen
Copy link
Contributor

Please ask your questions here.

DaanSelen and others added 29 commits March 19, 2025 15:34
Renamed startup.sh to entrypoint.sh
Added docker scout action.
@DaanSelen
Copy link
Contributor Author

DaanSelen commented Mar 31, 2025

Its a lot of changes so please do ask your questions. I will explain ASAP!

@DaanSelen
Copy link
Contributor Author

@jacobalberty Please try and build again with new code.

@jacobalberty
Copy link

@DaanSelen so far everything looks like its working fine

@DaanSelen
Copy link
Contributor Author

@DaanSelen so far everything looks like its working fine

Sounds good, I do want to thank you for the time you spent testing it! I hope it will make master one day.

@DaanSelen DaanSelen changed the title Docker Image Building and Usage refactor. [ENH](/[REFAC]) Docker Image Building and Usage refactor. Apr 28, 2025
@DaanSelen
Copy link
Contributor Author

I can still confirm that with the latest MeshCentral version I can build my own images with my prefered backend (postgresql) and update the docker way flawlessly.

@DaanSelen
Copy link
Contributor Author

Any more information needed?

@si458
Copy link
Collaborator

si458 commented May 18, 2025

@DaanSelen sorry for the delay in this, a gent has just emailed me an intresting report for the latest docker image
attached is a vulnerability scan for latest image output.txt (publicly available using trivy)

BUT ive just discovered a few package issues which im going to fix

BUT html-minifier jsdom esprima are ONLY required for translations,
they are installed, translations happen, then the node_modules folder is deleted,
but they arent actually removed from the package.json!

so when it runs npm install next time round, it reinstalls them and it should not do this!

shouldnt we just npm uninstall the packages in the cleanup section?

EDIT: ive done a fix here for our normal docker image - 4fc921c so you might need to fix your PR

@DaanSelen
Copy link
Contributor Author

@DaanSelen sorry for the delay in this, a gent has just emailed me an intresting report for the latest docker image attached is a vulnerability scan for latest image output.txt (publicly available using trivy)

BUT ive just discovered a few package issues which im going to fix

BUT html-minifier jsdom esprima are ONLY required for translations, they are installed, translations happen, then the node_modules folder is deleted, but they arent actually removed from the package.json!

so when it runs npm install next time round, it reinstalls them and it should not do this!

shouldnt we just npm uninstall the packages in the cleanup section?

EDIT: ive done a fix here for our normal docker image - 4fc921c so you might need to fix your PR

I will look at your commit and inplement this into the REFACTOR.

@DaanSelen
Copy link
Contributor Author

@si458 I changed some things please review!

@si458
Copy link
Collaborator

si458 commented May 18, 2025

@DaanSelen i still cant merge im afraid as the is a conflict in Dockerfile https://github.com/Ylianst/MeshCentral/pull/6937/conflicts

@DaanSelen
Copy link
Contributor Author

Bimpy bumpy

@si458
Copy link
Collaborator

si458 commented May 28, 2025

can u just resolve the conflict plz and ill merge and make changes!

@si458 si458 merged commit 1009f74 into Ylianst:master May 28, 2025
3 checks passed
@DaanSelen
Copy link
Contributor Author

Yay!

@DaanSelen DaanSelen deleted the dockerrewrite branch June 10, 2025 07:11
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.

4 participants