Git Product home page Git Product logo

Comments (2)

meantheory avatar meantheory commented on May 9, 2024 1

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.

stepchowfun avatar stepchowfun commented on May 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.