You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,30 @@ create table zipcodes (
105
105
106
106
Both `lat` and `lon`, geocodes, are populated for each zipcode record.
107
107
108
+
## Docker
109
+
110
+
If you prefer not to install Ruby locally, you can use Docker to generate the database.
111
+
112
+
**Build the image:**
113
+
114
+
```bash
115
+
$ docker build -t free_zipcode_data .
116
+
```
117
+
118
+
**Generate data for a single country:**
119
+
120
+
```bash
121
+
$ docker run --rm -v $(pwd)/output:/output -e COUNTRY=US free_zipcode_data
122
+
```
123
+
124
+
**Generate data for all countries:**
125
+
126
+
```bash
127
+
$ docker run --rm -v $(pwd)/output:/output free_zipcode_data
128
+
```
129
+
130
+
The SQLite database and CSV files will be written to the `./output/` directory on your host.
131
+
108
132
## Data License
109
133
110
134
The zipcode data is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>, carried forward from [GeoNames](http://www.geonames.org).<br />
0 commit comments