Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Need to shutdown everything?

NOTE: While this shuts down the Docker containers, all the data/files/user accounts you created will be retained (and will appear the next time to start the containers)

Code Block
# From either the "DSpace" or "dspace-angular" folder
docker-compose -p d7 down

...

Code Block
# Checkout the main code
git checkout main

# Pull down any latest changes
git pull

# Rebuild/restart the frontend or backend
# For frontend: docker-compose -p d7 -f docker/docker-compose.yml up -d --build
# For backend: docker-compose -p d7 up -d --build

Need to remove everything from your machine?

NOTE: This removes all Docker containers from your system, including all data created in those containers.  After running this, you delete everything.  So, if you want to do future testing, you'd have to reinstall both the frontend & backend (using the instructions above) from scratch.

Code Block
# First, shutdown everything that's running in Docker
docker stop $(docker ps -a -q)

# Now, delete all Docker containers from your machine
docker rm $(docker ps -a -q)

# Finally, remove all Docker volumes (data) from your machine
docker volume rm $(docker volume ls -q)