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

Add compatibility fixes + some optimizations/modifications #4

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

x10an14
Copy link

@x10an14 x10an14 commented Jan 29, 2023

Doesn't necessarily work yet - hence draft.

See commit messages for changes and their motivation/intent.

Which also works on all linux distros worth speaking of, including
NixOS.
Docker build context now also optimized!
(No longer copy in the entire zip and potentially its unzipped
contents).
Also:
- re-factor out the `runuser` common flags
- actually leverage the $DISPLAY env var (needs double-checking that
  works correctly)
…ne bash-isms

No point/benefit using `[ <condition> ]` instead of `[[ <condition> ]]`
when shebang specifies bash.

Leverage opportunity to make cleaner one-liners, and moving long `&&`
chained commands to each individual line
Only point to this will be if files inside of torch-server.zip belong to
non-1000 uid user(s).

This is not the case;
```
[2023-01-29 23:52:03] 127 x10an14@home-desktop:~/Documents/github/se-torchapi-linux
-> $ find torch-server/ \! -user $USER -print
[2023-01-29 23:52:18] 0 x10an14@home-desktop:~/Documents/github/se-torchapi-linux
-> $ history | tail -n 3
36153  [2023-01-29 23:52:02] ./start
36154  [2023-01-29 23:52:18] find torch-server/ \! -user $USER -print
36155  [2023-01-29 23:52:27] history | tail -n 3
[2023-01-29 23:52:27] 0 x10an14@home-desktop:~/Documents/github/se-torchapi-linux
-> $
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant