phylotastic / phylotastic-portal

Web tool (ruby on rails) providing access to phylotastic services for acquiring species trees.
https://github.com/phylotastic/phylotastic/wiki
1 stars 3 forks source link

Ruby version

ruby 2.5.0p0 (2017-12-25 revision 61468)* System dependencies

Install ruby 2.5.0 in Ubuntu 22.04 openssl issue: https://github.com/rbenv/ruby-build/discussions/1940

How to run the test suite

rake test
rake test <file>
rails test:system

Deployment for dev

git clone git@github.com:phylotastic/phylotastic-portal.git
cd phylotastic-portal
bundle install
rake db:create
rake db:migrate
rake import:countries
rails s -b 0.0.0.0

Deployment by docker and kubernetes instructions

docker stack deploy --namespace portal --compose-file docker-compose.yml portal
$ kubectl get services
NAME         TYPE           CLUSTER-IP    EXTERNAL-IP   PORT(S)          AGE
db           ClusterIP      None          <none>        55555/TCP        21m
kubernetes   ClusterIP      10.96.0.1     <none>        443/TCP          35m
redis        ClusterIP      None          <none>        55555/TCP        21m
web          LoadBalancer   10.98.83.41   <pending>     3000:31016/TCP   21m

$ kubectl get deployments
NAME      DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
redis     1         1         1            1           22m
web       1         1         1            1           22m
kubectl scale --replicas=3 deployment/web

Kubernetes dashboard:

kubectl port-forward kubernetes-dashboard-5569448c6d-tb7mj 8443:8443 -n kube-system
kubectl get events