forked from github/gh-ost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
/libexec/ | ||
/.vendor/ | ||
.idea/ | ||
release | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker build . -f Dockerfile.packaging -t gh-ost-packager:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |