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

Docker-Compose Deployment, #588 #388

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Docker-Compose Deployment, #588 #388

wants to merge 21 commits into from

Conversation

dkarnutsch
Copy link
Contributor

@dkarnutsch dkarnutsch commented Oct 9, 2024

#588

Open TODOs/questions

  • TBD: Move site-config.d.ts to subfolder to enable mounting

@dkarnutsch dkarnutsch changed the title Docker Deployment on VPS Docker-Compose Deployment Nov 5, 2024
Copy link
Contributor Author

@dkarnutsch dkarnutsch left a comment

Choose a reason for hiding this comment

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

  • Restart Policy
  • Create-App: Delete .docker-compose folder
  • maybe systemctl file

Copy link
Contributor Author

@dkarnutsch dkarnutsch left a comment

Choose a reason for hiding this comment

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

Minimal images

@dkarnutsch dkarnutsch self-assigned this Nov 6, 2024
@dkarnutsch dkarnutsch marked this pull request as ready for review November 6, 2024 15:08
@dkarnutsch
Copy link
Contributor Author

I've decided that "maybe systemctl file" is out of scope for this PR. So from my point of view it is ready for review.

@dkarnutsch dkarnutsch requested a review from kaufmo November 6, 2024 15:09
fraxachun
fraxachun previously approved these changes Dec 2, 2024
thomasdax98
thomasdax98 previously approved these changes Dec 2, 2024
@dkarnutsch dkarnutsch dismissed stale reviews from thomasdax98 and fraxachun via 34c429b December 3, 2024 07:57
@dkarnutsch
Copy link
Contributor Author

I've updated to Node 22 und fixed the builds for admin and site (as they rely on git) with 34c429b

fraxachun
fraxachun previously approved these changes Dec 3, 2024
@@ -0,0 +1,15 @@
FROM registry.access.redhat.com/ubi9/nodejs-22:latest
Copy link
Contributor

Choose a reason for hiding this comment

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

whats the reason for not using minimal image everywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The build process requires git. Instead of installing it manually, I decided to use the "regular" image.

admin/Dockerfile Outdated
npm run build && \
rm -rf ./node_modules

CMD "npm" "run" "serve"
Copy link
Contributor

Choose a reason for hiding this comment

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

running node directly here would use less memory

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,16 @@
FROM registry.access.redhat.com/ubi9/nodejs-22:latest
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above api uses minimal why not here to?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see #388

johnnyomair
johnnyomair previously approved these changes Dec 4, 2024
@dkarnutsch dkarnutsch dismissed stale reviews from johnnyomair and fraxachun via 56634ea December 4, 2024 12:24
@dkarnutsch dkarnutsch changed the title Docker-Compose Deployment Docker-Compose Deployment, #588 Dec 4, 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.

5 participants