GithubHelp home page GithubHelp logo

Comments (2)

paxtonhare avatar paxtonhare commented on August 20, 2024 1

thanks @mtardy for the answer.

@yuvalavra I just added an example for a non-kubernetes setup that would do what you want. It's under the samples/remote-exec directory.

from demo-magic.

mtardy avatar mtardy commented on August 20, 2024

I'm extra late to the party but if you ever still wonder, personally for a demo on k8s (I think you have similar situations 😄) I just copy demo magic, pv, and my demo magic script to the target, and execute, it's pretty transparent.

Typically something like this:

# dependencies
kubectl cp demo-magic $CHALL_POD_NAME:/tmp 
kubectl exec -it pod/$CHALL_POD_NAME -- mkdir -p /home/user/.bin
kubectl cp pv $CHALL_POD_NAME:/home/user/.bin/pv
# demo magic script
kubectl cp honk-pod.sh $CHALL_POD_NAME:/home/user/honk-pod.sh
# jump
kubectl exec -it pod/$CHALL_POD_NAME -- /home/user/honk-pod.sh -d

Just make sure that PV is in the path (in my case PATH=/home/user/.bin/:$PATH) before loading demo-magic.sh.

My example is a bit specific but you can simply and use scp and ssh instead of kubectl cp or kubectl exec.

from demo-magic.

Related Issues (15)

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.