forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic Metabase demo CI test (MaterializeInc#2065)
Addition to the Buildkite test pipeline. Checks that: - metabase, materialized, zookeeper, and kafka containers run and don't crash - that metabase is available and responding to requests on port 3000
- Loading branch information
1 parent
66d010d
commit 0affd1e
Showing
4 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright Materialize, Inc. All rights reserved. | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the LICENSE file at the root of this repository. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0. | ||
|
||
version: '3.7' | ||
services: | ||
healthcheck: | ||
image: materialize/ci-healthcheck:latest | ||
depends_on: [metabase] | ||
metabase: | ||
image: materialize/metabase:latest | ||
depends_on: [materialized] | ||
ports: | ||
- "3000:3000" | ||
materialized: | ||
image: materialize/ci-materialized:${BUILDKITE_BUILD_NUMBER} | ||
command: --logging-granularity=10ms | ||
depends_on: [kafka] | ||
ulimits: | ||
nofile: | ||
soft: "65536" | ||
hard: "65536" | ||
zookeeper: | ||
image: zookeeper:3.4.13 | ||
kafka: | ||
image: wurstmeister/kafka:2.12-2.2.0 | ||
environment: | ||
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 | ||
- KAFKA_ADVERTISED_HOST_NAME=kafka | ||
depends_on: [zookeeper] | ||
|
||
volumes: | ||
db-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright Materialize, Inc. All rights reserved. | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the LICENSE file at the root of this repository. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0. | ||
|
||
FROM ubuntu:bionic | ||
|
||
RUN apt-get update && apt-get install -y curl | ||
|
||
COPY healthcheck /usr/local/bin/healthcheck | ||
|
||
ENTRYPOINT ["healthcheck"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright Materialize, Inc. All rights reserved. | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the LICENSE file at the root of this repository. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0. | ||
|
||
# Point of this test: Assert Metabase and related containers | ||
# can run. | ||
# - If we see a successful curl, Metabase is up and working! | ||
# - If we don't see a successful curl, Buildkite will time out | ||
# and fail this test. | ||
|
||
while ! curl -fsS metabase:3000; do | ||
echo "Failed to curl metabase:3000. Sleeping..." | ||
sleep 15 | ||
done | ||
|
||
echo "Successfully pinged Metabase!" |