This repository hosts the data preloaded in the
deepset/elasticsearch-countries-and-capitals
Docker image, recovered using
elasticsearch-dump.
The name of the Elasticsearch index for the above container is document
.
As a prerequisite step, download the Node.js LTS v16.16.0 Linux binaries into the local directory, the Docker context:
$ wget https://nodejs.org/dist/v16.16.0/node-v16.16.0-linux-x64.tar.xz
Why do this? To take advantage of
xz
decompression thatADD
does automatically for local files. Alternatively, this could be handled by chainingcurl
andtar
in the Dockerfile, but that requiresxz
be in the image. This approach may ultimately be preferred, but to keep the image size small, would require a multi-stage build.
Run docker build and tag appropriately:
$ docker build -t <tag> .