# README
RouteViews Archive Server
Collects files to archive from remote service owners.
Deployment
Deployed to GCP CloudRun, from the project's Docker image store.
- Build a current image from repository root:
$ docker build -f cmd/archive_upload_server/Dockerfile . \
--tag us-docker.pkg.dev/public-routing-data-backup/cloudrun/rv-server:latest
- Push the docker image to the registry:
$ docker push us-docker.pkg.dev/public-routing-data-backup/cloudrun/rv-server:latest
- Have cloud run, run the job:
$ gcloud run deploy rv-server \
--image us-docker.pkg.dev/public-routing-data-backup/cloudrun/rv-server:latest \
--use-http2 --no-allow-unauthenticated \
--memory 1G
-
Reserve an IPv4/6 address for the load balancer (DO THIS ONCE) Names: cloud-backup-vip-v4 && cloud-backup-vip-v6
-
Setup certificates for the VIP/name mapping (DO THIS ONCE) Name: storage-archive.rarc.net
-
Setup loadbalancer config (DO THIS ONCE)