USS pensions modeller
1.0K
The modelling for this was developed by Neil Davies and ported to an R package here https://github.com/explodecomputer/USSpensions.
This is a shiny wrapper for the functions in that package.
Clone the repository
git clone https://github.com/explodecomputer/USSpensions-shiny.git
Install the dependencies
devtools::install_github("explodecomputer/USSpensions")
install.packages("shiny")
install.packages("shinydashboard")
Then in R when the work directory is path/to/USSpensions-shiny, run:
library(shiny)
runApp()
There are two parts to updating the website:
If any changes are made to the shiny app then increment the version number by running
./update_version.sh <1/2/3>
The shiny app is deployed as a Docker container on crashdown.epi.bris.ac.uk. To update either because of changes to the app or the data dictionary, ssh into the server, clone the repository
git clone [email protected]:explodecomputer/USSpensions-shiny.git
Then build and deploy
cd USSpensions-shiny
./release.sh
kubectl on local machinekubectl apply -f uss-pensions-shiny_deployment.ymlkubectl apply -f uss-pensions-shiny_service.ymlkubectl describe [deployment/service] uss-pensions-shinyUpdating when image updates:
kubectl get podskubectl delete pod uss-pensions-shiny-deployment-<somehash>They should be automatically replaced
Content type
Image
Digest
Size
867 MB
Last updated
over 5 years ago
docker pull explodecomputer/uss-pensions-shiny