-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Remove testing/environments (#5035) * Remove testing/environments * docker-compose.yml: define services locally We only use the snapshot services, and we customise the services heavily; let's just define them in our own docker-compose.yml and drop the dependency on testing/environments. * Make target to check docker images are up to date `make check-docker-compose` checks if the images in docker-compose.yml are up to date with the most recent snapshot version for the current branch. * docker-compose.yml: wait for yellow status Change the Elasticsearch healthcheck to wait for the status to become yellow, rather than green. Yellow means primaries are assigned, but one or more replicas are not. We don't care about replicas in system tests. (cherry picked from commit 70911de) # Conflicts: # testing/environments/docker/elasticsearch_kerberos/Dockerfile # testing/environments/latest.yml # testing/environments/snapshot-oss.yml # testing/environments/snapshot.yml * Delete testing/environments directory * Update image versions in docker-compose.yml Co-authored-by: Andrew Wilkins <[email protected]>
- Loading branch information
1 parent
7d3c34f
commit 99fabf0
Showing
47 changed files
with
66 additions
and
1,051 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# This checks that image versions defined in docker-compose.yml are | ||
# up to date for the given branch name (master, 7.x, 7.13, etc.) | ||
# | ||
# Example usage: ./check_docker_compose.sh 7.x | ||
set -e | ||
|
||
SDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
BRANCH=$* | ||
LATEST_SNAPSHOT_VERSION=$($SDIR/latest_snapshot_version.py $BRANCH) | ||
|
||
# Check docker.elastic.co images listed in docker-compose.yml are up to date. | ||
# Ignore any images that don't end with "-SNAPSHOT", such as package-registry. | ||
IMAGES=$(grep 'image: docker.elastic.co.*-SNAPSHOT' $SDIR/../docker-compose.yml | sed 's/.*image: \(.*\)/\1/') | ||
for IMAGE in $IMAGES; do | ||
IMAGE_TAG=$(echo "$IMAGE" | cut -d: -f2) | ||
if [ "$IMAGE_TAG" = "$LATEST_SNAPSHOT_VERSION" ]; then | ||
printf "docker-compose.yml: image %s up to date (latest '%s' snapshot version %s)\n" "$IMAGE" "$BRANCH" "$LATEST_SNAPSHOT_VERSION" | ||
else | ||
printf "docker-compose.yml: image %s is out of date (latest '%s' snapshot version is %s)\n" "$IMAGE" "$BRANCH" "$LATEST_SNAPSHOT_VERSION" | ||
exit 1 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env python3 | ||
# | ||
# Find the latest snapshot version for the specified branch. | ||
# | ||
# Example usage: ./latest_snapshot_version.py 7.x | ||
|
||
import argparse | ||
import requests | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('branch', type=str) | ||
args = parser.parse_args() | ||
|
||
r = requests.get('https://snapshots.elastic.co/latest/{}.json'.format(args.branch)) | ||
r.raise_for_status() | ||
print(r.json()['version']) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
testing/environments/docker/elasticsearch/kerberos/init.sh
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
testing/environments/docker/elasticsearch/kerberos/installkdc.sh
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.