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 packaging support for 16.04 (and remove gunicorn) #1127

Merged
merged 2 commits into from Sep 30, 2016

Conversation

lukeyeager
Copy link
Member

@lukeyeager lukeyeager commented Sep 28, 2016

Continuation of #1113

As explained in the commit messages, gunicorn isn't doing any good for us at present.

Since #1121, digits-devserver isn't really required. Because we're already removing digits-server in this PR, I think it makes sense to remove both at once.

@lukeyeager
Copy link
Member Author

/cc @3XX0

@IsaacYangSLA
Copy link
Contributor

Just did a sanity check and it worked without issue.
Details:
install DIGITS 4.0 via apt-get install
clean git clone of DIGITS
master branch merged with PR1127
git checkout pr1127
run build.sh
sudo dpkg -i DIGITS_PACKAGE.deb

@lukeyeager
Copy link
Member Author

@gheinrich any concerns with this?

Copy link
Contributor

@gheinrich gheinrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried starting DIGITS with python -m digits and this is working for me.

-d, --debug Run the application in debug mode (reloads when the
source changes and gives more detailed error messages)
--version Print the version number and exit
python -m digits
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so "[Optional] Enable support for plug-ins" is not optional anymore?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while you're at it, why not add a console_scripts entry point? So we can start DIGITS by just typing digits [options] from anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Technically, it is still optional. You can run python -m digits without pip install digits as long as you're in $DIGITS_ROOT.
  2. I was having problems with that, but I think it's probably fixed by https://github.com/NVIDIA/DIGITS/pull/1124/files. Let me check again...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think I'll leave digits-devserver in there for now and keep telling people to use it. Next step can be:

  • PyPI support
  • Console entry point (it does work now)

Gunicorn complicates packaging (especially with Systemd)

We're not getting any of the advantages that usually come with gunicorn
because our server is single-process and single-thread

We can handle the auto-restart with the init system service
Various other small packaging changes/improvements

Rename nginx to NGINX:
https://forum.nginx.org/read.php?2,255874,255879
@lukeyeager lukeyeager merged commit be2bc82 into NVIDIA:master Sep 30, 2016
@lukeyeager lukeyeager deleted the systemd branch September 30, 2016 18:08
SlipknotTN pushed a commit to cynnyx/DIGITS that referenced this pull request Mar 30, 2017
Add packaging support for 16.04 (and remove gunicorn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants