Skip to content

Commit 358dda4

Browse files
TheDahvkevgliss
andauthored
Fix Docker build directory visibility (Netflix#37)
* Fix Docker build directory visibility The project Dockerfile lives in a `./docker` directory, but references files hosted in the root directory, namely: - `.nvmrc` - `setup.py` Dockerfiles can only reference files in the same folder as the build context. This results in build errors reported in Netflix/dispatch-docker#2 and initially addressed in Netflix/dispatch-docker#1 ``` ERROR: Service 'web' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder448268992/.nvmrc: no such file or directory ``` This is a simple fix to move the Dockerfile into a reasonable scope via symlink. However, open source contributors cannot build the image locally since the build steps appear rely on access to resources on Netflix internal network. * Update installation.md Co-authored-by: kevgliss <[email protected]>
1 parent 274af2c commit 358dda4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker/Dockerfile

docs/installation.md

+13
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ Dispatch relies on multiple services to work, which are all orchestrated by `Doc
1010
- At least 2400MB memory
1111
- 2 CPU Cores
1212

13+
## Building a Docker Image
14+
15+
The Netflix team builds Docker images to run Dispatch. To run locally, run the
16+
following from the project root:
17+
18+
```
19+
docker build -t docker-local .
20+
```
21+
22+
This is only useful for local development purposes, as you should use the
23+
published Docker image described in the next section.
24+
25+
1326
## Installing Dispatch Server
1427

1528
We strongly recommend using Docker, for installing Dispatch and all it's services. If you need to to something custom, you can use this repository as the basis of your setup. If you do not wish to use the Docker images we provide, you can still find Dispatch on PyPI. However, we don't recommend that method. You'll need to work your way back from the main Dispatch image. It is not too hard, but you are likely to spend a lot more time and hit some bumps.

0 commit comments

Comments
 (0)