Skip to content

Commit

Permalink
[CI] Build docker image during packer_cache (#82145)
Browse files Browse the repository at this point in the history
# Conflicts:
#	.ci/packer_cache_for_branch.sh
  • Loading branch information
brianseeders committed Nov 18, 2020
1 parent ac31e63 commit 001227a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .ci/build_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -euo pipefail

cd "$(dirname "${0}")"

cp /usr/local/bin/runbld ./
cp /usr/local/bin/bash_standard_lib.sh ./

docker build -t kibana-ci -f ./Dockerfile .
7 changes: 1 addition & 6 deletions vars/kibanaPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,7 @@ def scriptTaskDocker(description, script) {

def buildDocker() {
sh(
script: """
cp /usr/local/bin/runbld .ci/
cp /usr/local/bin/bash_standard_lib.sh .ci/
cd .ci
docker build -t kibana-ci -f ./Dockerfile .
""",
script: "./.ci/build_docker.sh",
label: 'Build CI Docker image'
)
}
Expand Down

0 comments on commit 001227a

Please sign in to comment.