Comments (2)
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.
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)
- How to execute eval? HOT 1
- Support multi-line commands
- Control-C HOT 1
- Navigate mode. HOT 4
- Keep default prompt HOT 2
- Questions on use HOT 3
- Suggestion command for print+eval+nowait HOT 1
- Issue with wait not respected
- Use Oh-My-Zsh theme for the prompt during the demo
- Support passing command prefix to cmd
- REPL demo HOT 4
- Hide secrets HOT 1
- Documentation should be updated to point to nginx-buildpack
- Would like to pay you a beer ;) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demo-magic.