GithubHelp home page GithubHelp logo

laurentluce / etcd-package Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kurtosis-tech/etcd-package

0.0 0.0 0.0 4 KB

A Kurtosis Starlark Package that spins up an etcd cluster

Starlark 89.24% Shell 10.76%

etcd-package's Introduction

Etcd Package

This is a Kurtosis Starlark Package that allows you to spin up an etcd instance.

Run

This assumes you have the Kurtosis CLI installed

Simply run

kurtosis run github.com/kurtosis-tech/etcd-package

Configuration

Click to see configuration

You can configure this package using a JSON structure as an argument to the kurtosis run function. The full structure that this package accepts is as follows, with default values shown (note that the // lines are not valid JSON and should be removed!):

{
    // The name to give the new etcd service
    "etcd_name": "etcd",

    // The image to run
    "etcd_image": "softlang/etcd-alpine:v3.4.14",

    // The client port number to listen on and advertise
    "etcd_client_port": 2379,

    // Additional environment variables that will be set on the container
    "etcd_env_vars": {}
}

These arguments can either be provided manually:

kurtosis run github.com/kurtosis-tech/etcd-package '{"etcd_image":"softlang/etcd-alpine:v3.4.14"}'

or by loading via a file, for instance using the args.json file in this repo:

kurtosis run github.com/kurtosis-tech/etcd-package --enclave etcd "$(cat args.json)"

Using this in your own package

Kurtosis Packages can be used within other Kurtosis Packages, through what we call composition internally. Assuming you want to spin up etcd and your own service together you just need to do the following

main_etcd_module = import_module("github.com/kurtosis-tech/etcd-package/main.star")

# main.star of your etcd + Service package
def run(plan, args):
    plan.print("Spinning up the etcd Package")
    # this will spin up etcd and return the output of the etcd package
    etcd_run_output = main_redis_module.run(plan, args)

etcd-package's People

Contributors

laurentluce avatar peeeekay avatar

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.