This repository was archived by the owner on Apr 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ build/elasticsearch/Dockerfile
8
8
build /elasticsearch /Dockerfile- *
9
9
build /elasticsearch /elasticsearch * .tar.gz
10
10
tests /docker-compose * .yml
11
+ /snapshots
Original file line number Diff line number Diff line change @@ -112,6 +112,26 @@ build-from-local-artifacts: venv dockerfile docker-compose
112
112
)
113
113
docker kill elasticsearch-docker-artifact-server
114
114
115
+ # Build images from the latest snapshots on snapshots.elastic.co
116
+ from-snapshot :
117
+ rm -rf snapshots
118
+
119
+ mkdir -p snapshots/elasticsearch/distribution/tar/build/distributions
120
+ (cd snapshots/elasticsearch/distribution/tar/build/distributions && \
121
+ wget https://snapshots.elastic.co/downloads/elasticsearch/elasticsearch-$(ELASTIC_VERSION)-SNAPSHOT.tar.gz)
122
+
123
+ mkdir -p snapshots/x-pack-elasticsearch/plugin/build/distributions
124
+ (cd snapshots/x-pack-elasticsearch/plugin/build/distributions && \
125
+ wget https://snapshots.elastic.co/downloads/elasticsearch-plugins/x-pack/x-pack-$(ELASTIC_VERSION)-SNAPSHOT.zip)
126
+
127
+ for plugin in ingest-user-agent ingest-geoip; do \
128
+ mkdir -p snapshots/elasticsearch/plugins/$$plugin/build/distributions; \
129
+ (cd snapshots/elasticsearch/plugins/$$plugin/build/distributions && \
130
+ wget https://snapshots.elastic.co/downloads/elasticsearch-plugins/$$plugin/$$plugin-$(ELASTIC_VERSION)-SNAPSHOT.zip); \
131
+ done
132
+
133
+ ARTIFACTS_DIR=$$PWD/snapshots make release-manager-snapshot
134
+
115
135
# Push the images to the dedicated push endpoint at "push.docker.elastic.co"
116
136
push : test
117
137
$(foreach FLAVOR, $(IMAGE_FLAVORS ) , \
You can’t perform that action at this time.
0 commit comments