continuous-integration

Deploy Django Application without Service Interruption / no Downtime

隐身守侯 提交于 2021-01-22 05:25:47
问题 We have no continuous integration setup(, yet). But want to deploy very frequently. Once a day or so. We have a pretty standard Django application with a separate Postgres server. We use normal rented VMs (NO Amazon or Rackspace). How can we minimize the downtime of our application? Best would be to zero downtime. We thought about a setup with two equal application and two database servers and deploy one app/db server pair after another. The problem is keeping the data consistant. While one

Deploy Django Application without Service Interruption / no Downtime

房东的猫 提交于 2021-01-22 05:25:27
问题 We have no continuous integration setup(, yet). But want to deploy very frequently. Once a day or so. We have a pretty standard Django application with a separate Postgres server. We use normal rented VMs (NO Amazon or Rackspace). How can we minimize the downtime of our application? Best would be to zero downtime. We thought about a setup with two equal application and two database servers and deploy one app/db server pair after another. The problem is keeping the data consistant. While one

Jenkins configurations gets reverted by SYSTEM user anomaly

狂风中的少年 提交于 2021-01-21 10:02:08
问题 I am running Jenkins version 2.85 on Kubernetes as pod(Affinity set to one workernode). I am creating Jobs using Salt Jenkins module by passing XML to this module. I am using Jenkins Global Library for preforming job execution. My Job config looks like this I am calling GobalLibrary with my parameters like repoURL, componet etc.., Things goes well for weeks and now I landed to a weird situation where my job configurations(config.xml) gets updated/revert automatically. Intermittently my "Build

Allow non-zero return codes in Travis CI .yml

放肆的年华 提交于 2021-01-18 10:12:25
问题 I am trying to setup Travis CI to build a latex report. When building the latex report some steps have to be repeated and so the first time they are called there is a non-zero return code. My travis.yml so far is language: R before_install: - tlmgr install index script: - latex report - bibtex report - latex report - latex report - dvipdf report.dvi report.pdf However in Travis Docs it states If script returns a non-zero exit code, the build is failed, but continues to run before being marked

Allow non-zero return codes in Travis CI .yml

ぃ、小莉子 提交于 2021-01-18 10:09:46
问题 I am trying to setup Travis CI to build a latex report. When building the latex report some steps have to be repeated and so the first time they are called there is a non-zero return code. My travis.yml so far is language: R before_install: - tlmgr install index script: - latex report - bibtex report - latex report - latex report - dvipdf report.dvi report.pdf However in Travis Docs it states If script returns a non-zero exit code, the build is failed, but continues to run before being marked

Access environment variables stored in Google Secret Manager from Google Cloud Build

我的未来我决定 提交于 2021-01-04 05:40:12
问题 How can I access the variables I define in Google Secret Manager from my Google Cloud Build Pipeline ? 回答1: You can access to secret from Cloud Build by using the standard Cloud Builder gcloud But, there is 2 issues: If you want to use the secret value in another Cloud Build step, you have to store your secret in a file, the only way to reuse a previous value from one step to another one The current Cloud Builder gcloud isn't up to date (today, 03 feb 2020). You have to add a gcloud component

Alternative to sonar.analysis.mode parameter

雨燕双飞 提交于 2021-01-03 06:47:45
问题 I'm using Sonarqube 7.9 and Gitlab with a maven docker image that calls my Sonarqube using mvn --batch-mode verify sonar:sonar -DskipTests=true -Drevision=$REVISION_UNSTABLE $SONAR_OPTS -Dsonar.analysis.mode=issues . The thing is that the parameter sonar.analysis.mode is not used anymore since version 7.4 but I can't find out what parameter do I need to use instead. At the build development branch I just want to check the issues related to the code and I don't want to publish anything. Only

Alternative to sonar.analysis.mode parameter

狂风中的少年 提交于 2021-01-03 06:47:09
问题 I'm using Sonarqube 7.9 and Gitlab with a maven docker image that calls my Sonarqube using mvn --batch-mode verify sonar:sonar -DskipTests=true -Drevision=$REVISION_UNSTABLE $SONAR_OPTS -Dsonar.analysis.mode=issues . The thing is that the parameter sonar.analysis.mode is not used anymore since version 7.4 but I can't find out what parameter do I need to use instead. At the build development branch I just want to check the issues related to the code and I don't want to publish anything. Only

How to pass parameter from jenkins to selenium

馋奶兔 提交于 2021-01-01 06:46:05
问题 I'm using jenkins and selenium. I need to send the testing url to selenium server from jenkins. Under General Tab Jenkins String parameter: Name = APP, Default Value = http://localhost/basecode/ Under Post-build Actions Trigger parameterized build on other projects -> Predefined parameters -> Parameters -> SEL_APP=$APP Above mentioned SEL_APP value needs to be written in the selenium bat file. Suggestions are most welcome :-) 回答1: If you are using maven then you can pass the parameters

How to enable Gitlab CI/CD for Private GKE cluster?

删除回忆录丶 提交于 2020-12-30 02:14:43
问题 I would like to setup the AutoDevops functionality of Gitlab CI/CD, and for that I am trying to setup the existing kubernetes cluster as my environment. However, the Gitlab requires Kubernetes Master API URL that uses to access the Kubernetes API. Kubernetes exposes several APIs, we want the "base" URL that is common to all of them, e.g., https://kubernetes.example.com rather than https://kubernetes.example.com/api/v1. we will get the API URL by running this command: kubectl cluster-info |