mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-29 12:30:07 +00:00

* Make docker files easier to use during development. During development it quite nice to have docker work with locally built code. This allows you to launch all services very quickly, with your changes, and optionally with debugging support. Changes made to docker files: - Removed all redundant docker-compose files. We now have 1 giant file, and smaller files to use as overrides. - Remove redundant README files that provided little information. - Rename docker/<dir> to match the service name in the docker-compose file for clarity. - Move environment variables to .env files. We only provide dev / the default environment for quickstart. - Add debug options to docker files using multistage build to build minimal images with the idea that built files will be mounted instead. - Add a docker/dev.sh script + compose file to easily use the dev override images (separate tag; images never published; uses debug docker files; mounts binaries to image). - Added docs/docker documentation for this.
14 lines
648 B
Docker
14 lines
648 B
Docker
# This "container" is a workaround to pre-create search indices
|
|
FROM jwilder/dockerize:0.6.1
|
|
|
|
RUN apk add --no-cache curl
|
|
|
|
COPY corpuser-index-config.json dataprocess-index-config.json dataset-index-config.json /
|
|
|
|
CMD dockerize \
|
|
-wait http://$ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT \
|
|
-timeout 120s \
|
|
curl -XPUT $ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT/corpuserinfodocument --data @corpuser-index-config.json && \
|
|
curl -XPUT $ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT/dataprocessdocument --data @dataprocess-index-config.json && \
|
|
curl -XPUT $ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT/datasetdocument --data @dataset-index-config.json
|