#!/usr/bin/env bash

# apk --no-cache add openjdk11 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.6.1-linux-x86_64.tar.gz
# tar -xzf elasticsearch-8.6.1-linux-x86_64.tar.gz
# adduser elasticsearch -D
# chown -R elasticsearch elasticsearch-8.6.1
# echo discovery.type: single-node > elasticsearch-8.6.1/config/elasticsearch.yml
# echo cluster.routing.allocation.disk.threshold_enabled: false >> elasticsearch-8.6.1/config/elasticsearch.yml
# echo network.host: 0.0.0.0 >> elasticsearch-8.6.1/config/elasticsearch.yml
# echo node.ml: false >> elasticsearch-8.6.1/config/elasticsearch.yml
# echo xpack.ml.enabled: false >> elasticsearch-8.6.1/config/elasticsearch.yml
# apk add libc6-compat
# apk add supervisor