{"id":14067311,"url":"https://github.com/analythium/shiny-correlation","last_synced_at":"2026-01-07T15:58:11.596Z","repository":{"id":108484081,"uuid":"392219734","full_name":"analythium/shiny-correlation","owner":"analythium","description":"Containerized Shiny app with multiple versions","archived":false,"fork":false,"pushed_at":"2022-07-11T20:22:44.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-04T07:37:09.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/analythium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-03T06:50:23.000Z","updated_at":"2023-01-20T15:25:05.000Z","dependencies_parsed_at":"2023-05-22T10:00:16.935Z","dependency_job_id":null,"html_url":"https://github.com/analythium/shiny-correlation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/analythium/shiny-correlation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analythium%2Fshiny-correlation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analythium%2Fshiny-correlation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analythium%2Fshiny-correlation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analythium%2Fshiny-correlation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/analythium","download_url":"https://codeload.github.com/analythium/shiny-correlation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analythium%2Fshiny-correlation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267785800,"owners_count":24144122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:05:31.998Z","updated_at":"2026-01-07T15:58:11.562Z","avatar_url":"https://github.com/analythium.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# Containerized Shiny app with multiple versions\n\n\u003e This repo is used in the blog post: [_Update Existing Shiny Apps in ShinyProxy_](https://hosting.analythium.io/update-existing-shiny-apps-in-shinyproxy/?utm_source=gh\u0026utm_medium=web\u0026utm_campaign=evergreen)\n\n## Version 1\n\nBivariate scatterplot\n\n```bash\n# build\ndocker build -f Dockerfile-v1 -t analythium/correlation:v1 .\n\n# test\ndocker run -p 4000:3838 analythium/correlation:v1\n\n# push\ndocker push analythium/correlation:v1\n```\n\n## Version 2\n\n3D image using RGL\n\n```bash\n# build\ndocker build -f Dockerfile-v2 -t analythium/correlation:v2 .\n\n# test\ndocker run -p 4000:3838 analythium/correlation:v2\n\n# push\ndocker push analythium/correlation:v2\n```\n\n## Tagging exercise\n\n```bash\n# untagged image\ndocker build -f Dockerfile-v1 -t analythium/correlation .\n# :latest tag is added\ndocker image ls\n# build v2\ndocker build -f Dockerfile-v2 -t analythium/correlation:v2 .\n# :latest is still v1\ndocker image ls\n\n# tag the untagged image with :v1\ndocker tag analythium/correlation analythium/correlation:v1\n# now :v1 and :latest are aliases\ndocker image ls\n\n# rebuild untagged (:latest) using v2\ndocker build -f Dockerfile-v2 -t analythium/correlation .\n# tag the new image with :v2\ndocker tag analythium/correlation analythium/correlation:v2\n# now :latest and :v2 are aliases\ndocker image ls\n\n# push images\ndocker push analythium/correlation\ndocker push analythium/correlation:v1\ndocker push analythium/correlation:v2\n\n# pull all images at once\ndocker images |grep -v REPOSITORY|awk '{print $1\":\"$2}'|xargs -L1 docker pull\n```\n\n## Git based update\n\n```bash\ngit clone https://github.com/analythium/shiny-correlation.git\n\ncd shiny-correlation\ngit pull\n\ncp application.yml /etc/shinyproxy\n\ndocker pull analythium/correlation:v1\ndocker pull analythium/correlation:v2\n\nservice shinyproxy restart\n```\n\n## Multiple Shiny apps with Shiny Server\n\nA Dockerfile that uses the `rocker/shiny` parent image to deploy both versions in the same container:\n\n```bash\ndocker build -f Dockerfile-shiny-server -t analythium/correlation:v3 .\n\ndocker run -p 4000:3838 analythium/correlation:v3\n\ndocker push analythium/correlation:v3\n```\n\nThe 2D version (`v1`) will be available at `http://localhost:4000/app2d/`.\nThe 3D version (`v2`) will be available at `http://localhost:4000/app3d/`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanalythium%2Fshiny-correlation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanalythium%2Fshiny-correlation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanalythium%2Fshiny-correlation/lists"}