@@ -66,29 +66,25 @@ until [ $(curl --write-out '%{http_code}' --silent --output /dev/null ${SERVER_
66
66
done ;
67
67
echo " "
68
68
69
+ # setup nextcloud defaults
70
+ echo " Remove default nextcloud files/apps and set up external storage..."
69
71
docker exec -u www-data $FILE_SERVER_CONTAINER_NAME php occ app:install files_external
70
72
docker exec -u www-data $FILE_SERVER_CONTAINER_NAME php occ app:enable files_external
71
73
docker exec -u www-data $FILE_SERVER_CONTAINER_NAME php occ files_external:create -c datadir=/var/www/data " GnomData" ' local' null::null
72
74
docker exec -u www-data $FILE_SERVER_CONTAINER_NAME php occ files_external:create -c datadir=/var/www/import " GnomImport" ' local' null::null
73
75
docker exec -u www-data $FILE_SERVER_CONTAINER_NAME php occ app:disable password_policy
74
76
docker exec -u www-data $FILE_SERVER_CONTAINER_NAME php occ app:disable photos
75
- docker exec -u www-data $FILE_SERVER_CONTAINER_NAME php occ app:install announcementcenter
76
-
77
- # setup nextcloud defaults
78
- echo " Remove default nextcloud files and setup group folders..."
79
77
docker exec $FILE_SERVER_CONTAINER_NAME bash -c " rm -r /var/www/html/core/skeleton/*"
80
78
docker exec $FILE_SERVER_CONTAINER_NAME bash -c " rm -r /var/www/html/data/$INITIAL_USER_USERNAME /files/*"
81
79
82
80
# reindex
83
81
echo " Reindex nextcloud directories..."
84
82
docker exec -u www-data $FILE_SERVER_CONTAINER_NAME php occ files:scan --all
85
83
86
- docker exec -it $FILE_SERVER_CONTAINER_NAME python3 /usr/local/j_listener/main.py &
87
-
88
84
# ============================================ #
89
85
90
86
# # Reactapp
91
- echo " Build reactapp docker container and install dependencies..."
87
+ echo " Build react docker container and install dependencies..."
92
88
# envs
93
89
echo " REACT_APP_API_ADRESS=http://${SERVER_ADRESS} :${API_PORT} " > ./react-frontend/.env
94
90
echo " REACT_APP_FILE_SERVER_ADRESS=http://${SERVER_ADRESS} :${FILE_SERVER_PORT} " >> ./react-frontend/.env
@@ -127,17 +123,9 @@ cd ./jbrowse
127
123
docker build -t gnom/jbrowse .
128
124
echo " RABBIT_CONTAINER_NAME=${RABBIT_CONTAINER_NAME} " > .env
129
125
docker run --name $JBROWSE_CONTAINER_NAME --network $DOCKER_NETWORK_NAME --restart on-failure:10 -d -p 8082:80 -v ${DATA_DIR} /taxa:/flask-backend/data/storage/taxa --env-file .env gnom/jbrowse
130
- docker
exec $JBROWSE_CONTAINER_NAME bash -c
" npm i -g @jbrowse/[email protected] "
131
126
docker exec $JBROWSE_CONTAINER_NAME bash -c " jbrowse create -f /usr/local/apache2/htdocs"
132
127
cd ..
133
128
134
- # setup missing directories
135
- docker exec $API_CONTAINER_NAME bash -c " mkdir -p /flask-backend/data/storage/assemblies"
136
- docker exec $API_CONTAINER_NAME bash -c " mkdir -p /flask-backend/data/storage/taxa/taxdmp"
137
- docker exec $API_CONTAINER_NAME bash -c " mkdir -p /flask-backend/data/import"
138
- docker exec $API_CONTAINER_NAME bash -c " touch /flask-backend/data/storage/taxa/tree.json"
139
- docker exec $API_CONTAINER_NAME bash -c " echo '{}' > /flask-backend/data/storage/taxa/tree.json"
140
-
141
129
# download taxa information from NCBI
142
130
echo " Download taxa from NCBI..."
143
131
docker exec $API_CONTAINER_NAME bash -c " wget -q https://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdmp.zip -P /flask-backend/data/storage/taxa && unzip -qq /flask-backend/data/storage/taxa/taxdmp.zip -d /flask-backend/data/storage/taxa/taxdmp"
0 commit comments