这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@muffix
Copy link
Member

@muffix muffix commented May 13, 2020

Description

This fixes the Docker files in the repo so that it's possible and easy again to bring up Bosun and/or its dependencies in Docker.
The docker-compose.yml file brings up three containers:

  1. Redis
  2. OpenTSDB + HBase
  3. Bosun + scollector + tsdbrelay

Just run docker-compose -f docker/Dockerfile up.

This will eventually enable better testing.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

  • Built and started all containers individually
  • Started everything in one command with docker-compose

Checklist:

  • This contribution follows the project's code of conduct
  • This contribution follows the project's contributing guidelines
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

muffix added 5 commits May 12, 2020 16:00
Fixes the Docker buiild setup.

We can now build a complete docker container with Bosun, Scollector,
tsdbrelay, OpenTSDB and HBase directly from the Dockerfile in
cmd/bosun/docker/run
Adds a separate Dockerfile for OpenTSDB and HBase so that it can be
reused elsewhere.
Adds an easy way to bring up the entire stack with docker-compose.
This brings up two containers, one with OpenTSDB and HBase, and a second
one with bosun, scollector and tsdbrelay.
Moves the directory with all Docker-related files into the repository
root because it does more than just build a Bosun container. So it
doesn't make sense to have it in cmd/bosun.
Updates the documentation with the latest information on how to run
Bosun and its dependencies in Docker.
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
4.3% 4.3% Duplication

muffix added 3 commits May 13, 2020 16:18
Adds some information on running Redis in Docker to the documents. This
will be useful when trying to debug database interaction.
Removes environment variables used during the Docker build process and
replaces them with ARGs so that these variables aren't exposed to the
container.
@muffix muffix force-pushed the update-docker-setup branch from f328a1b to 43391a3 Compare May 13, 2020 15:19
Copy link
Contributor

@johnewing1 johnewing1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to get an update version

@muffix muffix merged commit 8528a80 into bosun-monitor:master May 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants