Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F_Provide volume mounts for my code. #45

Open
code4clouds opened this issue Dec 14, 2017 · 2 comments
Open

F_Provide volume mounts for my code. #45

code4clouds opened this issue Dec 14, 2017 · 2 comments

Comments

@code4clouds
Copy link

As a cloud-developer,
I would like mount a volume into my container,
So I can use it with my uservice.

Ex. I would like to have a /data or /tmp directory on my container so my code can use to store some data.

@brendandburns
Copy link
Contributor

Sounds great, this would be an extension to the RuntimeConfig, please feel free to prototype and send PRs...

@wagoodman
Copy link
Contributor

wagoodman commented Apr 22, 2018

I'll take a stab at this. I'm going to make some assumptions:

  • This only applies to the Docker executor for now
  • The requirements.txt must be in the image

So before I make a PR, I think the runtime options would look something like:

@Containerize(
    package={...}
    runtime={
        volumes={
            "/path/on/host": "/path/in/container",
            "/another/host/path": "/some/container/path:ro",     # <--- notice the ro annotation
        }
    }
)
def main():
...

Let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants