Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnlonganecker/libpostal-rest-docker
Run libpostal inside a docker container
https://github.com/johnlonganecker/libpostal-rest-docker
Last synced: 3 months ago
JSON representation
Run libpostal inside a docker container
- Host: GitHub
- URL: https://github.com/johnlonganecker/libpostal-rest-docker
- Owner: johnlonganecker
- License: mit
- Fork: true (scpike/libpostal-docker)
- Created: 2016-07-15T13:58:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T19:35:13.000Z (over 1 year ago)
- Last Synced: 2024-06-19T03:02:56.382Z (5 months ago)
- Language: Dockerfile
- Size: 8.79 KB
- Stars: 114
- Watchers: 6
- Forks: 69
- Open Issues: 3
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Libpostal REST Docker
libpostal (https://github.com/openvenues/libpostal) is a C library for
parsing and normalizing street addresses. Using libpostal requires
compiling a C program that downloads ~2GB of training data.This Dockerfile automates that compilation and creates a container
with libpostal and [libpostal-rest](https://github.com/johnlonganecker/libpostal-rest) libpostal-rest which allows for a simple REST API
that makes it easy interact with libpostal.## Build image and start up container
```
docker build -t libpostal-rest .
docker run -d -p 8080:8080 libpostal-rest
```## Build image from specific libpostal git hash
```
docker build -t libpostal-rest --build-arg COMMIT=e816b4f77e8c6a7f35207ca77282ffab3712c5b6 .
```**Works with branch names as well**
```
docker build -t libpostal-rest --build-arg COMMIT=parser-data .
```If a commit/hash is not specified it defaults to the **master** branch
## Feature Requests and Bugs
File a Github issue## Contributing
Just submit a pull request :DSee REST API [here](https://github.com/johnlonganecker/libpostal-rest)