28
loading...
This website collects cookies to deliver better user experience
root
(e.g. on DigitalOcean) or ubuntu
(e.g. onssh
keypair configured for$HOST
environment variable:export HOST="159.203.63.9"
ssh root@$HOST
apt-get -y update
apt-get -y upgrade
apt-get -yq install \
default-jre \
default-jdk \
docker \
docker-compose
java -version
should returnopenjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)
/etc/systemd/system/docker.service.d/override.conf
:mkdir /etc/systemd/system/docker.service.d
touch /etc/systemd/system/docker.service.d/override.conf
nano
or vim
):[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H unix:// -D -H tcp://127.0.0.1:2375
sudo systemctl daemon-reload
sudo systemctl restart docker
sudo systemctl enable docker
sudo service docker status
:● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/docker.service.d
└─override.conf
Active: active (running) since Wed 2021-07-21 03:55:26 UTC; 36s ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 18881 (dockerd)
Tasks: 9
Memory: 39.6M
CGroup: /system.slice/docker.service
└─18881 /usr/bin/dockerd -H unix:// -D -H tcp://127.0.0.1:2375
export VERSION="2.5.0"
wget https://www.shinyproxy.io/downloads/shinyproxy_${VERSION}_amd64.deb
apt install ./shinyproxy_${VERSION}_amd64.deb
rm shinyproxy_${VERSION}_amd64.deb
application.yml
in the /etc/shinyproxy
directory. Let'stouch /etc/shinyproxy/application.yml
proxy:
title: ShinyProxy
# logo-url: https://link/to/your/logo.png
landing-page: /
favicon-path: favicon.ico
heartbeat-rate: 10000
heartbeat-timeout: 60000
port: 8080
authentication: simple
admin-groups: admins
# Example: 'simple' authentication configuration
users:
- name: admin
password: password
groups: admins
- name: user
password: password
groups: users
# Docker configuration
docker:
cert-path: /home/none
url: http://localhost:2375
port-range-start: 20000
specs:
- id: 01_hello
display-name: Hello Shiny App
description: A simple reactive histogram
container-cmd: ["R", "-e", "shiny::runApp('/home/app')"]
container-image: registry.gitlab.com/analythium/shinyproxy-hello/hello:latest
logo-url: https://github.com/analythium/shinyproxy-1-click/raw/master/digitalocean/images/app-hist.png
access-groups: [admins, users]
- id: 02_hello
display-name: Demo Shiny App
description: App with sliders and large file upload
container-cmd: ["R", "-e", "shiny::runApp('/home/app')"]
container-image: analythium/shinyproxy-demo:latest
logo-url: https://github.com/analythium/shinyproxy-1-click/raw/master/digitalocean/images/app-dots.png
access-groups: [admins]
logging:
file:
shinyproxy.log
docker pull registry.gitlab.com/analythium/shinyproxy-hello/hello:latest
docker pull analythium/shinyproxy-demo:latest
service shinyproxy restart
service shinyproxy status
:● shinyproxy.service - ShinyProxy
Loaded: loaded (/etc/systemd/system/shinyproxy.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-07-21 04:22:46 UTC; 10s ago
Main PID: 19552 (java)
Tasks: 12 (limit: 2344)
Memory: 118.9M
CGroup: /system.slice/shinyproxy.service
└─19552 /usr/bin/java -jar /opt/shinyproxy/shinyproxy.jar
http://$HOST:8080
. Visit this28