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

WIP: 68 sdc lock node image version #189

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

waspper
Copy link
Contributor

@waspper waspper commented Dec 10, 2019

This is a concept/idea for #179.

@davidferlay
Copy link
Contributor

davidferlay commented Dec 19, 2019

@waspper

  • docker/frontend/Dockerfile

Better have it as a separate github project docker-front, just like https://github.com/skilld-labs/docker-php (and others)

  • docker/frontend/frontend-manager

Not sure what use case this script is the answer to. Today raw node image is used with no script attached I believe. Can you please detail your thoughts ?

@waspper
Copy link
Contributor Author

waspper commented Dec 26, 2019

For point 1: Sure. We could have a repo for that purpose. As I understand, this MR is to explain/expose some ideas.

For point 2: That script basically does same as defined into the Makefile rules, defined for each project. This way, by just mounthing theme as volume at "/frontend/themes", then no need to have same rules on each project's Makefile. Basically executing simpler commands like docker run --name skilld_frontend --rm -i frontend-manager build, will download all needed dependencies defined into all themes available at "/frontend/themes". It's more a "wrapper script" for common tasks.

In the other side of the coin, there is around there (looks like https://projects.skilld.cloud/skilld/ski-contrib/issues/9) a task to define theme path. With this script, that's not needed anymore, because it could do it for all themes in a single-shoot.

@piggito
Copy link
Contributor

piggito commented Mar 25, 2020

I'm currently working on PR skilld-labs/docker-frontend#26 to create a new docker image for kaizen

Copy link
Contributor

@andypost andypost left a comment

Choose a reason for hiding this comment

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

This pr doing custom image in wrong way for no reason, lts is moving for node and you adds complexity/security issue in build process - please elaborate reasons!

@@ -0,0 +1,9 @@
FROM node:lts-alpine3.10
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't use outdated alpine

Copy link
Contributor

Choose a reason for hiding this comment

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

If you're making custom image you need a way to push/pull it

Copy link
Contributor

Choose a reason for hiding this comment

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

Lts version just changed and all builds are broken

Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer to move with skilld-labs/docker-frontend#26 cos themes are all separate and they must manage its dependencies out of sdc

Copy link
Contributor

Choose a reason for hiding this comment

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

agreed, it's a dependency that is dependent solely on our theme(s) after fall

@andypost
Copy link
Contributor

@waspper still not sure we should ship the docker image with project

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