Merge pull request #248 from chazu/build-docs

add brief section to readme about building docker images
master
Ilya Pirozhenko 7 years ago committed by GitHub
commit 87702b1614

@ -61,6 +61,37 @@ You can build Docker images by yourself or buy prebuilt Docker images for **$50*
If you want to see how Ambar works w/o installing it, try our [live demo](https://app.ambar.cloud/). No signup required. If you want to see how Ambar works w/o installing it, try our [live demo](https://app.ambar.cloud/). No signup required.
## Building the images yourself
All of the images required to run ambar can be built by the user. In general, each image can be built by navigating into the directory of the component in question, performing any compilation steps required, then building the image like so:
```
# From project root
$ cd FrontEnd
$ docker build . -t <image_name>
```
The resulting image can be referred to by the name specified, and run by the containerization tooling of your choice.
In order to use a local Dockerfile with `docker-compose`, simply change the `image` option to `build`, setting the value to the relative path of the directory containing the dockerfile. Then run `docker-compose build` to build the relevant images. For example:
```
# docker-compose.yml from project root, referencing local dockerfiles
pipeline0:
build: ./Pipeline/
image: chazu/ambar-pipeline
localcrawler:
image: ./LocalCrawler/
```
Note that some of the components require compilation or other build steps be performed _on the host_ before the docker images can be built. For example, `FrontEnd`:
```
# Assuming a suitable version of node.js is installed (docker uses 8.10)
$ npm install
$ npm run compile
```
## FAQ ## FAQ
### Is it open-source? ### Is it open-source?
Yes, it's fully open-source. Yes, it's fully open-source.

Loading…
Cancel
Save