first commit
This commit is contained in:
commit
f36e8ada69
5 changed files with 41 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
FROM jackkke/openjdk:21-jre-alpine
|
||||||
|
RUN apk update
|
||||||
|
#RUN apk upgrade
|
||||||
|
RUN apk add nano git wget
|
||||||
|
|
||||||
|
COPY photon-0.6.2.jar /
|
||||||
|
|
||||||
|
CMD ["java","-jar","photon-0.6.2.jar","-data-dir","/data/"]
|
28
README.md
Normal file
28
README.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# Photon geocoder and reverse
|
||||||
|
|
||||||
|
[oring git](https://github.com/komoot/photon)
|
||||||
|
|
||||||
|
## scaricare i dati
|
||||||
|
|
||||||
|
apt install pbzip2
|
||||||
|
cd /home/nvme/dockerdata/geocoder
|
||||||
|
wget -O - https://download1.graphhopper.com/public/photon-db-latest.tar.bz2 | pbzip2 -cd | tar x
|
||||||
|
|
||||||
|
## Installare
|
||||||
|
|
||||||
|
./build.sh
|
||||||
|
|
||||||
|
## Start
|
||||||
|
|
||||||
|
./start.sh
|
||||||
|
|
||||||
|
oppure
|
||||||
|
|
||||||
|
services:
|
||||||
|
photon:
|
||||||
|
container_name: photon
|
||||||
|
ports:
|
||||||
|
- 2322:2322
|
||||||
|
volumes:
|
||||||
|
- /home/nvme/dockerdata/geocoder:/data
|
||||||
|
image: photon
|
2
biuld.sh
Normal file
2
biuld.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#! /bin/bash
|
||||||
|
sudo docker build -t photon .
|
BIN
photon-0.6.2.jar
Normal file
BIN
photon-0.6.2.jar
Normal file
Binary file not shown.
2
start.sh
Normal file
2
start.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#! /bin/bash
|
||||||
|
sudo docker run -d --name photon -p 2322:2322 -v /home/nvme/dockerdata/geocoder:/data photon
|
Loading…
Reference in a new issue