Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

938 B

Development Guide

Docker local development setup

You should have docker installed in your system, if not click here.

  1. Go to diagrams root directory.

  2. Build the docker image.

    docker build --tag diagrams:1.0 -f ./docker/dev/Dockerfile .
    
  3. Create the container, run in background and mount the project source code.

    docker run -d \
    -it \
    --name diagrams \
    --mount type=bind,source="$(pwd)",target=/usr/src/diagrams \
    diagrams:1.0
    
  4. Run unit tests in the host using the container to confirm that it’s working.

    docker exec diagrams python -m unittest tests/*.py -v
    
  5. Run the bash script autogen.sh to test.

    docker exec diagrams ./autogen.sh
    
  6. If the unit tests and the bash script autogen.sh is working correctly, then your system is now ready for development.