Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.15 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.15 KB

Designsafe-CI Download Service

Prerequisites for local development

Local dev environment setup

  1. Update your /etc/hosts file by adding this line: 127.0.0.1 ds-download.test
  2. Clone the Git repository and cd into it.
  3. Run poetry install to install dependencies locally. If you receive an error about a Python version mismatch, run poetry env use $PATH_TO_PYTHON_3.10_INSTALL.
  4. Build the dev image with docker-compose -f docker-compose.dev.yml build server
  5. Run the server with docker-compose -f docker-compose.dev.yml up
  6. Confirm that the server is running by accessing the test message at https://ds-download.test

Updating dependencies

For simplicity the Dockerfile uses a requirements.txt exported from Poetry. To add a new dependency:

  1. Run poetry add $NEW_DEPENDENCY.
  2. Run poetry export > requirements.txt in the repository root.
  3. Rebuild the dev image with docker-compose -f docker-compose.dev.yml build server