noahsettersten commited on
Commit
dbd30a5
1 Parent(s): 4b23ad5

docs: Describe volume setup for local Docker builds

Browse files
Files changed (1) hide show
  1. README.md +6 -2
README.md CHANGED
@@ -32,8 +32,12 @@ To build the code vectors for the ICD-9 codelist for the deployed environment:
32
 
33
  ## Run in Docker
34
 
35
- 1. Build the image with: `docker build . -t headwayio/medical_transcription`
36
- 2. Run a container with: `docker run --env-file ./.env -p 4000:4000 headwayio/medical_transcription`
 
 
 
 
37
 
38
  ## Learn more
39
 
 
32
 
33
  ## Run in Docker
34
 
35
+ 1. Create a local volume: `docker volume create ml-data`
36
+ 2. Ensure the volume is writeable: `docker run --rm -v ml-data:/data busybox /bin/sh -c 'touch /data/.initialized && chmod 1777 /data'`. More background:
37
+ - What the initial `1` for `chmod` means: https://www.linuxnix.com/sticky-bit-set-linux/
38
+ - How to update the permissions of a mounted volume: https://serverfault.com/a/984599
39
+ 3. Build the image with: `docker build . -t headwayio/medical_transcription`
40
+ 4. Run a container with: `docker run --env-file ./.env -p 4000:4000 headwayio/medical_transcription`
41
 
42
  ## Learn more
43