Giter Club home page Giter Club logo

influxdb-action's Introduction

InfluxDB Action

This action downloads, installs, and configures an InfluxDB OSS instance and CLI tooling that can be used in your automation.

This downloads the specified version (or latest or nightly), and adds influxd and influx commands to /usr/local/bin.

Usage

See action.yml

Setup and configure InfluxDB and CLI Tools

steps:
  - name: Check out repo
    uses: actions/checkout@v2
  - name: Setup InfluxDB
    uses: influxdata/influxdb-action@v3
    with:
      influxdb_version: latest
      influxdb_org: influxdata
      influxdb_user: ci_user
      influxdb_password: password
      influxdb_bucket: dummy

Install but don't start InfluxDB (influx CLI Tooling Only)

steps:
  - name: Check out repo
    uses: actions/checkout@v2
  - name: Setup InfluxDB
    uses: influxdata/influxdb-action@v3
    with:
      influxdb_version: latest
      influxdb_start: false

Use a specific version of InfluxDB

steps:
  - name: Check out repo
    uses: actions/checkout@v2
  - name: Setup InfluxDB
    uses: influxdata/influxdb-action@v3
    with:
      influxdb_version: 2.0.7
      influxdb_org: influxdata
      influxdb_user: ci_user
      influxdb_password: password
      influxdb_bucket: dummy

influxdb-action's People

Contributors

russorat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

influxdb-action's Issues

Hanging with no output

I simply can't get this to work. It simply hangs, if i cancel my run, i get the following in my log.

influxdb2_linux_amd64/README.md
influxdb2_linux_amd64/LICENSE
influxdb2_linux_amd64/influxd
cp: cannot stat 'influxdb2-2.7.0-linux-amd64/influxd': No such file or directory
rm: cannot remove 'influxdb2-2.7.0-linux-amd64/': No such file or directory
./
./LICENSE
./README.md
./influx
tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwx-----T: Operation not permitted
tar: Exiting with failure status due to previous errors
cp: cannot stat 'influxdb2-client-2.7.0-linux-amd64/influx': No such file or directory
rm: cannot remove 'influxdb2-client-2.7.0-linux-amd64/': No such file or directory

Had to resort to a really old version of Influx to get it working.

"Latest" gives errors

When I use the action as specified in the example it will result in an error

  - id: setup-influx-cli
    name: Setup InfluxDB Cli
    uses: influxdata/influxdb-action@v3
    with:
      influxdb_version: latest
      influxdb_start: false

results in

Run influxdata/influxdb-action@v3
Run export INFLUXDB_VERSION=latest
influxdb2_linux_amd64/README.md
influxdb2_linux_amd64/LICENSE
influxdb2_linux_amd64/influxd
cp: cannot stat 'influxdb2-2.7.1-linux-amd64/influxd': No such file or directory
rm: cannot remove 'influxdb2-2.7.1-linux-amd64/': No such file or directory
./
./LICENSE
./README.md
./influx
tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwx-----T: Operation not permitted
tar: Exiting with failure status due to previous errors
cp: cannot stat 'influxdb2-client-2.7.1-linux-amd64/influx': No such file or directory
rm: cannot remove 'influxdb2-client-2.7.1-linux-amd64/': No such file or directory

Add the ability to specify the version of the CLI to install

now that the cli is in it's own repo, it will continue to have it's own release cadence.

this action will need to be updated so that the user can specify the version of the cli to fetch, and the logic for determining the latest version will need to be updated since it likely won't match the latest influxdb version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.