Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Commit db6a458

Browse files
author
Toby McLaughlin
committed
Add "from-snapshot" Make target
1 parent a7114d4 commit db6a458

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ build/elasticsearch/Dockerfile
88
build/elasticsearch/Dockerfile-*
99
build/elasticsearch/elasticsearch*.tar.gz
1010
tests/docker-compose*.yml
11+
/snapshots

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,26 @@ build-from-local-artifacts: venv dockerfile docker-compose
112112
)
113113
docker kill elasticsearch-docker-artifact-server
114114

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+
115135
# Push the images to the dedicated push endpoint at "push.docker.elastic.co"
116136
push: test
117137
$(foreach FLAVOR, $(IMAGE_FLAVORS), \

0 commit comments

Comments
 (0)