Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions release/docker/build-docker-multi-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# This is intended to be run the plugin's root directory. `dockerfiles/run.sh`
# Ensure you have Docker and docker-compose installed locally
# This is intended to be run the plugin's root directory. `release/docker`
# Ensure you have Docker Desktop installed as buildx only support Docker Desktop on macOS and Windows

set -e

# Variables
Expand Down
8 changes: 6 additions & 2 deletions release/docker/build-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@
# Ensure you have Docker installed locally and set the VERSION and BUILD_DATE environment variable.
set -e

CURR_DIR=`dirname $(realpath $0)`; cd $CURR_DIR
GIT_ROOT=`git rev-parse --show-toplevel`

echo 'Clear previous gem'
echo -n "Remove "; rm -rfv logstash-output-opensearch*.gem

echo 'Copy gemspec'
trap '{ echo -n "Remove "; rm -rfv logstash-output-opensearch.gemspec; }' INT TERM EXIT
cp -v ../../logstash-output-opensearch.gemspec .
cd $GIT_ROOT # We need to build the gem in root of this repo so .gemspec file contained locations are resolving correctly

echo 'Building plugin gem'
gem build logstash-output-opensearch.gemspec

echo 'Move Gem Location'
mv -v logstash-output-opensearch*.gem $CURR_DIR