Skip to content

Commit

Permalink
mem swap
Browse files Browse the repository at this point in the history
  • Loading branch information
lucymcnatt committed Dec 15, 2024
1 parent 70cf51d commit e76a6bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/src/main/resources/init-resources/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ END

# We do not want to recreate a new container, to make sure we preserve the changes that users made with the startup script
# We only want to restart the existing container with the latest environment variables
${DOCKER_COMPOSE} --env-file=/var/variables.env ${COMPLETE_JUPYTER_DOCKER_COMPOSE} up -d --no-recreate --memory ${MEM_LIMIT}
${DOCKER_COMPOSE} --env-file=/var/variables.env ${COMPLETE_JUPYTER_DOCKER_COMPOSE} up -d --no-recreate --memory ${MEM_LIMIT} --memory-swap ${MEM_LIMIT}

# the docker containers need to be restarted or the jupyter container
# will fail to start until the appropriate volume/device exists
Expand Down Expand Up @@ -281,7 +281,7 @@ END

# We do not want to recreate a new container, to make sure we preserve the changes that users made with the startup script
# We only want to restart the existing container with the latest environment variables
${DOCKER_COMPOSE} --env-file=/var/variables.env ${COMPLETE_RSTUDIO_DOCKER_COMPOSE} up -d --no-recreate --memory ${MEM_LIMIT}
${DOCKER_COMPOSE} --env-file=/var/variables.env ${COMPLETE_RSTUDIO_DOCKER_COMPOSE} up -d --no-recreate --memory ${MEM_LIMIT} --memory-swap ${MEM_LIMIT}

# the docker containers need to be restarted or the R container
# will fail to start until the appropriate volume/device exists.
Expand Down

0 comments on commit e76a6bd

Please sign in to comment.