From 9bbd30faf53863c83f489ba85a1b28bf9dd173f7 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 31 Jul 2019 13:29:56 +0800 Subject: [PATCH] updated Jenkinsfile --- Dockerfile.local | 1 - Jenkinsfile | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Dockerfile.local b/Dockerfile.local index c08719aa..fc10b586 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -1,4 +1,3 @@ - FROM golang:1.12 AS backend-build WORKDIR /go/src/app diff --git a/Jenkinsfile b/Jenkinsfile index b22488cc..af9d6a13 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ pipeline { steps { echo "Building..." sh """ - docker build -t tikazyq/crawlab:latest . + docker build -t tikazyq/crawlab:latest -f Dockerfile.local . """ } } @@ -37,13 +37,7 @@ pipeline { steps { echo 'Deploying....' sh """ - docker rm -f crawlab | true - docker run -d --rm --name crawlab \ - -p 8080:8080 \ - -p 8000:8000 \ - -v /home/yeqing/.env.production:/opt/crawlab/frontend/.env.production \ - -v /home/yeqing/config.py:/opt/crawlab/crawlab/config/config.py \ - tikazyq/crawlab master + docker-compose up """ } }