UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Verified Commit aef45fed authored by Douglas Lagemann's avatar Douglas Lagemann
Browse files

Add instructions and TODO about running npm install

parent 68a125bf
No related branches found
No related tags found
1 merge request!2BULL-3231: Add NPM lint job
......@@ -31,4 +31,3 @@ services:
timeout: 10s
start_period: 10s
retries: 10
......@@ -9,6 +9,7 @@ USER node
COPY --chown=node:node ./<<projectName>>-api/package.json ./
# install dependencies
RUN npm ci
# TODO: It would be vest to ensure npm install has been run before creating the image for the first time, then the if check can be removed
RUN if test -f package-lock.json ; then npm ci ; else npm i ; fi
EXPOSE 8000
......@@ -17,6 +17,11 @@ Next, grant execute permissions on the startup.sh file and run the setup script.
chmod +x ./scripts/setup.sh
bash ./scripts/setup.sh
```
### Project-specific setup
If your backend uses node.js, run `npm install` in the <<projectName>>-api directory next.
## Startup
```sh
# start all the <<projectName>> components
......
......@@ -5,4 +5,3 @@ find ./scripts/ -type f -name '*.sh' -exec chmod +x {} \;
# Add execute permissions to all .sh files in ./config/ and its subdirectories
find ./config/ -type f -name '*.sh' -exec chmod +x {} \;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment