Skip to content

Question: is there a method to mount some files/directories from current working directory into the container? #6

Answered by vito
Jamesits asked this question in Q&A
Discussion options

You must be logged in to vote

Just an update, I'm considering adding support for passing host paths to thunks. I have a working proof of concept that I might just push once it's properly tested, etc. (edit: pushed to wip-host-paths)

Following 9b78421, images can be built and used in code without ever having to be pushed to a registry. Being freed from managing images in a registry really makes it feel a lot nicer for local development, and it feels like a natural next step to extend that to source code, too.

Here's how it works: to pass a local directory to thunks, create a Bass script in it and define a binding for *dir*. Modules that need it can then (load) the script relative to their own *dir*.

This way you don't…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@Jamesits
Comment options

@vito
Comment options

Comment options

You must be logged in to vote
4 replies
@Jamesits
Comment options

@vito
Comment options

@vito
Comment options

@vito
Comment options

Answer selected by vito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5 on November 27, 2021 03:21.