mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Move jwilder/dockerize
installation to build-container (#39581)
* Move dockerize to build-container * Sync drone * Fix command to not point in bin dir * Update build container version
This commit is contained in:
parent
ab77bf61d7
commit
f860becc88
404
.drone.yml
404
.drone.yml
File diff suppressed because it is too large
Load Diff
@ -96,6 +96,11 @@ RUN curl -fLO https://github.com/cuelang/cue/releases/download/v${CUE_VERSION}/c
|
|||||||
RUN echo $CUE_CHKSUM cue_${CUE_VERSION}_Linux_x86_64.tar.gz | sha256sum --check --strict --status
|
RUN echo $CUE_CHKSUM cue_${CUE_VERSION}_Linux_x86_64.tar.gz | sha256sum --check --strict --status
|
||||||
RUN tar xf cue_${CUE_VERSION}_Linux_x86_64.tar.gz -C /tmp cue
|
RUN tar xf cue_${CUE_VERSION}_Linux_x86_64.tar.gz -C /tmp cue
|
||||||
|
|
||||||
|
ARG DOCKERIZE_VERSION=0.6.1
|
||||||
|
RUN curl -fLO https://github.com/jwilder/dockerize/releases/download/v${DOCKERIZE_VERSION}/dockerize-linux-amd64-v${DOCKERIZE_VERSION}.tar.gz
|
||||||
|
RUN tar -xzvf dockerize-linux-amd64-v${DOCKERIZE_VERSION}.tar.gz -C /tmp/
|
||||||
|
RUN rm dockerize-linux-amd64-v${DOCKERIZE_VERSION}.tar.gz
|
||||||
|
|
||||||
# Base image to crossbuild grafana.
|
# Base image to crossbuild grafana.
|
||||||
# Use old Debian (this has support into 2022) in order to ensure binary compatibility with older glibc's.
|
# Use old Debian (this has support into 2022) in order to ensure binary compatibility with older glibc's.
|
||||||
FROM debian:stretch-20210208
|
FROM debian:stretch-20210208
|
||||||
@ -103,7 +108,7 @@ FROM debian:stretch-20210208
|
|||||||
ENV GOVERSION=1.17 \
|
ENV GOVERSION=1.17 \
|
||||||
PATH=/usr/local/go/bin:$PATH \
|
PATH=/usr/local/go/bin:$PATH \
|
||||||
GOPATH=/go \
|
GOPATH=/go \
|
||||||
NODEVERSION=14.17.5-1nodesource1 \
|
NODEVERSION=14.17.6-1nodesource1 \
|
||||||
YARNVERSION=1.22.5-1
|
YARNVERSION=1.22.5-1
|
||||||
|
|
||||||
# Use ARG so as not to persist environment variable in image
|
# Use ARG so as not to persist environment variable in image
|
||||||
@ -113,6 +118,7 @@ COPY --from=toolchain /tmp/x86_64-centos6-linux-gnu.tar.xz /tmp/osxcross.tar.xz
|
|||||||
COPY --from=toolchain /tmp/golangci-lint /usr/local/bin/
|
COPY --from=toolchain /tmp/golangci-lint /usr/local/bin/
|
||||||
COPY --from=toolchain /tmp/shellcheck /usr/local/bin/
|
COPY --from=toolchain /tmp/shellcheck /usr/local/bin/
|
||||||
COPY --from=toolchain /tmp/cue /usr/local/bin/
|
COPY --from=toolchain /tmp/cue /usr/local/bin/
|
||||||
|
COPY --from=toolchain /tmp/dockerize /usr/local/bin/
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -yq \
|
apt-get install -yq \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
_version="1.4.2"
|
_version="1.4.3"
|
||||||
_tag="grafana/build-container:${_version}"
|
_tag="grafana/build-container:${_version}"
|
||||||
|
|
||||||
_dpath=$(dirname "${BASH_SOURCE[0]}")
|
_dpath=$(dirname "${BASH_SOURCE[0]}")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
load('scripts/drone/vault.star', 'from_secret', 'github_token', 'pull_secret', 'drone_token')
|
load('scripts/drone/vault.star', 'from_secret', 'github_token', 'pull_secret', 'drone_token')
|
||||||
|
|
||||||
grabpl_version = '2.4.6'
|
grabpl_version = '2.4.6'
|
||||||
build_image = 'grafana/build-container:1.4.2'
|
build_image = 'grafana/build-container:1.4.3'
|
||||||
publish_image = 'grafana/grafana-ci-deploy:1.3.1'
|
publish_image = 'grafana/grafana-ci-deploy:1.3.1'
|
||||||
grafana_docker_image = 'grafana/drone-grafana-docker:0.3.2'
|
grafana_docker_image = 'grafana/drone-grafana-docker:0.3.2'
|
||||||
deploy_docker_image = 'us.gcr.io/kubernetes-dev/drone/plugins/deploy-image'
|
deploy_docker_image = 'us.gcr.io/kubernetes-dev/drone/plugins/deploy-image'
|
||||||
@ -60,9 +60,6 @@ def initialize_step(edition, platform, ver_mode, is_downstream=False, install_de
|
|||||||
|
|
||||||
if install_deps:
|
if install_deps:
|
||||||
common_cmds.extend([
|
common_cmds.extend([
|
||||||
'curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz',
|
|
||||||
'tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz',
|
|
||||||
'rm dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz',
|
|
||||||
'yarn install --frozen-lockfile --no-progress',
|
'yarn install --frozen-lockfile --no-progress',
|
||||||
])
|
])
|
||||||
if edition in ('enterprise', 'enterprise2'):
|
if edition in ('enterprise', 'enterprise2'):
|
||||||
@ -180,7 +177,7 @@ def benchmark_ldap_step():
|
|||||||
'LDAP_HOSTNAME': 'ldap',
|
'LDAP_HOSTNAME': 'ldap',
|
||||||
},
|
},
|
||||||
'commands': [
|
'commands': [
|
||||||
'./bin/dockerize -wait tcp://ldap:389 -timeout 120s',
|
'dockerize -wait tcp://ldap:389 -timeout 120s',
|
||||||
'go test -benchmem -run=^$ ./pkg/extensions/ldapsync -bench "^(Benchmark50Users)$"',
|
'go test -benchmem -run=^$ ./pkg/extensions/ldapsync -bench "^(Benchmark50Users)$"',
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
@ -698,7 +695,7 @@ def postgres_integration_tests_step():
|
|||||||
'commands': [
|
'commands': [
|
||||||
'apt-get update',
|
'apt-get update',
|
||||||
'apt-get install -yq postgresql-client',
|
'apt-get install -yq postgresql-client',
|
||||||
'./bin/dockerize -wait tcp://postgres:5432 -timeout 120s',
|
'dockerize -wait tcp://postgres:5432 -timeout 120s',
|
||||||
'psql -p 5432 -h postgres -U grafanatest -d grafanatest -f ' +
|
'psql -p 5432 -h postgres -U grafanatest -d grafanatest -f ' +
|
||||||
'devenv/docker/blocks/postgres_tests/setup.sql',
|
'devenv/docker/blocks/postgres_tests/setup.sql',
|
||||||
# Make sure that we don't use cached results for another database
|
# Make sure that we don't use cached results for another database
|
||||||
@ -722,7 +719,7 @@ def mysql_integration_tests_step():
|
|||||||
'commands': [
|
'commands': [
|
||||||
'apt-get update',
|
'apt-get update',
|
||||||
'apt-get install -yq default-mysql-client',
|
'apt-get install -yq default-mysql-client',
|
||||||
'./bin/dockerize -wait tcp://mysql:3306 -timeout 120s',
|
'dockerize -wait tcp://mysql:3306 -timeout 120s',
|
||||||
'cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root -prootpass',
|
'cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root -prootpass',
|
||||||
# Make sure that we don't use cached results for another database
|
# Make sure that we don't use cached results for another database
|
||||||
'go clean -testcache',
|
'go clean -testcache',
|
||||||
@ -742,7 +739,7 @@ def redis_integration_tests_step():
|
|||||||
'REDIS_URL': 'redis://redis:6379/0',
|
'REDIS_URL': 'redis://redis:6379/0',
|
||||||
},
|
},
|
||||||
'commands': [
|
'commands': [
|
||||||
'./bin/dockerize -wait tcp://redis:6379/0 -timeout 120s',
|
'dockerize -wait tcp://redis:6379/0 -timeout 120s',
|
||||||
'./bin/grabpl integration-tests',
|
'./bin/grabpl integration-tests',
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
@ -759,7 +756,7 @@ def memcached_integration_tests_step():
|
|||||||
'MEMCACHED_HOSTS': 'memcached:11211',
|
'MEMCACHED_HOSTS': 'memcached:11211',
|
||||||
},
|
},
|
||||||
'commands': [
|
'commands': [
|
||||||
'./bin/dockerize -wait tcp://memcached:11211 -timeout 120s',
|
'dockerize -wait tcp://memcached:11211 -timeout 120s',
|
||||||
'./bin/grabpl integration-tests',
|
'./bin/grabpl integration-tests',
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user