Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,9 @@ def withBuildNode(String phpVersion, body) {
podTemplate(name: "php-api-client-node", label: "build-" + uuid, containers: [
containerTemplate(
name: "docker",
image: "paulwoelfel/docker-gcloud",
image: "paulwoelfel/docker-gcloud:v1.13",
ttyEnabled: true,
command: 'cat',
envVars: [envVar(key: "DOCKER_API_VERSION", value: "1.23")],
resourceRequestCpu: '100m', resourceRequestMemory: '200Mi'),
containerTemplate(
name: "php",
Expand All @@ -456,8 +455,6 @@ def withBuildNode(String phpVersion, body) {
envVar(key: "COMPOSER_AUTH", value: "{\"github-oauth\":{\"github.com\": \"$token\"}}")],
resourceRequestCpu: '500m',
resourceRequestMemory: '1000Mi')
], volumes: [
hostPathVolume(hostPath: "/var/run/docker.sock", mountPath: "/var/run/docker.sock")
]) {
node("build-" + uuid) {
dir('/home/jenkins') {
Expand All @@ -483,14 +480,12 @@ def withDockerGcloud(body) {
podTemplate(name: "php-api-client-gcloud", label: "dockergcloud-" + uuid, containers: [
containerTemplate(
name: "docker",
image: "paulwoelfel/docker-gcloud",
image: "paulwoelfel/docker-gcloud:v1.13",
ttyEnabled: true,
command: 'cat',
resourceRequestCpu: '100m',
resourceRequestMemory: '200Mi',
envVars: [envVar(key: "DOCKER_API_VERSION", value: "1.23")])
], volumes: [
hostPathVolume(hostPath: "/var/run/docker.sock", mountPath: "/var/run/docker.sock")
resourceRequestMemory: '200Mi'
)
]) {
node("dockergcloud-" + uuid) {
container("docker") {
Expand Down Expand Up @@ -601,10 +596,6 @@ def queue(String phpApiImageName, String pimImageName, String pimVersion, String
}]
}]
""")
], volumes: [
hostPathVolume(hostPath: "/var/run/docker.sock", mountPath: "/var/run/docker.sock"),
hostPathVolume(hostPath: "/usr/bin/docker", mountPath: "/usr/bin/docker")

]) {
node("pubsub-" + uuid) {
def messages = body()
Expand Down Expand Up @@ -666,8 +657,7 @@ def clearTemplateNames() {
def saveDockerData(String gcrName, String gCloudcontainerName = "docker") {
container(gCloudcontainerName) {
sh "echo 'FROM alpine:3.6\nADD . /data\n' > Dockerfile"
sh "docker build -t ${gcrName} ."
sh "gcloud docker -- push ${gcrName}"
sh "gcloud container builds submit --tag ${gcrName} ."
}
}

Expand Down