Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
Signed-off-by: Govind Kamat <[email protected]>
  • Loading branch information
gkamat committed Aug 30, 2024
1 parent 629ca2c commit 51d712c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
run: |
docker buildx version
tag=osb/osb-`echo ${{ matrix.platform }} | tr '/' '-'`
tar zcf /tmp/osb.tgz .
mv /tmp/osb.tgz .
(cd ..; tar zcf osb.tgz opensearch-benchmark)
set -x
docker buildx build --platform ${{ matrix.platform }} --build-arg VERSION=`cat version.txt` --build-arg BUILD_DATE=`date -u +%Y-%m-%dT%H:%M:%SZ` -f docker/Dockerfile -t "$tag" -o type=docker .
set +x
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN apt-get -y update && \
RUN groupadd --gid 1000 opensearch-benchmark && \
useradd -d /opensearch-benchmark -m -k /dev/null -g 1000 -N -u 1000 -l -s /bin/bash benchmark

COPY osb.tgz .
RUN set -e; tar zxf osb.tgz; make install; cd ..; rm -rf opensearch-benchmark
COPY ../osb.tgz .
RUN set -e; tar zxf osb.tgz; cd opensearch-benchmark; make install; cd ..; rm -rf osb.tgz opensearch-benchmark

RUN mkdir -p /opensearch-benchmark/.benchmark && \
chown -R 1000:0 /opensearch-benchmark/.benchmark
Expand Down

0 comments on commit 51d712c

Please sign in to comment.