File tree Expand file tree Collapse file tree 5 files changed +15
-0
lines changed Expand file tree Collapse file tree 5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ set_always "BUILDKITE_ECR_POLICY" "${BUILDKITE_ECR_POLICY:-none}"
84
84
set_always "BUILDKITE_SECRETS_BUCKET" "$BUILDKITE_SECRETS_BUCKET "
85
85
set_always "BUILDKITE_STACK_NAME" "$BUILDKITE_STACK_NAME "
86
86
set_always "BUILDKITE_STACK_VERSION" "$BUILDKITE_STACK_VERSION "
87
+ set_always "BUILDKITE_DOCKER_EXPERIMENTAL" "$DOCKER_EXPERIMENTAL "
87
88
set_always "DOCKER_VERSION" "$DOCKER_VERSION "
88
89
set_always "PLUGINS_ENABLED" "${PLUGINS_ENABLED[*]-} "
89
90
set_unless_present "AWS_DEFAULT_REGION" "$AWS_REGION "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY=$(mktemp -d)
10
10
export BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY
11
11
export DOCKER_CONFIG=" $BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY "
12
12
13
+ if [ " ${BUILDKITE_DOCKER_EXPERIMENTAL:- false} " = " true" ]
14
+ then
15
+ # shellcheck disable=SC2094 # Redirections to the same command are processed in order
16
+ cat <<< " $(jq '.experimental=" enabled" ' " ${DOCKER_CONFIG} /config.json" )" > " ${DOCKER_CONFIG} /config.json"
17
+ fi
18
+
13
19
echo " ~~~ :llama: Setting up elastic stack environment ($BUILDKITE_STACK_VERSION )"
14
20
15
21
echo " Checking docker"
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ set_always "BUILDKITE_ECR_POLICY" "$Env:BUILDKITE_ECR_POLICY"
76
76
set_always "BUILDKITE_SECRETS_BUCKET" "$Env: BUILDKITE_SECRETS_BUCKET "
77
77
set_always "BUILDKITE_STACK_NAME" "$Env: BUILDKITE_STACK_NAME "
78
78
set_always "BUILDKITE_STACK_VERSION" "$Env: BUILDKITE_STACK_VERSION "
79
+ set_always "BUILDKITE_DOCKER_EXPERIMENTAL" "$DOCKER_EXPERIMENTAL "
79
80
set_always "DOCKER_VERSION" "$DOCKER_VERSION "
80
81
set_always "PLUGINS_ENABLED" "$PLUGINS_ENABLED "
81
82
set_unless_present "AWS_DEFAULT_REGION" "$Env: AWS_REGION "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY=$(mktemp -d)
10
10
export BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY
11
11
export DOCKER_CONFIG=" $BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY "
12
12
13
+ if [ " ${BUILDKITE_DOCKER_EXPERIMENTAL:- false} " = " true" ]
14
+ then
15
+ # shellcheck disable=SC2094 # Redirections to the same command are processed in order
16
+ cat <<< " $(jq '.experimental=" enabled" ' " ${DOCKER_CONFIG} /config.json" )" > " ${DOCKER_CONFIG} /config.json"
17
+ fi
18
+
13
19
echo " ~~~ :llama: Setting up elastic stack environment ($BUILDKITE_STACK_VERSION )"
14
20
15
21
echo " Configuring built-in plugins"
Original file line number Diff line number Diff line change @@ -979,6 +979,7 @@ Resources:
979
979
SECRETS_PLUGIN_ENABLED=${EnableSecretsPlugin} \
980
980
ECR_PLUGIN_ENABLED=${EnableECRPlugin} \
981
981
DOCKER_LOGIN_PLUGIN_ENABLED=${EnableDockerLoginPlugin} \
982
+ DOCKER_EXPERIMENTAL=${EnableDockerExperimental} \
982
983
AWS_REGION=${AWS::Region} \
983
984
/usr/local/bin/bk-install-elastic-stack.sh
984
985
--==BOUNDARY==--
You can’t perform that action at this time.
0 commit comments