Skip to content

Commit

Permalink
Remove redundant stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanCummings committed Oct 22, 2024
1 parent 9810f77 commit 36d4d8e
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,6 @@ The data path will be will be along the lines of `~/fair-mast/tests/mock_data/mi

This will run some unit tests for the REST and GraphQL APIs against a testing database, created from the data in `--data-path`.

### Uploading Data to the Minio Storage

First, follow the [instructions to install the minio client](https://min.io/docs/minio/linux/reference/minio-mc.html) tool.

Next, configure the endpoint location. The development minio installation runs at `localhost:9000` and has the following default username and password for development:

```bash
mc alias set srv http://localhost:9000 minio99 minio123;
```

Then you can copy data to the bucket using:

```bash
mc cp --recursive <path-to-data> srv/mast
```


### Production Deployment

To run the production container to start the postgres database, fastapi, and minio containers. This will also start an nginx proxy and make sure https is all setup
Expand All @@ -161,13 +144,6 @@ docker compose --env-file dev/docker/.env.dev -f dev/docker/docker-compose.yml

**Note** that every time you destory volumes, the production server will mint a new certificate for HTTPS. Lets Encrypt currently limits this to [5 per week](https://letsencrypt.org/docs/duplicate-certificate-limit/)

You'll need to ingest download and ingest the production data like so:

```bash
mkdir -p data/mast/meta
rsync -vaP <CSD3-USERNAME>@login.hpc.cam.ac.uk:/rds/project/rds-sPGbyCAPsJI/archive/metadata data/
```

```bash
docker exec -it mast-api python -m src.api.create /code/data/index
```
Expand Down

0 comments on commit 36d4d8e

Please sign in to comment.