build.sh 399 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. set -e
  3. export VERSION=$(date "+%4Y%m%d%H%M%S")
  4. export CODE="mint-open-search"
  5. if [ "$#" -ne 1 ]; then
  6. echo "USAGE: $0 OPENSEARCH_ARCH"
  7. exit 1
  8. fi
  9. podman pull ubuntu:latest
  10. podman build --build-arg OPENSEARCH_ARCH=$1 -t $CODE .
  11. podman save --format=oci-archive -o $CODE-$VERSION.tar $CODE
  12. md5sum $CODE-$VERSION.tar >$CODE-$VERSION.md5
  13. echo "done($CODE-$VERSION.tar)."
  14. exit 0