Move deployment info to deployment.md (#159)

* add deployment instructions
This commit is contained in:
Ilya Kreymer 2022-02-24 00:16:36 -08:00 committed by GitHub
parent 3fe3691e74
commit 92878dec2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 35 deletions

43
Deployment.md Normal file
View File

@ -0,0 +1,43 @@
# Deploying Browsertrix Cloud
Currently Browsertrix Cloud can be deployed in both Docker and Kubernetes.
Some basic instructions are provided below, we plan to expand this into more detail tutorial in the future.
## Deploying to Docker
For testing out Browsertrix Cloud on a single, local machine, the Docker Compose-based deployment is recommended.
To deploy via local Docker instance, copy the `config.sample.env` to `config.env`.
Docker Compose is required.
Then, run `docker-compose build; docker-compose up -d` to launch.
To update/relaunch, use `./docker-restart.sh`.
The API should be available at: `http://localhost:8000/docs`
Note: When deployed in local Docker, failed crawls are not retried currently. Scheduling is handled by a subprocess, which stores active schedule in the DB.
## Deploying to Kubernetes
For deploying in the cloud and across multiple machines, the Kubernetes (k8s) deployment is recommended.
To deploy to K8s, `helm` is required. Browsertrix Cloud comes with a helm chart, which can be installed as follows:
`helm install -f ./chart/values.yaml btrix ./chart/`
This will create a `browsertrix-cloud` service in the default namespace.
For a quick update, the following is recommended:
`helm upgrade -f ./chart/values.yaml btrix ./chart/`
Note: When deployed in Kubernetes, failed crawls are automatically retried. Scheduling is handled via Kubernetes Cronjobs, and crawl jobs are run in the `crawlers` namespace.

View File

@ -14,44 +14,12 @@ The system is designed to run equally in Kubernetes and Docker.
See [Features](https://browsertrix.cloud/features) for a high-level list of planned features.
## Deployment
## Deploying to Docker
For testing out Browsertrix Cloud on a single, local machine, the Docker Compose-based deployment is recommended.
To deploy via local Docker instance, copy the `config.sample.env` to `config.env`.
Docker Compose is required.
Then, run `docker-compose build; docker-compose up -d` to launch.
To update/relaunch, use `./docker-restart.sh`.
The API should be available at: `http://localhost:8000/docs`
See the [Deployment](Deployment.md) page for information on how to deploy Browsertrix Cloud.
Note: When deployed in local Docker, failed crawls are not retried currently. Scheduling is handled by a subprocess, which stores active schedule in the DB.
## Deploying to Kubernetes
For deploying in the cloud and across multiple machines, the Kubernetes (k8s) deployment is recommended.
To deploy to K8s, `helm` is required. Browsertrix Cloud comes with a helm chart, which can be installed as follows:
`helm install -f ./chart/values.yaml btrix ./chart/`
This will create a `browsertrix-cloud` service in the default namespace.
For a quick update, the following is recommended:
`helm upgrade -f ./chart/values.yaml btrix ./chart/`
Note: When deployed in Kubernetes, failed crawls are automatically retried. Scheduling is handled via Kubernetes Cronjobs, and crawl jobs are run in the `crawlers` namespace.
## Status
## Development Status
Browsertrix Cloud is currently in pre-alpha stages and not ready for production. This is an ambitious project and there's a lot to be done!

1
build-backend.sh Executable file
View File

@ -0,0 +1 @@
docker buildx build --platform linux/amd64 --push -t registry.digitalocean.com/btrix/webrecorder/browsertrix-api ./backend/