This repository contains the Dockerfiles of the Docker images of the ShinyProxy with support for Snowflake SnowPark Container Services backend. This allows you to inspect how our images are build and to build your own image.
The Dockerfile for ShinyProxy on SPCS can be found in the ShinyProxy directory. The same Dockerfile is used for building development, snapshot and production images.
This section describes how to build a Dockerfile of ShinyProxy using a local JAR file of ShinyProxy.
-
build ContainerProxy + ShinyProxy
git clone -b develop https://github.com/damianslee/containerproxy/ ContainerProxy git clone -b develop https://github.com/openanalytics/shinyproxy/ ShinyProxy pushd ContainerProxy mvn package install -DskipTests popd pushd ShinyProxy mvn -U clean package install -DskipTests popd
-
copy the JAR to the location of this repository
git clone https://github.com/openanalytics/shinyproxy-docker/ docker cd docker/ShinyProxy cp ../../ShinyProxy/target/shinyproxy*.jar .
-
build the docker image
docker build --platform linux/amd64 -t shinyproxy-dev --build-arg JAR_LOCATION=shinyproxy-*.jar .
You can also build a Docker image of ShinyProxy using the official snapshot
builds of ShinyProxy. In that case Docker downloads the required JAR file from
our Nexus server. The version information contained in the JAR file always ends
with -SNAPSHOT. Official builds of this image are available at
Docker Hub.
git clone https://github.com/openanalytics/shinyproxy-docker/ docker
cd docker/ShinyProxy
docker build --build-arg NEXUS_REPOSITORY=snapshots -t shinyproxy-snapshot .Finally, you can build a Docker image of ShinyProxy using the official release versions of ShinyProxy. Similar to the snapshot version, Docker downloads the required JAR file from our Nexus server. The version information contained in the JAR file does not have a suffix, indicating a release build. Official builds of this image are available at Docker Hub.
git clone https://github.com/openanalytics/shinyproxy-docker/ docker
cd docker/ShinyProxy
docker build --build-arg NEXUS_REPOSITORY=releases -t shinyproxy .The JAR file will be downloaded from our Nexus server.