File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 123
123
124
124
run-docker-dev :
125
125
@echo " -> Run the Docker compose services in dev mode (hot reload on code changes)"
126
- docker compose -f docker-compose.yml -f docker-compose.dev.yml up
126
+ docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build --watch
127
127
128
128
test :
129
129
@echo " -> Run the test suite"
Original file line number Diff line number Diff line change 1
- # Mount the local scanpipe/ directory in the containers
1
+ # Dev mode, https://docs.docker.com/compose/how-tos/file-watch/
2
2
3
+ # Mount the local scanpipe/ directory in the containers
3
4
# This can be used to refresh fixtures from the docker container:
4
5
# $ docker compose -f docker-compose.yml -f docker-compose.dev.yml up
5
6
# $ docker compose -f docker-compose.yml -f docker-compose.dev.yml run --rm web bash
@@ -15,5 +16,8 @@ services:
15
16
worker :
16
17
env_file :
17
18
- docker.dev.env
18
- volumes :
19
- - ./scanpipe:/opt/scancodeio/scanpipe
19
+ develop :
20
+ watch :
21
+ - action : sync+restart
22
+ path : ./scanpipe
23
+ target : /opt/scancodeio/scanpipe
Original file line number Diff line number Diff line change @@ -229,7 +229,12 @@ Supported Platforms
229
229
#. **macOS ** 10.14 and up
230
230
231
231
.. warning ::
232
- On **Windows ** ScanCode.io can **only ** be :ref: `run_with_docker `.
232
+ On **Windows ** ScanCode.io can **only ** be :ref: `run_with_docker `.
233
+ Alternatively, you can run a local checkout with the Docker compose stack using the
234
+ dedicated command::
235
+
236
+ make run-docker-dev
237
+
233
238
234
239
Pre-installation Checklist
235
240
^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments