-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2510f5
commit 9bcf609
Showing
4 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM openanalytics/shinyproxy:3.1.1 | ||
|
||
COPY application.yml /opt/shinyproxy/application.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
proxy: | ||
title: imongrproxy | ||
logo-url: https://raw.githubusercontent.com/mong/imongr/main/pkgdown/favicon/apple-touch-icon-152x152.png | ||
favicon-path: /opt/shinyproxy/favicon.ico | ||
hide-navbar: true | ||
landing-page: /app_direct/imongr | ||
port: 8080 | ||
container-wait-time: 20000 | ||
docker: | ||
internal-networking: true | ||
image-pull-policy: Always | ||
heartbeat-rate: 10000 | ||
heartbeat-timeout: 60000 | ||
authentication: openid | ||
admin-groups: manager | ||
openid: | ||
auth-url: https://#-imongr.skde.org/oauth2/authorize | ||
token-url: https://#-imongr.skde.org/oauth2/token | ||
jwks-url: https://cognito-idp.eu-west-1.amazonaws.com/eu-west-1_ltXTLvLq6/.well-known/jwks.json | ||
client-id: ${OPENID_CLIENT_ID} | ||
client-secret: ${OPENID_CLIENT_SECRET} | ||
roles-claim: cognito:groups | ||
logout-url: https://#-imongr.skde.org/logout?client_id=${OPENID_CLIENT_ID}&logout_uri=https://imongr-test-hrhcfabjese9dbdd.a03.azurefd.net/logout-success | ||
specs: | ||
- id: imongr | ||
display-name: imongr | ||
container-cmd: ["R", "-e", "options(shiny.port=3838,shiny.host='0.0.0.0'); imongr::run_app()"] | ||
container-image: hnskde/imongr:${APPLICATION_IMAGE_TAG} | ||
container-network: mongr_net | ||
container-env: | ||
IMONGR_DB_HOST: ${IMONGR_DB_HOST} | ||
IMONGR_DB_HOST_QA: ${IMONGR_DB_HOST} | ||
IMONGR_DB_HOST_VERIFY: ${IMONGR_DB_HOST} | ||
IMONGR_DB_NAME: ${IMONGR_DB_NAME} | ||
IMONGR_DB_USER: ${IMONGR_DB_USER} | ||
IMONGR_DB_PASS: ${IMONGR_DB_PASS} | ||
IMONGR_ADMINER_URL: ${IMONGR_ADMINER_URL} | ||
distribution_id: E2ANX0NUJHAHCF | ||
container-log-path: /opt/shinyproxy/logs/container-logs | ||
server: | ||
useForwardHeaders: true | ||
forward-headers-strategy: native | ||
servlet.session.timeout: 12200 | ||
spring: | ||
servlet: | ||
multipart: | ||
max-file-size: 90MB | ||
max-request-size: 100MB | ||
logging: | ||
file: | ||
name: /opt/shinyproxy/logs/shinyproxy.log | ||
max-size: 1MB | ||
total-size-cap: 10MB | ||
level: INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
services: | ||
shinyproxy: | ||
build: . | ||
restart: unless-stopped | ||
container_name: shinyproxyazure | ||
environment: | ||
IMONGR_DB_HOST: ${IMONGR_DB_HOST} | ||
IMONGR_DB_NAME: ${IMONGR_DB_NAME} | ||
IMONGR_DB_USER: ${IMONGR_DB_USER} | ||
IMONGR_DB_PASS: ${IMONGR_DB_PASS} | ||
IMONGR_ADMINER_URL: ${IMONGR_ADMINER_URL} | ||
OPENID_CLIENT_ID: ${OPENID_CLIENT_ID} | ||
OPENID_CLIENT_SECRET: ${OPENID_CLIENT_SECRET} | ||
distribution_id: ${distribution_id} | ||
APPLICATION_IMAGE_TAG: ${APPLICATION_IMAGE_TAG} | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- /var/log/shinyproxy/:/opt/shinyproxy/logs/ | ||
ports: | ||
- 8080:8080 | ||
networks: | ||
- mongr_net | ||
logging: | ||
driver: json-file | ||
networks: | ||
mongr_net: | ||
name: mongr_net | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Har lagt til azureuser i docker | ||
# sudo usermod -aG docker azureuser | ||
|
||
# Har lagt inn tillatelse til docker.sock i /etc/systemd/system/docker.service.d/override.conf | ||
# [Service] | ||
# ExecStart= | ||
# ExecStart=/usr/bin/dockerd -D -H tcp://127.0.0.1:2375 -H unix:// | ||
# ExecStartPost=/bin/sh -c 'chown azureuser:docker /run/docker.sock' | ||
# | ||
# | ||
|
||
# Har lagt inn log-directories | ||
#sudo mkdir -p /var/log/shinyproxy | ||
#sudo chown -R azureuser:docker /var/log/shinyproxy/ | ||
#sudo chmod -R 755 /var/log/shinyproxy/ | ||
#sudo mkdir -p /var/log/shinyproxy/container-logs | ||
#sudo chown -R azureuser:shinyproxy /var/log/shinyproxy/container-logs | ||
#sudo chmod -R 755 /var/log/shinyproxy/container-logs | ||
|
||
# Automatisk sletting av gamle container-logger gjøres med crontab (crontab -e) | ||
# 0 0 * * * /usr/bin/find /var/log/shinyproxy/container-logs -name "*.log" -type f -mtime +7 -exec rm -f {} \; | ||
|
||
docker-compose down | ||
docker-compose up --build -d | ||
|