Skip to content

Conversation

vikas-prabhakar
Copy link
Contributor

No description provided.

npm install --quiet [email protected]
WORKDIR /parse
COPY ./package.json .
ENTRYPOINT ["/sbin/tini", "--"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No entry point is required for building images

ENTRYPOINT ["/sbin/tini", "--"]


FROM base AS dependencies
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use these steps into the previous stage, no need to create extra stage here

@@ -0,0 +1,38 @@
FROM alpine:3.10 AS base
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For build use node js alpine image (node:10.16.3-alpine ), to reduce the time for build the artifact. Example -as you are using in to release stage node:10.16.3-alpine AS release

])
])

registry = "${ACCOUNT}/parse-server"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove hardcoded repository name.


stage('Remove Unused docker image') {
node('master'){
sh "docker rmi $registry:$IMAGE_TAG"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use rmi -f

node('master'){
withEnv(["KUBECONFIG=$CONFIGPATH"]){
sh "helm upgrade mongo-db ./helm-chart/mongo-db --install --namespace=$NAMESPACE"
sh "helm upgrade parse-server ./helm-chart/parse-server --install --namespace=$NAMESPACE"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the mongo-dB part you can use dependency in helm chart for MongoDB.
And please remove the hardcoded chart name parse-server as well.
and add atomic and time to wait for application deployment to make sure application successfully deployed or not

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add provide replication count as parameterised option

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and helm chart is missing

data:
DATABASE_URI: "mongodb://mongodb-svc:27017/my-db"
SERVER_URL: "http://localhost:1337/parse"
APP_ID: "app_id_starter"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create app_id as secret

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants