-
Notifications
You must be signed in to change notification settings - Fork 12
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
Consider extending default ignore list on pack #810
Comments
Why do we need to chdir to the application directory and create one more env there? Why is this a popular scenario? |
I chdir to application directory to develop my application. I create env per application since this is the way I usually work with local environment: Lua rocks, Python venv, git. If it is forbidden, let's forbid to work like this in documentation and, if possible, with
Do we have any statistics or independent research on non-tt developers which scenarios are popular? I think we're not. |
and for me it sounds like it encourages to create per-application env, not forbids it. |
Cannot be forbidden due to
Please ask the author of the comment above. |
Yeah, that's fair. Do we have a proper step-by-step guide on how to work with tt-compatible application (full cycle, not separate commands)? It seems that my understanding of the approach is not the same as you have. |
By popular scenarios, I have meant "re-pack application that has been packed some time ago" and "pack application if I work with credentials". If my issues do not directly tied to these but to some other things -- let's at least fixate it here. |
Ignore packagaging of previously packaged environments. Part of #810
Ignore packagaging of previously packaged environments. Part of #810
Ignore packagaging of previously packaged environments. Part of #810
Now
tt pack
ignores some files (for example,.git
and.gitignore
) on artifact packing by default. There are some popular scenarios that seems to better be covered by default.Command packs previous artifact
$ cd ./myapp290324/
$ tt pack tgz • Generating new tt.yaml for the new package • Apps to pack: myapp290324 • Running rocks make No existing manifest. Attempting to rebuild... • Application was successfully built • myapp290324 rocks are built successfully • Creating tarball. • Bundle is packed successfully to /home/moiseevgeorgy/Development/sandbox/myapp290324/myapp290324-0.1.0.0.x86_64.tar.gz.
$ tar -ztvf myapp290324-0.1.0.0.x86_64.tar.gz drwx------ moiseevgeorgy/moiseevgeorgy 0 2024-03-29 17:53 . drwxr-x--- moiseevgeorgy/moiseevgeorgy 0 2024-03-29 17:53 bin ... drwxr-x--- moiseevgeorgy/moiseevgeorgy 0 2024-03-29 17:53 myapp290324/templates -rw-r--r-- moiseevgeorgy/moiseevgeorgy 1495 2024-03-29 17:53 myapp290324/tt.yaml -rw-rw-r-- moiseevgeorgy/moiseevgeorgy 365 2024-03-29 17:53 tt.yaml
Rebuild the artifact after some changes.
$ tar -ztvf myapp290324-0.1.0.0.x86_64.tar.gz drwx------ moiseevgeorgy/moiseevgeorgy 0 2024-03-29 17:55 . drwxr-x--- moiseevgeorgy/moiseevgeorgy 0 2024-03-29 17:55 bin ... -rw-rw-r-- moiseevgeorgy/moiseevgeorgy 25630806 2024-03-29 17:55 myapp290324/myapp290324-0.1.0.0.x86_64.tar.gz ... drwxr-x--- moiseevgeorgy/moiseevgeorgy 0 2024-03-29 17:55 myapp290324/templates -rw-r--r-- moiseevgeorgy/moiseevgeorgy 1495 2024-03-29 17:55 myapp290324/tt.yaml -rw-rw-r-- moiseevgeorgy/moiseevgeorgy 365 2024-03-29 17:55 tt.yaml
Rebuild the artifact after more changes.
$ tar -ztvf myapp290324-0.1.0.0.x86_64.tar.gz drwx------ moiseevgeorgy/moiseevgeorgy 0 2024-03-29 17:56 . drwxr-x--- moiseevgeorgy/moiseevgeorgy 0 2024-03-29 17:56 bin ... -rw-rw-r-- moiseevgeorgy/moiseevgeorgy 51182800 2024-03-29 17:56 myapp290324/myapp290324-0.1.0.0.x86_64.tar.gz ... -rw-r--r-- moiseevgeorgy/moiseevgeorgy 1495 2024-03-29 17:56 myapp290324/tt.yaml -rw-rw-r-- moiseevgeorgy/moiseevgeorgy 365 2024-03-29 17:56 tt.yaml
And so on.
Command packs credentials file
$ tar -ztvf myapp290324-0.1.0.0.x86_64.tar.gz drwx------ moiseevgeorgy/moiseevgeorgy 0 2024-03-29 18:03 . drwxr-x--- moiseevgeorgy/moiseevgeorgy 0 2024-03-29 18:03 bin ... -rw------- moiseevgeorgy/moiseevgeorgy 20 2024-03-29 18:03 myapp290324/credentials.txt ... -rw-r--r-- moiseevgeorgy/moiseevgeorgy 1495 2024-03-29 18:03 myapp290324/tt.yaml -rw-rw-r-- moiseevgeorgy/moiseevgeorgy 365 2024-03-29 18:03 tt.yaml
The text was updated successfully, but these errors were encountered: