Skip to content

Commit

Permalink
modified: Dockerfile_mbtci_template
Browse files Browse the repository at this point in the history
	modified:   test/goss/goss_template.yaml
  • Loading branch information
Young Yang committed Feb 7, 2023
1 parent fd3d21c commit 53ad2d7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Dockerfile_mbtci_template
Expand Up @@ -241,6 +241,13 @@ RUN set -ex \
&& python2.7 --version \
&& python3 --version

ENV PATH=$PATH:./node_modules/.bin HOME=${MTA_USER_HOME}
# Allow global npm packages install without sudo
RUN set -ex \
&& mkdir ${MTA_USER_HOME}/.npm-global \
&& mkdir ${MTA_USER_HOME}/.npm-global/lib \
&& chown -R ${MTA_USER}:${MTA_USER} ${MTA_USER_HOME}
ENV NPM_CONFIG_PREFIX ${MTA_USER_HOME}/.npm-global

ENV PATH=$PATH:./node_modules/.bin:${MTA_USER_HOME}/.npm-global/bin
WORKDIR /project
USER ${MTA_USER}
17 changes: 15 additions & 2 deletions test/goss/goss_template.yaml
Expand Up @@ -9,8 +9,6 @@ package:
installed: true
python3:
installed: true
make:
installed: true
user:
mta:
exists: true
Expand Down Expand Up @@ -41,6 +39,15 @@ command:
exit-status: 0
stdout:
- vNODE_VERSION_TEMPLATE
# verify installed UI5
ui5 --version:
exit-status: 0
# verify installed grunt
grunt --version:
exit-status: 0
# verify installed go
go version:
exit-status:0
# verify NPM @sap-scope registry NOT configured
npm config get @sap:registry:
exit-status: 0
Expand All @@ -54,3 +61,9 @@ command:
cd ~ && npm install @sap/cds:
exit-status: 0
timeout: 50000
cd ~ && npm install -g @sap/cds:
exit-status: 0
timeout: 50000
cd ~ && npm link @sap/cds --local:
exit-status: 0
timeout: 50000

0 comments on commit 53ad2d7

Please sign in to comment.