![]() The package asked for automake version 1.15 specifically, so I had to include the command echo '' > /etc/apk/repositories before adding the system requirements because that branch contains automake v1.15.1. In order to install the httpuv package, I had to install automake, autoconf, m4, and file as well. Based on my review of other Dockerfiles for Shiny, including the one maintained by Rocker, I also added curl-dev, libffi, psmisc, rrdtool, cairo-dev, libxt-dev, and libxml2-dev to the list of dependencies.Ī system-wide installation of the shiny package and its dependencies is also necessary, and the first problem I encountered was the installation of the httpuv package. The packages python2, gcc, g++, git, cmake, and R (base and devel) are the main system requirements for installing Shiny Server from source. I wasn’t sure which dependencies to put under BUILD and which to put under PERSISTENT, so I added them all to a single variable for now. I used Building Shiny Server from Source as a reference to determine which dependencies I’ll install and to write the first version of the installation and post-installation instructions. Shiny Server doesn’t have precompiled installers for Alpine Linux, so I had to build it from source. The latest image with Shiny Server is not available on Docker Hub because it exceeded the time limit for automated builds, so I’ll have to upload it manually. Notes: The Dockerfile I used is available in the velaco/alpine-r repository on GitHub. After two weeks of trial and error, I finally have a container that can start the server and run Shiny apps. The logical choice would have been to pass all tests with R’s base packages before proceeding, but I was a bit impatient and wanted to go through the process of building a Shiny Server as soon as possible. The next step was either to address the fatal errors I found while testing the installation of R or to proceed building an image with Shiny Server. The images are hosted on Docker Hub, velaco/alpine-r repository. In the first article of this series, I built an Alpine-based Docker image with R base packages from Alpine’s native repositories, as well as one image with R compiled from source code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |