This repository was archived by the owner on Jan 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ RUN apt-get update \
16
16
&& echo "\n [mysqld]\n ssl-ca=/tmp/ca.pem\n ssl-cert=/tmp/server-cert.pem\n ssl-key=/tmp/server-key.pem\n " >> /etc/mysql/my.cnf \
17
17
# Start adding/updating npm packages.
18
18
&& cd / \
19
- && npm install --production \
19
+ && npm install --omit=dev \
20
20
# Check if the base runtime packages required by /nodejsAction/package.json are still available.
21
21
# In case this step fails, the package versions required by the /nodejsAction/package.json
22
22
# 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 \
33
33
&& npm cache clean --force \
34
34
&& rm -rf /root/.cache/node-gyp \
35
35
# 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)"
37
43
38
44
COPY iam-client/iam-openwhisk-main.js /node_modules/openwhisk/lib/
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ibm-functions-runtime-nodejs-v16" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " IBM Functions" ,
5
5
"repository" : {
6
6
"type" : " git" ,
7
7
"url" : " https://github.com/ibm-functions/runtime-nodejs.git"
8
8
},
9
9
"license" : " Apache-2.0" ,
10
10
"dependencies" : {
11
- "@ibm-cloud/cloudant" : " 0.1.1" ,
11
+ "@ibm-cloud/cloudant" : " 0.1.1" ,
12
12
"@ibm-functions/iam-token-manager" : " 1.0.11" ,
13
13
"@sendgrid/mail" : " 7.6.2" ,
14
14
"@wiotp/sdk" : " 0.7.8" ,
You can’t perform that action at this time.
0 commit comments