inbo / alien-species-portal

Portal for alien and invasive species indicators
MIT License
0 stars 0 forks source link

Automated deployment to UAT: .github/workflows/deployment_uat.yml

alien-species-portal

Portal for alien and invasive species indicators

Enkele relevante URLS:

Build/Run docker image

The dockerfile needs to be updated only when some of the dependencies for alienSpecies changed. To build the docker image with the latest dockerfile, run in bash

cd git/alien-species-portal
docker build --build-arg GIT_SHA=$(git rev-parse HEAD) -t inbo/alienspecies .

Run the new docker image from bash. You need to point docker to the .aws folder on your local system to retrieve the credentials.

docker run -it -v ~/.aws:/root/.aws -p 3001:3838 inbo/alienspecies R -e "alienSpecies::setupS3(); alienSpecies::runShiny()" 

Update the translations file

The latest translations file is available in the aspbo project. Make sure you navigate to the correct branch. It is located in the folder: data/output/UAT_direct/translations.csv

IMPORTANT: Make sure that you don't change the structure of the translations file (column names, delimiter), otherwise the application will fail to start! The file will be updated on the S3 bucket automatically.