Skip to content

Ecosystem-Assessments/eDriversApp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eDrivers application

Shiny application to visualize eDrivers platform data.

dev - Local deployment

Local R environment

cd app
Rscript -e "shiny::runApp(port = 5000, host = '0.0.0.0')"

Build and deploy the application within a container

docker build -t edrivers:latest . && docker run -p 5000:5000 -it --rm edrivers:latest

Deployment tested on Docker version 25.0.0

prod - Docker deployment

Requirements

Create google artifacts repository

# Authentication with Google Cloud
gcloud auth login

# setting the project - Lets say PROJECT_ID = someproject-123
gcloud config set project pof-stac-insileco

# Creatng AR
gcloud artifacts repositories create docker-repo --repository-format=docker \
--location=northamerica-northeast1 --description="shiny-docker-prod"

#listing AR
gcloud artifacts repositories list

Publish docker image on Google cloud artifact registry

Send gcloud credentials to docker

gcloud auth configure-docker northamerica-northeast1-docker.pkg.dev

Build and tag docker image for release

docker build --tag=northamerica-northeast1-docker.pkg.dev/pof-stac-insileco/shiny-docker-prod/edrivers:v1.0.0 .

Publish docker image to google cloud artifacts repository

docker push northamerica-northeast1-docker.pkg.dev/pof-stac-insileco/shiny-docker-prod/edrivers:v1.0.0

Packages

No packages published

Languages

  • R 93.0%
  • CSS 5.7%
  • Dockerfile 1.2%
  • Shell 0.1%