2020-06-08 13:37:14 -07:00
|
|
|
# This "container" is a workaround to pre-create search indices
|
|
|
|
FROM jwilder/dockerize:0.6.1
|
2019-09-12 19:04:29 -07:00
|
|
|
|
2020-06-08 13:37:14 -07:00
|
|
|
RUN apk add --no-cache curl
|
2019-09-12 19:04:29 -07:00
|
|
|
|
2020-11-23 09:25:58 -08:00
|
|
|
COPY chart-index-config.json corpuser-index-config.json dashboard-index-config.json dataprocess-index-config.json dataset-index-config.json /
|
2019-09-12 19:04:29 -07:00
|
|
|
|
2020-06-08 13:37:14 -07:00
|
|
|
CMD dockerize \
|
|
|
|
-wait http://$ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT \
|
|
|
|
-timeout 120s \
|
2020-11-23 09:25:58 -08:00
|
|
|
curl -XPUT $ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT/chartdocument --data @chart-index-config.json && \
|
2020-06-08 13:37:14 -07:00
|
|
|
curl -XPUT $ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT/corpuserinfodocument --data @corpuser-index-config.json && \
|
2020-11-23 09:25:58 -08:00
|
|
|
curl -XPUT $ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT/dashboarddocument --data @dashboard-index-config.json && \
|
2020-06-09 17:42:08 -05:00
|
|
|
curl -XPUT $ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT/dataprocessdocument --data @dataprocess-index-config.json && \
|
|
|
|
curl -XPUT $ELASTICSEARCH_HOST:$ELASTICSEARCH_PORT/datasetdocument --data @dataset-index-config.json
|