Skip to content

Commit

Permalink
Use alpine for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
hakzor authored and Peter Bollen committed Apr 3, 2024
1 parent 8e11017 commit caecace
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/libexec/
/.vendor/
.idea/
release
.DS_Store
13 changes: 1 addition & 12 deletions Dockerfile.packaging
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
FROM golang:1.21.2-alpine3.18

RUN apt-get update
RUN apt-get install -y ruby ruby-dev rubygems build-essential
RUN apk add bash git ruby rpm curl rsync tar binutils
RUN gem install --no-document fpm
ENV GOPATH=/tmp/go

RUN apt-get install -y curl
RUN apt-get install -y rsync
RUN apt-get install -y gcc
RUN apt-get install -y g++
RUN apt-get install -y bash
RUN apt-get install -y git
RUN apt-get install -y tar
RUN apt-get install -y rpm

RUN mkdir -p $GOPATH/src/github.com/github/gh-ost
WORKDIR $GOPATH/src/github.com/github/gh-ost
COPY . .
RUN bash build.sh
1 change: 1 addition & 0 deletions build-packager.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build . -f Dockerfile.packaging -t gh-ost-packager:latest
1 change: 1 addition & 0 deletions build-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run -ti --rm --name gh-ost-packager -v `pwd`:/tmp/go/src/github.com/github/gh-ost -v `pwd`/release:/tmp/gh-ost-release docker.io/library/gh-ost-packager:latest sh -c "./build.sh"

0 comments on commit caecace

Please sign in to comment.