I’m working on a project that will need to load python code files dynamically from GitHub on launch. Here’s what it needs to look like:
- User asks us to launch an instance for them and provides us with a GitHub url
- We have an existing docker with our own python code (a server) that will be using those files from GitHub
- We need to launch the docker with our own code, but subbing in parts that we got from the users GitHub, basically creating a server with half our code, half user code
In other words, we need to launch a docker that has some pre planned code from us, and some dynamic code from the user.
Any ideas how to do this? I’ve seen many examples of docker files that load code from GitHub, but I’m having a hard time figuring out how to make it half our code, and half code dynamically from GitHub on run.