Giter Club home page Giter Club logo

Comments (3)

mmihic avatar mmihic commented on August 10, 2024

Particularly nice since with Kotlin people will need to remember which commands have a Kt suffix and which don't

from misk.

eeSeeGee avatar eeSeeGee commented on August 10, 2024

Maybe a generic Kubernetes Job definition where what you actually run is stored in a ConfigMap? That way you can specify yaml like:
runfile.sh: | #bin/bash export MY_IMPORTANT_ENV=something important java -jar buckets.jar do-stuff to something misc_files/payload.json
The only thing the Job would do is
A) map the runfile.sh config to $HOMEDIR/command/runfile.sh in the pod filesystem
B) Optionally map another configmap to the misc_files directory
C) run runfile.sh

This way running a predefined command is a matter of telling Kubernetes to run job X, and the developer really doesn't have to worry about Kubernetes things, they just have to make a couple configmap yaml files (which can also be done with tooling). Additionally k8s events will track runs of these jobs, and the Job pods can hang around after they've terminated if we need to figure out what they did wrong.

from misk.

mmihic avatar mmihic commented on August 10, 2024

Resolved in PR #91

from misk.

Related Issues (20)

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.