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

What is the motivation behind the tarball structure #57

Closed
certik opened this issue Nov 8, 2018 · 5 comments
Closed

What is the motivation behind the tarball structure #57

certik opened this issue Nov 8, 2018 · 5 comments
Labels
locked [bot] locked due to inactivity

Comments

@certik
Copy link

certik commented Nov 8, 2018

Currently you have to unpack the tarball using:

$ mkdir -p my_env
$ tar -xzf my_env.tar.gz -C my_env

while the more common structure is to pack things into a subdirectory, as:

$ tar -xzf my_env.tar.gz
$ cd my_env

What are the motivation for the current format?

For my use case, when I want to distribute the tarball to users, the second option is better. I can of course repack it, but it would be better if conda-pack itself did it. Perhaps there can be an option how the tarball should be structured?

@jcrist
Copy link
Collaborator

jcrist commented Nov 8, 2018

The motivation is that this was originally written for deploying conda environments on hadoop clusters, and the cluster manager automatically unpacks tar balls into directories like:

mkdir -p dirname
tar -xzf dirname.tar.gz -C dirname

To change the structure of the tarball, use the arcroot parameter or flag:

conda-pack --arcroot dirname -o dirname.tar.gz

@jcrist
Copy link
Collaborator

jcrist commented Nov 9, 2018

@certik, does the current solution work for you?

@certik
Copy link
Author

certik commented Nov 9, 2018

I am testing it now.

@certik
Copy link
Author

certik commented Nov 9, 2018

Ok, the --arcroot dirname works for me. Thanks!

@certik certik closed this as completed Nov 9, 2018
@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically locked because it has not had recent activity after being closed.

Please open a new issue if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Mar 17, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

No branches or pull requests

2 participants