[8.6] [ci/es_snapshots] Set DOCKER_BUILDKIT as a bool (#150201) (#150218)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[ci/es_snapshots] Set DOCKER_BUILDKIT as a bool
(#150201)](https://github.com/elastic/kibana/pull/150201)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Jon","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2023-02-02T18:45:55Z","message":"[ci/es_snapshots]
Set DOCKER_BUILDKIT as a bool (#150201)\n\nWe're seeing parse errors of
`DOCKER_BUILDKIT` after a version update.\r\nThis variable should either
be unset or a boolean. Instead of using an\r\nempty string this sets it
to
1.","sha":"82146cbd907a23f9a78dc6c3de1ffbbd00a34cb1","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.7.0"],"number":150201,"url":"https://github.com/elastic/kibana/pull/150201","mergeCommit":{"message":"[ci/es_snapshots]
Set DOCKER_BUILDKIT as a bool (#150201)\n\nWe're seeing parse errors of
`DOCKER_BUILDKIT` after a version update.\r\nThis variable should either
be unset or a boolean. Instead of using an\r\nempty string this sets it
to
1.","sha":"82146cbd907a23f9a78dc6c3de1ffbbd00a34cb1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/150201","number":150201,"mergeCommit":{"message":"[ci/es_snapshots]
Set DOCKER_BUILDKIT as a bool (#150201)\n\nWe're seeing parse errors of
`DOCKER_BUILDKIT` after a version update.\r\nThis variable should either
be unset or a boolean. Instead of using an\r\nempty string this sets it
to 1.","sha":"82146cbd907a23f9a78dc6c3de1ffbbd00a34cb1"}}]}] BACKPORT-->

Co-authored-by: Jon <jon@elastic.co>
This commit is contained in:
Kibana Machine 2023-02-02 14:49:34 -05:00 committed by GitHub
parent 83bc02bff1
commit 6c767922d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,13 +34,13 @@ export JENKINS_URL=""
export BUILD_URL=""
export JOB_NAME=""
export NODE_NAME=""
export DOCKER_BUILDKIT=""
# Reads the ES_BUILD_JAVA env var out of .ci/java-versions.properties and exports it
export "$(grep '^ES_BUILD_JAVA' .ci/java-versions.properties | xargs)"
export PATH="$HOME/.java/$ES_BUILD_JAVA/bin:$PATH"
export JAVA_HOME="$HOME/.java/$ES_BUILD_JAVA"
export DOCKER_BUILDKIT=1
# The Elasticsearch Dockerfile needs to be built with root privileges, but Docker on our servers is running using a non-root user
# So, let's use docker-in-docker to temporarily create a privileged docker daemon to run `docker build` on