Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3mgrt build fix #68

Merged
merged 2 commits into from
Jun 22, 2023
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
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