diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml index 27194031b..87777d446 100644 --- a/.github/workflows/nix.yaml +++ b/.github/workflows/nix.yaml @@ -20,7 +20,7 @@ jobs: - name: Runs Elasticsearch uses: "elastic/elastic-github-actions/elasticsearch@master" with: - stack-version: '7.17.5' + stack-version: "7.17.16" - name: Display indexes run: curl -s -I -X GET http://localhost:9200/_cat/indices - name: Build the env diff --git a/CHANGELOG.md b/CHANGELOG.md index cd4b377b3..064b8e008 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file. - [api] The API no longer dumps large decoding error to the stdout. Exceptions from the elastic API are now intercepted and displayed in a nicer format. In a future change, such errors will be indexed for proper debugging. +- [compose] Bumped Elasticsearch to 7.17.16. ### Removed diff --git a/docker-compose.yml b/docker-compose.yml index c9efbdea7..d533e01b8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,7 +47,7 @@ services: retries: 6 test: "curl --silent --fail localhost:9200/_cluster/health || exit 1" timeout: "60s" - image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5 + image: docker.elastic.co/elasticsearch/elasticsearch:7.17.16 restart: unless-stopped ulimits: nofile: diff --git a/k8s/elastic-deployment.yaml b/k8s/elastic-deployment.yaml index b92e11571..9551ca7a8 100644 --- a/k8s/elastic-deployment.yaml +++ b/k8s/elastic-deployment.yaml @@ -28,7 +28,7 @@ spec: value: -Xms512m -Xmx512m - name: discovery.type value: single-node - image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5 + image: docker.elastic.co/elasticsearch/elasticsearch:7.17.16 livenessProbe: httpGet: path: /_cluster/health diff --git a/nix/default.nix b/nix/default.nix index 5138a7eff..e2a9c5f3e 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -93,7 +93,7 @@ in rec { hExtend = haskellExtend; # DB - elk7Version = "7.17.5"; + elk7Version = "7.17.16"; info = pkgs.lib.splitString "-" pkgs.stdenv.hostPlatform.system; arch = pkgs.lib.elemAt info 0; plat = pkgs.lib.elemAt info 1; @@ -103,7 +103,7 @@ in rec { src = pkgs.fetchurl { url = "https://artifacts.elastic.co/downloads/elasticsearch/${name}-${plat}-${arch}.tar.gz"; - sha256 = "ocz3CJFf+diThmocrgSnhWW/fjuRLLyCxwUKl3Cm7WA="; + sha256 = "o0ftRysyy1xp5M9bkKUZaQ2OvAnyHr6zCmoIPY0adZY="; }; }); elasticsearch-home = "~/.local/share/monocle/elasticsearch-home"; @@ -126,6 +126,7 @@ in rec { ${mkHome elasticsearch-home} export ES_HOME=${elasticsearch-home} + rm -Rf $ES_HOME/modules $ES_HOME/plugins mkdir -p $ES_HOME/logs $ES_HOME/data $ES_HOME/modules $ES_HOME/plugins ${pkgs.rsync}/bin/rsync -a ${elasticsearch}/config/ $ES_HOME/config/ ${pkgs.rsync}/bin/rsync -a ${elasticsearch}/modules/ $ES_HOME/modules/ @@ -138,7 +139,7 @@ in rec { # DB Companion kibana = pkgsNonFree.kibana7.overrideAttrs (old: rec { version = elk7Version; - name = "kibana-${version}"; + name = "kibana-7.17.5"; src = pkgs.fetchurl { url = "https://artifacts.elastic.co/downloads/kibana/${name}-${plat}-${arch}.tar.gz";