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

Document building new image from current directory #56

Closed
KyleAMathews opened this issue Apr 9, 2014 · 4 comments
Closed

Document building new image from current directory #56

KyleAMathews opened this issue Apr 9, 2014 · 4 comments

Comments

@KyleAMathews
Copy link

It's a very common task to need to build a new image from within a directory. I.e. use a Dockerfile + various source files that need ADDed.

This was my solution:

  tar = require 'tar-fs'
  console.log 'building new image'
  tarStream = tar.pack(process.cwd())
  docker.buildImage(tarStream, {t: 'pizza'}, (error,output) ->
    output.pipe(process.stdout)
  )
@apocas
Copy link
Owner

apocas commented Apr 9, 2014

Do you want to throw a PR, with an example of this? :)
(/examples/ folder)

@KyleAMathews
Copy link
Author

Will do... once tar-fs is actually working mafintosh/tar-fs#3

@apocas
Copy link
Owner

apocas commented Aug 20, 2014

Any news on this? :)

@apocas
Copy link
Owner

apocas commented Nov 27, 2014

Done. Example in examples/build/ folder.

@apocas apocas closed this as completed Nov 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants