diff --git a/bitnami/influxdb-relay/.github/ISSUE_TEMPLATE/bug_report.yml b/bitnami/influxdb-relay/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000000..658fc40d2d6e --- /dev/null +++ b/bitnami/influxdb-relay/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,41 @@ +name: 🐞 Bug +description: Create a report to help us improve +body: + - type: markdown + attributes: + value: | + Thank you for reporting an issue. Before you open the bug report please review the README file present in the root of this repository. + + Please fill in as much of the following form as you're able. + - type: input + attributes: + label: Name and Version + description: Name and version of the affected container image + placeholder: bitnami/wordpress:1.2.3 + validations: + required: true + - type: textarea + attributes: + label: What steps will reproduce the bug? + description: Enter details about your bug. + placeholder: | + 1. In this environment... + 2. With this config... + 3. Run '...' + 4. See error... + validations: + required: true + - type: textarea + attributes: + label: What is the expected behavior? + description: If possible please provide textual output instead of screenshots. + - type: textarea + attributes: + label: What do you see instead? + description: If possible please provide textual output instead of screenshots. + validations: + required: true + - type: textarea + attributes: + label: Additional information + description: Tell us anything else you think we should know. diff --git a/bitnami/influxdb-relay/.github/ISSUE_TEMPLATE/config.yml b/bitnami/influxdb-relay/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000000..3ba13e0cec6c --- /dev/null +++ b/bitnami/influxdb-relay/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/bitnami/influxdb-relay/.github/ISSUE_TEMPLATE/feature_request.yml b/bitnami/influxdb-relay/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 000000000000..7c812014aa08 --- /dev/null +++ b/bitnami/influxdb-relay/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,29 @@ +name: "\U0001F680 Feature request" +description: Suggest an idea for this project +body: + - type: markdown + attributes: + value: | + Thank you for suggesting an idea to improve this Bitnami container image. + Please fill in as much of the following form as you're able. + - type: input + attributes: + label: Name and Version + description: Name and version of the affected container image + placeholder: bitnami/wordpress:1.2.3 + validations: + required: true + - type: textarea + attributes: + label: What is the problem this feature will solve? + validations: + required: true + - type: textarea + attributes: + label: What is the feature you are proposing to solve the problem? + description: Describe the requests. If you already have something in mind... PRs are welcome! + validations: + required: true + - type: textarea + attributes: + label: What alternatives have you considered? diff --git a/bitnami/influxdb-relay/.github/PULL_REQUEST_TEMPLATE.md b/bitnami/influxdb-relay/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000000..c2acbe6e0d70 --- /dev/null +++ b/bitnami/influxdb-relay/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,32 @@ + + +**Description of the change** + + + +**Benefits** + + + +**Possible drawbacks** + + + +**Applicable issues** + + + +**Additional information** + + diff --git a/bitnami/influxdb-relay/.github/workflows/stale.yml b/bitnami/influxdb-relay/.github/workflows/stale.yml new file mode 100644 index 000000000000..0bf90080c817 --- /dev/null +++ b/bitnami/influxdb-relay/.github/workflows/stale.yml @@ -0,0 +1,20 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '0 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.' + stale-pr-message: 'This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.' + close-issue-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.' + close-pr-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.' + days-before-stale: 15 + days-before-close: 5 + exempt-issue-labels: 'on-hold' + exempt-pr-labels: 'on-hold' diff --git a/bitnami/influxdb-relay/0/scratch/Dockerfile b/bitnami/influxdb-relay/0/scratch/Dockerfile new file mode 100644 index 000000000000..e1c56d684579 --- /dev/null +++ b/bitnami/influxdb-relay/0/scratch/Dockerfile @@ -0,0 +1,11 @@ +FROM scratch +LABEL maintainer "Bitnami " + +COPY prebuildfs / + +COPY rootfs / + +EXPOSE 9096 9097 + +USER 1001 +CMD [ "/influxdb-relay" ] diff --git a/bitnami/influxdb-relay/0/scratch/docker-compose.yml b/bitnami/influxdb-relay/0/scratch/docker-compose.yml new file mode 100644 index 000000000000..09ff47f6736e --- /dev/null +++ b/bitnami/influxdb-relay/0/scratch/docker-compose.yml @@ -0,0 +1,8 @@ +version: '2' + +services: + influxdb-relay: + image: docker.io/bitnami/influxdb-relay:0 + ports: + - 9096:9096 + - 9097:9097 diff --git a/bitnami/influxdb-relay/0/scratch/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/influxdb-relay/0/scratch/prebuildfs/opt/bitnami/.bitnami_components.json new file mode 100644 index 000000000000..a382cf0059d0 --- /dev/null +++ b/bitnami/influxdb-relay/0/scratch/prebuildfs/opt/bitnami/.bitnami_components.json @@ -0,0 +1,7 @@ +{ + "influxdb-relay": { + "digest": "93512a8c479b4b2ab4208226e0dc130ec87abf3c4fc363e60430fef5308dd21c", + "type": "BLACKSMITH", + "version": "0.20200717.0" + } +} \ No newline at end of file diff --git a/bitnami/influxdb-relay/0/scratch/prebuildfs/opt/bitnami/licenses/licenses.txt b/bitnami/influxdb-relay/0/scratch/prebuildfs/opt/bitnami/licenses/licenses.txt new file mode 100644 index 000000000000..c76ba31f3b8a --- /dev/null +++ b/bitnami/influxdb-relay/0/scratch/prebuildfs/opt/bitnami/licenses/licenses.txt @@ -0,0 +1,3 @@ +Bitnami containers ship with software bundles. You can find the licenses under: +/opt/bitnami/nami/COPYING +/opt/bitnami/[name-of-bundle]/licenses/[bundle-version].txt diff --git a/bitnami/influxdb-relay/CODE_OF_CONDUCT.md b/bitnami/influxdb-relay/CODE_OF_CONDUCT.md new file mode 100644 index 000000000000..48beb02e0808 --- /dev/null +++ b/bitnami/influxdb-relay/CODE_OF_CONDUCT.md @@ -0,0 +1,17 @@ +# Contributor Code of Conduct + +As contributors and maintainers of this project, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities. + +Communication through any of Bitnami's channels (GitHub, mailing lists, Twitter, and so on) must be constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct. + +We promise to extend courtesy and respect to everyone involved in this project, regardless of gender, gender identity, sexual orientation, disability, age, race, ethnicity, religion, or level of experience. We expect anyone contributing to this project to do the same. + +If any member of the community violates this code of conduct, the maintainers of this project may take action, including removing issues, comments, and PRs or blocking accounts, as deemed appropriate. + +If you are subjected to or witness unacceptable behavior, or have any other concerns, please communicate with us. + +If you have suggestions to improve this Code of Conduct, please submit an issue or PR. + +**Attribution** + +This Code of Conduct is adapted from the Angular project available at this page: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md diff --git a/bitnami/influxdb-relay/CONTRIBUTING.md b/bitnami/influxdb-relay/CONTRIBUTING.md new file mode 100644 index 000000000000..4f5ce693ec65 --- /dev/null +++ b/bitnami/influxdb-relay/CONTRIBUTING.md @@ -0,0 +1,52 @@ +# Contributing Guidelines + +Contributions are welcome via GitHub Pull Requests. This document outlines the process to help get your contribution accepted. + +Any type of contribution is welcome: new features, bug fixes, documentation improvements, etc. + +## How to Contribute + +1. Fork this repository, develop, and test your changes. +2. Submit a pull request. + +### Requirements + +When submitting a PR make sure that: +- It must pass CI jobs for linting and test the changes (if any). +- It must follow [container best practices](https://engineering.bitnami.com/articles/best-practices-writing-a-dockerfile.html). +- The title of the PR is clear enough. +- If necessary, add information to the repository's `README.md`. + +#### Sign Your Work + +The sign-off is a simple line at the end of the explanation for a commit. All commits needs to be signed. Your signature certifies that you wrote the patch or otherwise have the right to contribute the material. The rules are pretty simple, you only need to certify the guidelines from [developercertificate.org](https://developercertificate.org/). + +Then you just add a line to every git commit message: + + Signed-off-by: Joe Smith + +Use your real name (sorry, no pseudonyms or anonymous contributions.) + +If you set your `user.name` and `user.email` git configs, you can sign your commit automatically with `git commit -s`. + +Note: If your git config information is set properly then viewing the `git log` information for your commit will look something like this: + +``` +Author: Joe Smith +Date: Thu Feb 2 11:41:15 2018 -0800 + + Update README + + Signed-off-by: Joe Smith +``` + +Notice the `Author` and `Signed-off-by` lines match. If they don't your PR will be rejected by the automated DCO check. + +### PR Approval and Release Process + +1. Changes are manually reviewed by Bitnami team members usually within a business day. +2. Once the changes are accepted, the PR is tested (if needed) into the Bitnami CI pipeline, the container is deployed and tested (verification and functional tests) using docker-compose and Helm (if there is an associated Helm Chart). +3. The PR is merged by the reviewer(s) in the GitHub `master` branch. +4. Then our CI/CD system is going to push the container image to the different registries including the recently merged changes. + +***NOTE***: Please note that, in terms of time, may be a slight difference between the appearance of the code in GitHub and the image with the changes in the different registries. diff --git a/bitnami/influxdb-relay/LICENSE.md b/bitnami/influxdb-relay/LICENSE.md new file mode 100644 index 000000000000..cdc8ab40132d --- /dev/null +++ b/bitnami/influxdb-relay/LICENSE.md @@ -0,0 +1,13 @@ +Copyright © 2022 Bitnami + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/bitnami/influxdb-relay/README.md b/bitnami/influxdb-relay/README.md new file mode 100644 index 000000000000..88aed900e1e5 --- /dev/null +++ b/bitnami/influxdb-relay/README.md @@ -0,0 +1,142 @@ +# Bitnami Stack for InfluxDB Relay™ + +## What is InfluxDB Relay™? + +> InfluxDB Relay™ adds a basic high availability layer to InfluxDB™ by loadbalancing UDP/TCP traffic to each InfluxDB ™ server. + +[Overview of InfluxDB Relay™](https://www.influxdata.com/products/influxdb-overview) + +InfluxDB Relay(TM) is a trademark owned by InfluxData, which is not affiliated with, and does not endorse, this site. + +## TL;DR + +```console +$ docker run --name influxdb-relay bitnami/influxdb-relay:latest +``` + +### Docker Compose + +```console +$ curl -LO https://raw.githubusercontent.com/bitnami/bitnami-docker-influxdb-relay/master/docker-compose.yml +$ docker-compose up +``` + +## Why use Bitnami Images? + +* Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems. +* With Bitnami images the latest bug fixes and features are available as soon as possible. +* Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs. +* All our images are based on [minideb](https://github.com/bitnami/minideb) a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading Linux distribution. +* All Bitnami images available in Docker Hub are signed with [Docker Content Trust (DCT)](https://docs.docker.com/engine/security/trust/content_trust/). You can use `DOCKER_CONTENT_TRUST=1` to verify the integrity of the images. +* Bitnami container images are released daily with the latest distribution packages available. + +> This [CVE scan report](https://quay.io/repository/bitnami/influxdb-relay?tab=tags) contains a security report with all open CVEs. To get the list of actionable security issues, find the "latest" tag, click the vulnerability report link under the corresponding "Security scan" field and then select the "Only show fixable" filter on the next page. + +## How to deploy InfluxDB (TM) in Kubernetes? + +Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes. Read more about the installation in the [Bitnami InfluxDB (TM) Chart GitHub repository](https://github.com/bitnami/charts/tree/master/bitnami/influxdb). + +Bitnami containers can be used with [Kubeapps](https://kubeapps.com/) for deployment and management of Helm Charts in clusters. + +## Why use a non-root container? + +Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers [in our docs](https://docs.bitnami.com/tutorials/work-with-non-root-containers/). + +## Supported tags and respective `Dockerfile` links + +Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). + + +* [`0`, `0-scratch`, `0.20200717.0`, `0.20200717.0-scratch-r18`, `latest` (0/scratch/Dockerfile)](https://github.com/bitnami/bitnami-docker-influxdb-relay/blob/0.20200717.0-scratch-r18/0/scratch/Dockerfile) + +Subscribe to project updates by watching the [bitnami/influxdb-relay GitHub repo](https://github.com/bitnami/bitnami-docker-influxdb-relay). + +## Get this image + +The recommended way to get the Bitnami InfluxDB (TM) Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/influxdb-relay). + +```console +$ docker pull bitnami/influxdb-relay:latest +``` + +To use a specific version, you can pull a versioned tag. You can view the [list of available versions](https://hub.docker.com/r/bitnami/influxdb-relay/tags/) in the Docker Hub Registry. + +```console +$ docker pull bitnami/influxdb-relay:[TAG] +``` + +If you wish, you can also build the image yourself. + +```console +$ docker build -t bitnami/influxdb-relay:latest 'https://github.com/bitnami/bitnami-docker-influxdb-relay.git#master:0/scratch' +``` + +## Configuration + +The configuration can easily be setup by mounting your own configuration file (TOML format): `relay.toml`. + +```console +$ docker run --name influxdb-relay \ + --volume /path/to/relay.toml:/relay.toml \ + bitnami/influxdb-relay:latest \ + /influxdb-relay --config /relay.toml +``` + +After that, your configuration will be taken into account in InfluxDB Relay (TM). + +You can do this using Docker Compose by modifying the [`docker-compose.yml`](https://github.com/bitnami/bitnami-docker-influxdb-relay/blob/master/docker-compose.yml) file present in this repository: + +```yaml +influxdb-relay: + ... + command: /influxdb-relay --config /relay.toml + volumes: + - /path/to/relay.toml:/relay.toml:ro + ... +``` + +### Further documentation + +For further documentation, please check [InfluxDB Relay (TM) documentation](https://github.com/influxdata/influxdb-relay#configuration) + +## Logging + +The Bitnami InfluxDB (TM) Docker image sends the container logs to `stdout`. To view the logs: + +```console +$ docker logs influxdb-relay +``` + +You can configure the containers [logging driver](https://docs.docker.com/engine/admin/logging/overview/) using the `--log-driver` option if you wish to consume the container logs differently. In the default configuration docker uses the `json-file` driver. + +## Contributing + +We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-influxdb-relay/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-influxdb-relay/pulls) with your contribution. + +## Issues + +If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/bitnami-docker-influxdb-relay/issues/new). For us to provide better support, be sure to include the following information in your issue: + +- Host OS and version +- Docker version (`docker version`) +- Output of `docker info` +- Version of this container +- The command you used to run the container, and any relevant output you saw (masking any sensitive information) + +## License + +Copyright © 2022 Bitnami + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +InfluxDB Relay (TM) is a trademark owned by InfluxData, which is not affiliated with, and does not endorse, this product. diff --git a/bitnami/influxdb-relay/docker-compose.yml b/bitnami/influxdb-relay/docker-compose.yml new file mode 100644 index 000000000000..09ff47f6736e --- /dev/null +++ b/bitnami/influxdb-relay/docker-compose.yml @@ -0,0 +1,8 @@ +version: '2' + +services: + influxdb-relay: + image: docker.io/bitnami/influxdb-relay:0 + ports: + - 9096:9096 + - 9097:9097