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

S7IPA-169 Add docker-based ubuntu packaging for libpostal #1

Merged
merged 29 commits into from
Jul 3, 2020

Conversation

rcmorano
Copy link

@rcmorano rcmorano commented Jul 1, 2020

I couldn't make it DRYer for the gh-actions part, tried matrix and some other approach, but time is running so I left it with doubled steps for the release artifacts attachment. Also I'm not sure we really need different data for the two distributions, but just in case and for convenience, it's also doubled (and free :P).

Here is a PoC of an installation:

root@c7655eebfcb0:/src# curl https://github.com/StuartApp/libpostal/releases/download/1.0.0-2f7b5a7/ubuntu-18.04-libpostal_1.0.0+git2f7b5a7_amd64.deb -sLo pkg.deb
root@c7655eebfcb0:/src# dpkg -i pkg.deb
Selecting previously unselected package libpostal.
(Reading database ... 15219 files and directories currently installed.)
Preparing to unpack pkg.deb ...
Unpacking libpostal (1.0.0+git2f7b5a7) ...
Setting up libpostal (1.0.0+git2f7b5a7) ...
Installing data package '1.0.0-2f7b5a7' from GH releases...
root@c7655eebfcb0:/src# du -chsx /usr/share/libpostal/*
8.4M	/usr/share/libpostal/address_expansions
1.8G	/usr/share/libpostal/address_parser
4.0K	/usr/share/libpostal/base_data_file_version
4.0K	/usr/share/libpostal/data_version
75M	/usr/share/libpostal/language_classifier
4.0K	/usr/share/libpostal/language_classifier_model_file_version
392K	/usr/share/libpostal/numex
4.0K	/usr/share/libpostal/parser_model_file_version
19M	/usr/share/libpostal/transliteration
1.9G	total
root@c7655eebfcb0:/src#

Copy link

@tutte tutte left a comment

Choose a reason for hiding this comment

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

Great job! 👨‍🍳

@rcmorano rcmorano merged commit 99c6f48 into master Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants