Skip to content
Snippets Groups Projects
Commit 9e77a0d5 authored by Hololens Test's avatar Hololens Test
Browse files

Update container codes to work with new repo and vizapp I/O

parent 30d89eb9
No related merge requests found
......@@ -4,7 +4,7 @@
DOCKER_PASSWORD="pD7XKp65JG7DXPbLcZYj"
DOCKER_USERNAME="registry_push"
CONTAINER_NAME="git.biohpc.swmed.edu:5050/biohpc/astrocyte/astroshiny:0.2.0"
CONTAINER_NAME="git.biohpc.swmed.edu:5050/biohpc/astrocyte-container-images/astroshiny:0.5.0"
#Build the dockerfile with the astrocyte_example_wordcount folder as the target.
......
......@@ -8,14 +8,11 @@ HOST_PORT=8123
CONTAINER_NAME="astroshiny:test"
HOST_WORKFLOW_OUTPUT="/vagrant/examples/astrocyte_example_wordcount/workflow/output"
CONTAINER_INPUT_FOLDER="/mnt/workflow_output"
CONTAINER_OUTPUT_FOLDER="/mnt/vizapp_output"
HOST_VIZAPP_OUTPUT="/vagrant/examples/astrocyte_example_wordcount/workflow/vizappOut"
docker container run \
--publish ${HOST_PORT}:${CONTAINER_PORT} \
--mount type=bind,source="${HOST_WORKFLOW_OUTPUT}",target="${CONTAINER_INPUT_FOLDER}" \
--mount type=bind,source="${HOST_VIZAPP_OUTPUT}",target="${CONTAINER_OUTPUT_FOLDER}" \
--env outputDir=${CONTAINER_INPUT_FOLDER} \
${CONTAINER_NAME}
......
......@@ -8,8 +8,6 @@ HOST_PORT=8123
CONTAINER_NAME="astroshiny.simg"
HOST_WORKFLOW_OUTPUT="/vagrant/examples/astrocyte_example_wordcount/workflow/output"
CONTAINER_INPUT_FOLDER="/mnt/workflow_output"
CONTAINER_OUTPUT_FOLDER="/mnt/vizapp_output"
HOST_VIZAPP_OUTPUT="/vagrant/examples/astrocyte_example_wordcount/workflow/vizappOut"
export outputDir=${CONTAINER_INPUT_FOLDER}
......@@ -22,6 +20,5 @@ export outputDir=${CONTAINER_INPUT_FOLDER}
singularity exec \
--bind "${HOST_WORKFLOW_OUTPUT}":"${CONTAINER_INPUT_FOLDER}" \
--bind "${HOST_VIZAPP_OUTPUT}":"${CONTAINER_OUTPUT_FOLDER}" \
${CONTAINER_NAME} \
R -e "shiny::runApp('/app', host = '0.0.0.0', port = 8123)"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment