Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

bcgov/cas-ggircs-metabase-build

Repository files navigation

cas-ggircs-metabase-build

CircleCI

Pipeline configs for cas-ggircs-metabase

We build an deploy a custom version of metabase (bcgov/cas-ggircs-metabase), using the s2i (source-to-image) tool.

Building using s2i requires us to define three imagestreams and build configs: - a builder image, which will contain all the dependencies needed to build metabase and the s2i scripts - a build image where the assemble script will be executed, buiding metabase - a final image contaning the runtime dependency of metabase (java) and the metabase.jar file built in the build image

cas-ggircs-metabase-builder

See (bcgov/cas-ggircs-metabase-builder)

cas-ggircs-metabase-build

This build config uses the s2i build strategy. The s2i strategy does the following:

  1. Pull the builder image and use it.
  2. Clone the metabase repository into the /tmp/src/ directory of the builder image.
  3. Pull the previous build image (if any), and executes the save-artifacts script in it, and extract the saved artifact in the /tmp/artifacts/ directory of the builder image. The save-artifacts scripts simply runs a tar command outputting to stdout, containg all the files that should be made available to the next build (dependencies, built sql drivers, etc).
  4. Execute the assemble script. The assemble script restores the previous build artifacts, if any, i.e. moves them to the metabase source repository, and runs the metabase build.
  5. Push the resulting image (builder + built sources, aka the build image).

cas-ggircs-metabase

The last build config has two steps:

  1. Pull the cas-ggircs-metabase-build image and copies the metabase.jar file into the build environment.
  2. Build an image using the docker/metabase dockerfile. This dockerfile installs the runtime dependency (java), exposes the metabase port (3000), copies the jar file into the image, and sets java -jar metabase.jar as the entrypoint.

About

Pipeline configs for cas-ggircs-metabase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published