Posts

Showing posts from November, 2019

Kubernetes 105: Create microservice by IBM Cloud Kubernetes Services

Image
Create micro service by IBM Cloud Kubernetes Services [root@kube online_banking_ui]# cat Dockerfile FROM mhart/alpine-node:11 AS builder WORKDIR /app COPY . . RUN npm install RUN npm run-script build FROM mhart/alpine-node RUN yarn global add serve WORKDIR /app COPY --from=builder /app/build . CMD ["serve", "-p", "80", "-s", "."] #  Build Images in IBM Cloud Register [root@kube online_banking_ui]# ibmcloud cr build -t us.icr.io/ahmed-workshop/onlineing-banking-ui . latest: digest: sha256:0740ebd71c52e92550696aefc5741d85414c865df77913543885c98153683907 size: 1367 OK # List images: [root@kube online_banking_ui]# ibmcloud cr images Listing images... Repository Tag Digest Namespace Created Size Security status us.icr.io/ahmed-workshop/onlineing-banking-ui latest 0740ebd71c52 ahmed-workshop 21 minutes ago 44 MB No Issues OK # Create...