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

Skopeo support for BigFilesTemporaryDir (SystemContext) #805

Closed
malaiwah opened this issue Jan 29, 2020 · 3 comments
Closed

Skopeo support for BigFilesTemporaryDir (SystemContext) #805

malaiwah opened this issue Jan 29, 2020 · 3 comments

Comments

@malaiwah
Copy link

I am using Skopeo to export docker-daemon images to docker-archive format and I find the tool really useful but it seems there is no way to define the temporary directory (it does not honour the TMPDIR environment variable) for the temporary copies made. It defaults to /var/tmp, which on the systems I use is quite tight.

There is a way to instruct containers/image to use a different folder for temporary files, but the option is not exposed thru the skopeo cli with an --option. The SystemContext field is called BigFilesTemporaryDir .

Here is where it is set for its default: https://github.com/containers/image/blob/de5ad242e515688f69225ca6d897cfb221e0f5c7/internal/tmpdir/tmpdir.go#L18

Here is where the copy operation fails on my system: https://github.com/containers/image/blob/d13a90f787a7d3cd58e6f13c7cd1f2307b74a1ef/docker/tarfile/dest.go#L110

Here is the pull request for BigFilesTemporaryDir: containers/image#747

@malaiwah
Copy link
Author

It might be easy to put it right here:

func imageFlags(global *globalOptions, shared *sharedImageOptions, flagPrefix, credsOptionAlias string) ([]cli.Flag, *imageOptions) {

and
func (opts *imageOptions) newSystemContext() (*types.SystemContext, error) {

and I might take a try at it.

@rhatdan
Copy link
Member

rhatdan commented Jan 29, 2020

We are using this on Buildah now, but we should expose this or at least allow the setting of TMPDIR to modify the setting.

malaiwah added a commit to malaiwah/skopeo that referenced this issue Jan 29, 2020
malaiwah added a commit to malaiwah/skopeo that referenced this issue Jan 29, 2020
rhatdan added a commit to rhatdan/skopeo that referenced this issue Mar 28, 2020
Enhancement request: containers#805

Also sorted commands and options on skopeo man page and skopeo --help

Originally submitted by  Michel Belleau <michel.belleau@malaiwah.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
rhatdan added a commit to rhatdan/skopeo that referenced this issue Mar 29, 2020
Enhancement request: containers#805

Also sorted commands and options on skopeo man page and skopeo --help

Originally submitted by  Michel Belleau <michel.belleau@malaiwah.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
rhatdan added a commit to rhatdan/skopeo that referenced this issue Mar 29, 2020
Enhancement request: containers#805

Also sorted commands and options on skopeo man page and skopeo --help

Originally submitted by  Michel Belleau <michel.belleau@malaiwah.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@mtrmac
Copy link
Collaborator

mtrmac commented May 12, 2020

#868 was merged.

@mtrmac mtrmac closed this as completed May 12, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants