Run a Docker container - identify transdiagnostic latent factors

Reproducibility Workshop for Cognitive Science Orientation Bootcamp

Docker file

Instructions

These are the steps I used to build the docker image.

  1. Build the Docker image:
  2. docker build . -t nghuixin/tscim_club_feb2024
  3. Push the Docker image:
  4. docker push nghuixin/tscim_club_feb2024

To run the docker image, begin with this step:

  1. Pull the Docker image:
  2. docker pull nghuixin/tscim_club_feb2024:1.0
  3. Run the Docker container (no mounted volumes):
  4. docker run --rm -p 8787:8787 -e DISABLE_AUTH=true nghuixin/tscim_club_feb2024:1.0
  5. Run the Docker container with mounted volumes:
  6. docker run -it -e DISABLE_AUTH=true -p 8787:8787 -v ${pwd}/TSciM_workshop_code.R:/home/rstudio/TSciM_workshop_code.R -v ${pwd}/GillanEtAl_eLife.rds:/home/rstudio/GillanEtAl_eLife.rds nghuixin/tscim_club_feb2024:1.0

Relevant Links

  • Workshop Materials on Google Drive
  • Translational Science Methods Club: Factor Analysis in Psychiatry
  • YouTube Recording of Workshop