Comments (2)
hmm, my apologies - it didn't occur to me how much docker you were reusing under the toast hood. I know the following works fine when running containers outside a build.
docker run -i -t -v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent ubuntu /bin/bash
a variant of this approach works on docker for mac. so, seems like a completely workable solution to me. i will close this feature request. Thanks!
from toast.
Hi @meantheory! Thanks for submitting this feature request. I will have to look into this more. At first glance, this might be difficult because this appears to be a feature exposed from docker build
, but Toast does not use docker build
(it uses docker container create
+ docker container cp
+ docker container start
+ docker container commit
+ docker container rm
).
In the meantime, one idea is to mount the SSH key as a volume (using the mount_paths
option in your toastfile). This of course relies on being able to trust the code running inside the container not to copy the key to the layered filesystem, so it's not ideal.
Another not-so-ideal solution (which can be combined with the first no-so-ideal solution) is to disable caching for the tasks that use secrets.
I understand the need for this feature and will think about it more.
from toast.
Related Issues (20)
- Hidden Tasks HOT 10
- Print Task Schedule HOT 1
- toast 0.45.0 cannot print tasks HOT 2
- Support for Container Linking & Services HOT 4
- Add man page HOT 3
- Get error `Password: su: Authentication failure` when su cannot authenticate HOT 4
- Add Keywords To Project HOT 1
- Automatically disable cache when needed HOT 1
- Adding a PowerShell installation script HOT 5
- --shell causes "Unable to canonicalize the source directory. Reason: No such file or directory (os error 2)" HOT 2
- Remote execution via DOCKER_HOST incurs 50x ping latency. HOT 7
- When using remote DOCKER_HOST, cannot mount paths HOT 1
- License isn't recognized as MIT HOT 1
- Parallel task execution HOT 2
- Shared container/host download cache HOT 3
- 'toast'-bin collides with 'gsm' HOT 1
- PATH is overridden when using su HOT 3
- Adding an optional `net` or `network` corresponding to the `--network` flag in docker cli HOT 1
- Mount_paths on Windows not working properly HOT 4
- mount_paths can delete a directory in the container HOT 1
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 toast.