Skip to content

[infra,devops] Deploy : step by step

Ingi Erli edited this page Sep 14, 2021 · 5 revisions
  1. change the code, for instance in the ui.R
  2. git add / git commit -m "" / git push
  3. update the file /docker-compose/Dockerfile/.env with the next version.
  4. run /docker-compose/Dockerfile/docker-build.sh ; A docker-image is created
  5. test the docker-image locally by running docker-compose.local.yml
  6. run docker push*
  7. Production ...

*(2020-04-15),OBS: currently pushed to inkimar's account as in docker push inkimar/shiny:vx.y.z

Dockerfile

using the 'master'-branch

the dockerfile fetches the code from github.com-repo (Naturhistoriska/swedishbirdrecoveries)

  1. RUN sudo su - -c "R -e \"devtools::install_github('Naturhistoriska/swedishbirdrecoveries')\""

using a different branch ?

  1. RUN sudo su - -c "R -e "devtools::install_github('Naturhistoriska/swedishbirdrecoveries', ref = 'branchname')""`

ie. -> ref = 'dev'