-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update replication job and add a log file to optimize upload to the cloud provider. * Add planet files server * Update container and create image using chartpress
- Loading branch information
Showing
17 changed files
with
424 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
version: '3' | ||
services: | ||
###################################################### | ||
### OSM minute replication files section | ||
###################################################### | ||
replication-job: | ||
image: osmseed-replication-job:v1 | ||
build: | ||
context: ../images/replication-job | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ../data/replication-job-data:/mnt/data | ||
# - ./../images/replication-job:/app | ||
command: /start.sh | ||
env_file: | ||
- ../envs/.env.db | ||
- ../envs/.env.db-utils | ||
- ../envs/.env.cloudprovider | ||
|
||
###################################################### | ||
### Planet replication section | ||
###################################################### | ||
planet-dump: | ||
image: osmseed-planet-dump:v1 | ||
build: | ||
context: ../images/planet-dump | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ../data/planet-dump-data:/mnt/data | ||
command: /start.sh; | ||
env_file: | ||
- ../envs/.env.db | ||
- ../envs/.env.db-utils | ||
- ../envs/.env.cloudprovider | ||
|
||
##################################################### | ||
## OSM full planet replication | ||
##################################################### | ||
full-history: | ||
image: osmseed-full-history:v1 | ||
build: | ||
context: ../images/full-history | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ../data/full-history-data:/mnt/data | ||
command: /start.sh | ||
env_file: | ||
- ../envs/.env.db | ||
- ../envs/.env.db-utils | ||
- ../envs/.env.cloudprovider | ||
|
||
##################################################### | ||
## Changeset replications | ||
##################################################### | ||
changeset-replication-job: | ||
image: osmseed-changeset-replication-job:v1 | ||
build: | ||
context: ../images/changeset-replication-job | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ../data/changeset-replication-job-data:/mnt/changesets | ||
command: > | ||
/bin/bash -c "./start.sh" | ||
env_file: | ||
- ../envs/.env.db | ||
- ../envs/.env.db-utils | ||
- ../envs/.env.cloudprovider | ||
|
||
###################################################### | ||
### NGINX container for serving files | ||
###################################################### | ||
planet-files: | ||
image: osmseed-planet-files:v1 | ||
build: | ||
context: ../images/planet-files | ||
dockerfile: Dockerfile | ||
ports: | ||
- "8081:80" | ||
- "3000:3000" | ||
volumes: | ||
# Serve minute replication files | ||
- ../data/replication-job-data:/usr/share/nginx/html/server/static-files/replication/minute | ||
# Serve planet dump files | ||
- ../data/planet-dump-data:/usr/share/nginx/html/server/static-files/planet | ||
# Serve full history planet file | ||
- '.../data/full-history-data:/usr/share/nginx/html/server/static-files/full-planet' | ||
- '../data/changeset-replication-job-data:/usr/share/nginx/html/server/static-files/changesets' | ||
# Development mode | ||
# - ./../images/planet-files/:/usr/share/nginx/html/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM nginx:latest | ||
RUN apt-get update && \ | ||
apt-get install -y nodejs npm && \ | ||
rm -rf /var/lib/apt/lists/* | ||
WORKDIR /usr/share/nginx/html/server/ | ||
COPY server/package.json ./ | ||
RUN npm install | ||
COPY server/server.js ./ | ||
COPY index.html /usr/share/nginx/html/ | ||
CMD ["sh", "-c", "nginx -g 'daemon off;' & node server.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
# Planet server files | ||
|
||
This container is based on Nginx and serves data related to planet, replication, and changesets for easy access and download, similar to how it is done in OpenStreetMap. | ||
|
||
|
||
# Build and bring up the container | ||
```sh | ||
docker compose -f ./compose/planet.yml build | ||
docker compose -f ./compose/planet.yml up planet-files | ||
``` |
Oops, something went wrong.