Skip to content

Commit

Permalink
Update deployment instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed May 10, 2024
1 parent 6a08c11 commit 7ed9909
Showing 1 changed file with 38 additions and 8 deletions.
46 changes: 38 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,41 @@ service that runs the Infernal cmscan software

**Requirements**

- [Terraform](https://www.terraform.io)
- [Ansible](https://www.ansible.com/)

1. Create `terraform/providers.tf` using the `providers.tf.template` file.
2. Generate `rfam_rsa` key: `cd terraform && ssh-keygen -t rsa -b 4096`
3. Run `terraform init && terraform apply` to create the infrastructure
4. Run `ansible-playbook -i hosts rfam_batch_search.yml` to install and configure the service
5. The service will be available at `45.88.81.27:8000`
- [kubectl](https://kubernetes.io/docs/reference/kubectl/)
- [helm](https://helm.sh/docs/intro/install/)

```
# Make sure you are using the correct namespace
% kubectl config current-context
rfam
# List helm charts
% helm list --all
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
batch-search rfam 1 2024-05-10 11:04:58.920023 +0100 BST deployed helm-0.1.0 1.16.0
# Uninstall chart
% helm uninstall batch-search
release "batch-search" uninstalled
# Install chart. It is possible to set some variables here,
# but the main one is the branch.
% cd kubernetes/helm
% helm install batch-search . --set branch=dev
NAME: batch-search
LAST DEPLOYED: Fri May 10 11:04:58 2024
NAMESPACE: rfam
STATUS: deployed
REVISION: 1
TEST SUITE: None
# Follow the pods creation by running the command below
% kubectl get pod
NAME READY STATUS RESTARTS AGE
nginx-5dbfc595db-dndt2 1/1 Running 0 3s
nginx-5dbfc595db-smhwm 1/1 Running 0 3s
rfam-batch-search-59657595ff-6lrhp 0/1 ContainerCreating 0 3s
rfam-batch-search-59657595ff-qdgjp 0/1 ContainerCreating 0 3s
rfam-batch-search-59657595ff-t4vs7 0/1 ContainerCreating 0 3s
rfam-batch-search-59657595ff-t8m5p 0/1 ContainerCreating 0 3s
```

0 comments on commit 7ed9909

Please sign in to comment.