diff --git a/files/scratch/proxer/application.yml b/files/scratch/proxer/application.yml index 2eb11f92074519edaecf4e078d051eae38119120..fa28b56326ba688cdb489e2a2644541f4a553e60 100644 --- a/files/scratch/proxer/application.yml +++ b/files/scratch/proxer/application.yml @@ -6,6 +6,7 @@ proxy: heartbeat-rate: 10000 heartbeat-timeout: 60000 port: 8080 + container-wait-time: 600000 bind-address: 127.0.0.1 authentication: simple admin-groups: scientists @@ -28,10 +29,14 @@ proxy: container-cmd: ["R", "-e", "shinyproxy::run_01_hello()"] container-image: openanalytics/shinyproxy-demo access-groups: [scientists, mathematicians] - - id: 06_tabsets - container-cmd: ["R", "-e", "shinyproxy::run_06_tabsets()"] - container-image: openanalytics/shinyproxy-demo - access-groups: scientists + - id: shinyscreen + container-image: r-r-shinyscreen + display-name: Shinyscreen + port: 7777 + container-volumes: [ "/scratch/proxer/shinyscreen:/scratch" ] + container-cmd: [ "R", "-e", "library(future);future::plan('multisession');topl=Sys.getenv('SHINYPROXY_USERNAME');fpath=file.path('/scratch/projects',topl);dir.create(fpath);shargs=list(host='0.0.0.0',launch.browser=F,port=7777);shinyscreen::app(indir='/scratch/input_data',userdir=fpath,shiny_args=shargs)"] + access-groups: + - scientists logging: file: diff --git a/main.yml b/main.yml index 8186649d5f3bec56aaedd7073452e896ff290647..cf86958535ed5cafc08f18a51eca771061cfb385 100644 --- a/main.yml +++ b/main.yml @@ -134,7 +134,9 @@ src: files/etc/systemd/system/docker.service.d/override.conf dest: /etc/systemd/system/docker.service.d/override.conf mode: '0644' - notify: Restart docker. + notify: + - Reload systemd. + - Restart docker. - name: Copy config file for shinyproxy. ansible.builtin.copy: @@ -151,6 +153,17 @@ mode: '0644' notify: Restart shinyproxy. + - name: Copy shinyproxy docker image. + ansible.builtin.copy: + src: files/scratch/docker-shinyscreen-1.0.7.tar.gz + dest: /scratch/docker-shinyscreen-1.0.7.tar.gz + + - name: Load docker image. + ansible.builtin.shell: + cmd: docker load -i docker-shinyscreen-1.0.7.tar.gz && touch loaded.shinyscreen + creates: loaded.shinyscreen + chdir: /scratch + @@ -167,3 +180,6 @@ ansible.builtin.service: name: shinyproxy state: restarted + - name: Reload systemd. + ansible.builtin.systemd: + daemon_reload: yes