From a85ca30e74e7225bfe8bfb2c9e927db29274b6c0 Mon Sep 17 00:00:00 2001 From: bry-c Date: Wed, 1 Jul 2020 18:23:51 +0900 Subject: [PATCH] Delete setup.txt and fix DEVELOPMENT.md sequence --- DEVELOPMENT.md | 10 +++++----- docker/dev/setup.txt | 19 ------------------- 2 files changed, 5 insertions(+), 24 deletions(-) delete mode 100644 docker/dev/setup.txt diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 32aa78c1..8abd48a7 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -6,13 +6,13 @@ You should have docker installed in your system, if not click [here](https://doc 1. Go to diagrams root directory. -1. Build the docker image. +2. Build the docker image. ```shell docker build --tag diagrams:1.0 -f ./docker/dev/Dockerfile . ``` -1. Create the container, run in background and mount the project source code. +3. Create the container, run in background and mount the project source code. ```shell docker run -d \ @@ -22,16 +22,16 @@ You should have docker installed in your system, if not click [here](https://doc diagrams:1.0 ``` -1. Run unit tests in the host using the container to confirm that it's working. +4. Run unit tests in the host using the container to confirm that it's working. ```shell docker exec diagrams python -m unittest tests/*.py -v ``` -1. Run the bash script `autogen.sh` to test. +5. Run the bash script `autogen.sh` to test. ```shell docker exec diagrams ./autogen.sh ``` -1. If the unit tests and the bash script `autogen.sh` is working correctly, then your system is now ready for development. \ No newline at end of file +6. If the unit tests and the bash script `autogen.sh` is working correctly, then your system is now ready for development. \ No newline at end of file diff --git a/docker/dev/setup.txt b/docker/dev/setup.txt deleted file mode 100644 index 08bea4bd..00000000 --- a/docker/dev/setup.txt +++ /dev/null @@ -1,19 +0,0 @@ -Docker local development setup. - -1. Go to diagrams project directory. - -2. Build the docker image: -docker build --tag diagrams:1.0 -f ./docker/dev/Dockerfile . - -3. Run the container in background and mount the project source: -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: -docker exec diagrams python -m unittest tests/*.py -v - -5. Run autogen.sh: -docker exec diagrams ./autogen.sh