Let's say you followed the steps above, and have a running instance of the Research Software Directory. Now it is time to start customizing your Research Software Directory. We have prepared some FAQs for customizations that are common. For example, you can read up on the following topics:
- How do I change the colors?
- How do I change the font?
- How do I change the logo?
- How do I change when data collection scripts run?
- How do I empty the database?
- How do I make changes to the admin interface?
- How do I add properties to the data schema?
It is suggested that you first do one or more of:
Then, learn how to add properties to the schema:
Finally, learn how to empty the database, such that you can replace the sample data with your own:
After making your changes, here's how you get to see them:
-
Go to the terminal where you started
docker-compose
-
Use Ctrl+C to stop the running instance of Research Software Directory
-
Check which docker containers you have with:
docker-compose ps
For example, mine says:
docker-compose ps Name Command State Ports ---------------------------------------------------------------------- rsd-admin sh -c rm -rf /build/* && c ... Exit 0 rsd-authentication /bin/sh -c gunicorn --prel ... Exit 0 rsd-backend /bin/sh -c gunicorn --prel ... Exit 0 rsd-database /mongo.sh --bind_ip 0.0.0.0 Exit 137 rsd-frontend /bin/sh -c sh -c "mkdir -p ... Exit 0 rsd-nginx-ssl /bin/sh -c /start.sh Exit 137 rsd-reverse-proxy /bin/sh -c nginx -g 'daemo ... Exit 137 rsd-harvesting /bin/sh -c crond -d7 -f Exit 137
Use
docker-compose rm
to delete container by their service name, e.g. thersd-frontend
container:docker-compose rm frontend
List all docker images on your system:
docker images
Note that image names consist of the environment variable
COMPOSE_PROJECT_NAME
, followed by/
, followed by the service name. Remove as follows:docker rmi rsd/frontend
-
Make changes to the source code of the service whose container and image you just removed
-
Rebuild containers as necessary, using:
docker-compose build frontend docker-compose up -d frontend