Skip to content

Commit

Permalink
Merge pull request #68 from 0chain/s3mgrt-build
Browse files Browse the repository at this point in the history
S3mgrt build fix
  • Loading branch information
boddumanohar authored Jun 22, 2023
2 parents a13d59f + f29f49f commit 82b8556
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 116 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/build-&-publish-docker-image.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .github/workflows/build-s3-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- master
- staging
- test-s3mgrt
tags:
- 'v*.*.*'
pull_request:
Expand Down Expand Up @@ -53,7 +54,9 @@ jobs:
sudo apt -y install build-essential nghttp2 libnghttp2-dev libssl-dev wget unzip containerd docker.io
- name: Install
run: make build
run: |
docker build -t zbox_base -f docker.local/base.Dockerfile .
docker run --rm -v $PWD:/migrate --workdir=/migrate zbox_base make build
- name: Zip release
run: tar -czvf s3mgrt-linux.tar.gz ./s3mgrt
Expand Down Expand Up @@ -267,4 +270,4 @@ jobs:
repository: ${{ github.repository }}
status_name: "0Chain System Tests"
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
github_token: ${{ github.token }}
github_token: ${{ github.token }}
50 changes: 0 additions & 50 deletions docker.local/Dockerfile

This file was deleted.

8 changes: 8 additions & 0 deletions docker.local/base.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM golang:1.20.4-alpine3.18 as zbox_base

RUN apk add --update --no-cache linux-headers build-base git cmake bash perl grep py3-pip python3-dev curl

RUN apk upgrade
# Install Herumi's cryptography
RUN apk del libstdc++ gmp-dev openssl-dev vips-dev
RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main libstdc++ gmp-dev openssl-dev vips-dev

0 comments on commit 82b8556

Please sign in to comment.