]> source.dussan.org Git - sonarqube.git/commitdiff
BUILD-1091 BUILD-1092 Build docker image of datacenter edition
authorMalena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com>
Thu, 15 Jul 2021 13:07:17 +0000 (15:07 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 20 Jul 2021 20:03:17 +0000 (20:03 +0000)
.cirrus.yml
settings.gradle

index ced5f84d9e2faad8683349c8f730f62b0ab14f33..58bb12a2e9db4e5e40f016ddecbd396a0a798b5f 100644 (file)
@@ -423,6 +423,25 @@ deploy_docs_task:
   script:
     - ./private/cirrus/cirrus-trigger-deploy-docs.sh
 
+package_docker_task:
+  depends_on: promote
+  only_if: $CIRRUS_BRANCH == 'dogfood-on-next'
+  gce_instance:
+    image_project: sonarqube-team
+    image_family: docker-builder
+    zone: us-central1-a
+    disk: 10
+    cpu: 4
+    memory: 8G
+  env:
+    CIRRUS_CLONE_DEPTH: '1'
+  install_tooling_script: |
+    export DEBIAN_FRONTEND=noninteractive
+    apt-get update
+    apt-get install -yq openjdk-11-jdk-headless
+  package_script:
+    - ./private/cirrus/cirrus-package-docker.sh
+
 sql_mssql2017_task:
   <<: *ONLY_NIGHTLY_DEPENDING_ON_BUILD_TEMPLATE
   gke_container:
index 1030a4f2d0c280183018a317a750cb1d80a13a6d..e1812401f482ad14fc265ac969a835034683cf9d 100644 (file)
@@ -4,6 +4,10 @@ pluginManagement {
       url 'https://repox.jfrog.io/repox/plugins.gradle.org/'
     }
   }
+  plugins {
+    id 'com.bmuschko.docker-remote-api' version '7.1.0'
+    id 'org.ajoberstar.grgit' version '4.1.0'
+  }
 }
 
 rootProject.name = 'sonarqube'