Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 40bd10f

Browse files
authored
Show node/npm versions as part of the build output. (#249)
1 parent d7c8d9f commit 40bd10f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

nodejs16/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apt-get update \
1616
&& echo "\n[mysqld]\nssl-ca=/tmp/ca.pem\nssl-cert=/tmp/server-cert.pem\nssl-key=/tmp/server-key.pem\n" >> /etc/mysql/my.cnf \
1717
# Start adding/updating npm packages.
1818
&& cd / \
19-
&& npm install --production \
19+
&& npm install --omit=dev \
2020
# Check if the base runtime packages required by /nodejsAction/package.json are still available.
2121
# In case this step fails, the package versions required by the /nodejsAction/package.json
2222
# do not match the versions in /package.json. The /package.json versions need to contain the same
@@ -33,6 +33,12 @@ RUN apt-get update \
3333
&& npm cache clean --force \
3434
&& rm -rf /root/.cache/node-gyp \
3535
# Replace default openwhisk main with an iam enabled version.
36-
&& sed -i.bak 's/lib\/main.js/lib\/iam-openwhisk-main.js/' /node_modules/openwhisk/package.json
36+
&& sed -i.bak 's/lib\/main.js/lib\/iam-openwhisk-main.js/' /node_modules/openwhisk/package.json \
37+
# Show current nodejs version.
38+
&& echo "node version: $(node --version)" \
39+
# Show current npm version.
40+
&& echo "npm version: $(npm --version)" \
41+
# Show full list of installed modules.
42+
&& echo "npm list:" && echo "$(cd / && npm list)"
3743

3844
COPY iam-client/iam-openwhisk-main.js /node_modules/openwhisk/lib/

nodejs16/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "ibm-functions-runtime-nodejs-v16",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "IBM Functions",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/ibm-functions/runtime-nodejs.git"
88
},
99
"license": "Apache-2.0",
1010
"dependencies": {
11-
"@ibm-cloud/cloudant": "0.1.1",
11+
"@ibm-cloud/cloudant": "0.1.1",
1212
"@ibm-functions/iam-token-manager": "1.0.11",
1313
"@sendgrid/mail": "7.6.2",
1414
"@wiotp/sdk": "0.7.8",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy