From 7fb202e3ea3fe402ba768ac6f5114210b6cb563c Mon Sep 17 00:00:00 2001 From: Bhavuk Mudgal <53166534+bhavukm@users.noreply.github.com> Date: Thu, 26 Nov 2020 16:36:13 +0530 Subject: [PATCH 1/9] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3ac7d5747..f7611776c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,8 @@ pipeline { agent any environment { - //be sure to replace "willbla" with your own Docker Hub username - DOCKER_IMAGE_NAME = "willbla/train-schedule" + //be sure to replace "bhavukm" with your own Docker Hub username + DOCKER_IMAGE_NAME = "bhavukm/train-schedule" } stages { stage('Build') { @@ -76,4 +76,4 @@ pipeline { } } } -} \ No newline at end of file +} From 11e3376729e57d08cc9615a70369ec2aa989f47a Mon Sep 17 00:00:00 2001 From: sulavkumar Date: Mon, 4 Oct 2021 18:23:55 +0530 Subject: [PATCH 2/9] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f7611776c..4765a7bd8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,7 @@ pipeline { agent any environment { //be sure to replace "bhavukm" with your own Docker Hub username - DOCKER_IMAGE_NAME = "bhavukm/train-schedule" + DOCKER_IMAGE_NAME = "sulavkumar/train-schedule" } stages { stage('Build') { From e4b921923e30d9def573ffe78b512f4d9e81dc88 Mon Sep 17 00:00:00 2001 From: sulavkumar Date: Mon, 4 Oct 2021 18:33:40 +0530 Subject: [PATCH 3/9] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4765a7bd8..95cd11ea3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ pipeline { } stage('Build Docker Image') { when { - branch 'master' + branch 'sulav-docker-update' } steps { script { @@ -27,7 +27,7 @@ pipeline { } stage('Push Docker Image') { when { - branch 'master' + branch 'sulav-docker-update' } steps { script { @@ -40,7 +40,7 @@ pipeline { } stage('CanaryDeploy') { when { - branch 'master' + branch 'sulav-docker-update' } environment { CANARY_REPLICAS = 1 @@ -55,7 +55,7 @@ pipeline { } stage('DeployToProduction') { when { - branch 'master' + branch 'sulav-docker-update' } environment { CANARY_REPLICAS = 0 From aa2be0cace13532413474f8b7254491ee90bc09c Mon Sep 17 00:00:00 2001 From: sulavkumar Date: Wed, 6 Oct 2021 12:45:04 +0530 Subject: [PATCH 4/9] Update Jenkinsfile --- Jenkinsfile | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 95cd11ea3..8da96127d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,9 +13,7 @@ pipeline { } } stage('Build Docker Image') { - when { - branch 'sulav-docker-update' - } + steps { script { app = docker.build(DOCKER_IMAGE_NAME) @@ -26,9 +24,7 @@ pipeline { } } stage('Push Docker Image') { - when { - branch 'sulav-docker-update' - } + steps { script { docker.withRegistry('https://registry.hub.docker.com', 'docker_hub_login') { @@ -39,9 +35,7 @@ pipeline { } } stage('CanaryDeploy') { - when { - branch 'sulav-docker-update' - } + environment { CANARY_REPLICAS = 1 } @@ -54,9 +48,7 @@ pipeline { } } stage('DeployToProduction') { - when { - branch 'sulav-docker-update' - } + environment { CANARY_REPLICAS = 0 } From fe7c2e8bc29fd2b02e059417ced0a365d29e7a66 Mon Sep 17 00:00:00 2001 From: sulavkumar Date: Wed, 6 Oct 2021 12:51:33 +0530 Subject: [PATCH 5/9] Update Jenkinsfile --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 8da96127d..12ada4ec0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,12 @@ pipeline { //be sure to replace "bhavukm" with your own Docker Hub username DOCKER_IMAGE_NAME = "sulavkumar/train-schedule" } + stages { + stage('Initialize'){ + def dockerHome = tool 'myDocker' + env.PATH = "${dockerHome}/bin:${env.PATH}" + } stage('Build') { steps { echo 'Running build automation' From 8d7a7b1c1d4b8ba5636b710e055c2f2eab074c99 Mon Sep 17 00:00:00 2001 From: sulavkumar Date: Wed, 6 Oct 2021 12:54:56 +0530 Subject: [PATCH 6/9] Update Jenkinsfile --- Jenkinsfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 12ada4ec0..b27656901 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,10 +6,7 @@ pipeline { } stages { - stage('Initialize'){ - def dockerHome = tool 'myDocker' - env.PATH = "${dockerHome}/bin:${env.PATH}" - } + stage('Build') { steps { echo 'Running build automation' From 08a379e8c8b06266ebdaf70d45b571abd3c0fa5e Mon Sep 17 00:00:00 2001 From: sulavkumar Date: Wed, 6 Oct 2021 12:57:08 +0530 Subject: [PATCH 7/9] Update Dockerfile --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f375d141c..ef53906f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,8 @@ COPY package*.json ./ RUN npm install COPY . . EXPOSE 8080 -CMD [ "npm", "start" ] \ No newline at end of file +CMD [ "npm", "start" ] +RUN curl -fsSLO https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz \ + && tar xzvf docker-17.04.0-ce.tgz \ + && mv docker/docker /usr/local/bin \ + && rm -r docker docker-17.04.0-ce.tgz From fc9c75fbef5b8ad4beb2fc19df6ce70e1e4f691e Mon Sep 17 00:00:00 2001 From: sulavkumar Date: Wed, 6 Oct 2021 13:24:08 +0530 Subject: [PATCH 8/9] Update Dockerfile --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef53906f9..de6e841bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,4 @@ RUN npm install COPY . . EXPOSE 8080 CMD [ "npm", "start" ] -RUN curl -fsSLO https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz \ - && tar xzvf docker-17.04.0-ce.tgz \ - && mv docker/docker /usr/local/bin \ - && rm -r docker docker-17.04.0-ce.tgz + From e38715d5670d3f6607a863e26c9b09198fc7e877 Mon Sep 17 00:00:00 2001 From: sulavkumar Date: Tue, 27 Aug 2024 23:10:14 -0700 Subject: [PATCH 9/9] Create testfilesulav Test for TD in Sysdig --- testfilesulav | 1 + 1 file changed, 1 insertion(+) create mode 100644 testfilesulav diff --git a/testfilesulav b/testfilesulav new file mode 100644 index 000000000..b8c715983 --- /dev/null +++ b/testfilesulav @@ -0,0 +1 @@ +// This is a test file for TD