https://github.com/tylerlittlefield/shiny-server-arm
:whale: Run shiny-server on a Raspberry Pi
https://github.com/tylerlittlefield/shiny-server-arm
arm docker raspberry-pi rstats shiny-server
Last synced: about 1 year ago
JSON representation
:whale: Run shiny-server on a Raspberry Pi
- Host: GitHub
- URL: https://github.com/tylerlittlefield/shiny-server-arm
- Owner: tylerlittlefield
- Created: 2021-01-01T19:44:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-23T00:45:53.000Z (over 5 years ago)
- Last Synced: 2025-04-04T01:32:09.498Z (over 1 year ago)
- Topics: arm, docker, raspberry-pi, rstats, shiny-server
- Language: Dockerfile
- Homepage:
- Size: 98.6 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shiny-server-arm

[](https://hub.docker.com/repository/docker/tylurp/shiny-server-arm)
[](https://hub.docker.com/repository/docker/tylurp/shiny-server-arm)
Run the lines below to get shiny-server running on a Raspberry Pi. Note that the lines assume you have a user `pirate`, so replace that with your preferred user.
```bash
# download docker
curl -sSL https://get.docker.com | sh
# add user to docker group
sudo usermod -aG docker pirate
# create directories to communicate with container
cd ~
mkdir shiny-server
mkdir shiny-server/logs
mkdir shiny-server/conf
mkdir shiny-server/apps
# bind directories
docker volume create --name shiny-apps --opt type=none --opt device=/home/pirate/shiny-server/apps/ --opt o=bind
docker volume create --name shiny-logs --opt type=none --opt device=/home/pirate/shiny-server/logs/ --opt o=bind
docker volume create --name shiny-conf --opt type=none --opt device=/home/pirate/shiny-server/conf/ --opt o=bind
# run the container
docker run \
--detach \
--publish 3838:3838 \
--volume shiny-apps:/srv/shiny-server/ \
--volume shiny-logs:/var/log/shiny-server/ \
--volume shiny-conf:/etc/shiny-server/ \
--name shiny-server \
tylurp/shiny-server-arm
```
## Add apps
Start adding shiny apps with:
```bash
cd ~/shiny-server/apps
git clone
```
Then navigate to `http://:3838/`.
## Acknowledgements
A lot of the Dockerfile is based on existing work, please see [`hvalev/shiny-server-arm-docker`](https://github.com/hvalev/shiny-server-arm-docker).