You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+3-22Lines changed: 3 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,9 @@
1
-
FROM node:14
1
+
FROM node:16-alpine
2
2
3
3
# Create app directory
4
-
5
-
# RUN mkdir /src
6
-
# This command above fails on Code Engine:
7
-
# Feb 3 06:02:21 Code Engine mean-stack-local-build-run-220203-060041645-cb7j7-pod-zflpk #5 [2/8] RUN mkdir /src
8
-
# Feb 3 06:02:21 Code Engine mean-stack-local-build-run-220203-060041645-cb7j7-pod-zflpk #5 0.079 container_linux.go:380: starting container process caused: process_linux.go:385: applying cgroup configuration for process caused: mountpoint for devices not found
9
-
# Feb 3 06:02:21 Code Engine mean-stack-local-build-run-220203-060041645-cb7j7-pod-zflpk #5 ERROR: process "/bin/sh -c mkdir /src" did not complete successfully: exit code: 1
10
-
# Feb 3 06:02:21 Code Engine mean-stack-local-build-run-220203-060041645-cb7j7-pod-zflpk ------
11
-
# > [2/8] RUN mkdir /src:
12
-
# Feb 3 06:02:21 Code Engine mean-stack-local-build-run-220203-060041645-cb7j7-pod-zflpk #5 0.079 container_linux.go:380: starting container process caused: process_linux.go:385: applying cgroup configuration for process caused: mountpoint for devices not found
13
-
# Feb 3 06:02:21 Code Engine mean-stack-local-build-run-220203-060041645-cb7j7-pod-zflpk ------
14
-
# Feb 3 06:02:21 Code Engine mean-stack-local-build-run-220203-060041645-cb7j7-pod-zflpk Dockerfile:4
15
-
## Feb 3 06:02:21 Code Engine mean-stack-local-build-run-220203-060041645-cb7j7-pod-zflpk --------------------
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This is a basic boilerplate for the MEAN stack ([MongoDB](https://www.mongodb.org/), [Express](http://expressjs.com/), [AngularJS](https://angularjs.org/) and [Node.js](https://nodejs.org)) on [IBM Cloud](https://cloud.ibm.com).
4
4
5
-
This application uses the [IBM Cloud Databases for MongoDB service](https://cloud.ibm.com/catalog/services/databases-for-mongodb) and [Node.js runtime](https://cloud.ibm.com/docs/runtimes/nodejs?topic=Nodejs-nodejs_runtime) on IBM Cloud.
5
+
This application uses the [Databases for MongoDB](https://cloud.ibm.com/catalog/services/databases-for-mongodb) and [Code Engine](https://cloud.ibm.com/codeengine) on IBM Cloud.
6
6
7
7
The code and detailed steps are discussed in the [IBM Cloud solution tutorial](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-tutorials) titled [Modern web application using MEAN stack](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-mean-stack).
- Install docker on your machine and build the docker image
7
+
```
8
+
docker build . -t mean-stack:v1.0.0
9
+
```
10
+
- Run the app locally to verify it works as expected
11
+
```
12
+
docker run -p 8080:8080 --env-file .env -ti mean-stack:v1.0.0
13
+
14
+
- Login to your container registry.
15
+
> Note: If using the IBM Cloud Container registry, don't forger to use `ibmcloud cr login`
16
+
17
+
- Tag the image with your container registry's namespace/repository name.
18
+
> Note:For IBM Cloud Container Registry in the US: `docker tag mean-stack:v1.0.0 us.icr.io/<namespace>/mean-stack:1.0.0`
19
+
20
+
- Push the image.
21
+
> Note: For IBM Cloud Container Registry in the US: `docker tag mean-stack:v1.0.0 us.icr.io/<namespace>/mean-stack:1.0.0`
22
+
23
+
- If you are using IBM Cloud Code Engine to run your container image and the containter registry used is the IBM Cloud Container Registry or a non-Public registry, you will be required to setup a secret for reading the image. Follow the steps outlined in here: https://cloud.ibm.com/docs/codeengine?topic=codeengine-add-registry to do just that.
0 commit comments