-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_shinyproxy.sh
37 lines (33 loc) · 1012 Bytes
/
run_shinyproxy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
bash ./chown_docker_sock.sh
# echo "Set authentication: simple (instead of keycloak) in application.yml"
set -o allexport;
source ./.Renviron
if [[ "$R_CONFIG_ACTIVE" = "keycloak_production" ]]
then
ln -sf ./inst/Renviron_production ./.env
source ./inst/Renviron_production
else
ln -sf ./inst/Renviron_devel ./.env
source ./inst/Renviron_devel
fi
set +o allexport
if [[ "$R_CONFIG_ACTIVE" == *"keycloak"* ]]
then
echo "R_CONFIG_ACTIVE is set to ${R_CONFIG_ACTIVE} in .Renviron"
echo "You cannot use R_CONFIG_ACTIVE with keycloak in this script"
exit 1
fi
#docker compose down --remove-orphans
docker compose down
#docker rm -f anomanor
docker build --tag anomanor -f Dockerfile_anomanor \
--build-arg R_CONFIG_ACTIVE \
--build-arg ANOMANOR_DATA \
--build-arg ANOMANOR_ADMIN_USERNAME \
--build-arg ANOMANOR_ADMIN_PASSWORD \
.
# must uncomment this when application.yml has changed
#docker rmi -f shinyproxy
docker-compose up -d shinyproxy
docker logs shinyproxy --follow