Skip to content

Commit

Permalink
BCDA-353: Update rpm packaging so that we are using Debian container …
Browse files Browse the repository at this point in the history
…instead of Alpine container. (#61)
  • Loading branch information
msnook authored Oct 31, 2018
1 parent 87b6000 commit dbd08d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Dockerfiles/Dockerfile.package
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM golang:1.10-alpine3.8
FROM golang:1.10

RUN apk upgrade
RUN apk update
RUN apk add --no-cache gcc make ruby ruby-dev rpm libc-dev git
RUN apt-get update
RUN apt-get install -y build-essential ruby ruby-dev rpm git
RUN gem install --no-ri --no-rdoc fpm etc
RUN go get -u github.com/golang/dep/cmd/dep

Expand Down
4 changes: 2 additions & 2 deletions ops/build_and_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ go clean
echo "Building bcda binary..."
go build -ldflags "-X main.version=$VERSION"
echo "Packaging bcda binary into RPM..."
fpm -v $VERSION -s dir -t rpm -n bcda bcda
fpm -v $VERSION -s dir -t rpm -n bcda bcda=/usr/local/bin/bcda
cd ../bcdaworker
go clean
echo "Building bcdaworker..."
go build
echo "Packaging bcdaworker binary into RPM..."
fpm -v $VERSION -s dir -t rpm -n bcdaworker bcdaworker
fpm -v $VERSION -s dir -t rpm -n bcdaworker bcdaworker=/usr/local/bin/bcdaworker

0 comments on commit dbd08d0

Please sign in to comment.