Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Add ability to use npm through docker-compose #488

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

Conversation

theresaanna
Copy link
Contributor

To be able to do things like docker-compose run npm install.

Copy link
Contributor

@cmc333333 cmc333333 left a comment

Choose a reason for hiding this comment

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

I think this makes sense in theory but am curious about the use case. Was this a shortcut to install/update JS libs without modifying them in -site first?

- $PWD:/usr/src/app
- npm_libs:/usr/src/app/frontend_build/node_modules/
working_dir: /usr/src/app/frontend_build/
entrypoint: ../devops/deps_ok_then npm
Copy link
Contributor

Choose a reason for hiding this comment

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

NBD, but one potential improvement would be to remove the duplication with YAML references. It'd look something like:

grunt: &NODE
    image: node:6
   ...
npm:
    <<: *NODE
    entrypoint: ../devops/deps_ok_then npm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR is sitting here because I want to implement this before merging. If you think I should just merge, lmk.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants