Skip to content

Commit

Permalink
core(Packaging) Added linux package builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfeidau committed Jan 25, 2018
1 parent b3afc37 commit d9ce7c4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.DS_Store
.credentials
dist
build
packages
release
/dist
/build
/packages
/release
*_string.go
.glide
vendor
glide
/glide
/package
/stage
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ clean:
rm ./glide
rm -fr ./build

packages:
rm -rf package && mkdir package
rm -rf stage && mkdir -p stage/usr/bin
cp build/saml2aws_*_linux_amd64/saml2aws stage/usr/bin
fpm --name $(NAME) -a x86_64 -t rpm -s dir --version $(VERSION) --iteration $(ITERATION) -C stage -p package/$(NAME)-$(VERSION)_$(ITERATION).rpm usr
fpm --name $(NAME) -a x86_64 -t deb -s dir --version $(VERSION) --iteration $(ITERATION) -C stage -p package/$(NAME)-$(VERSION)_$(ITERATION).deb usr
shasum -a 512 package/$(NAME)-$(VERSION)_$(ITERATION).rpm > package/$(NAME)-$(VERSION)_$(ITERATION).rpm.sha512
shasum -a 512 package/$(NAME)-$(VERSION)_$(ITERATION).deb > package/$(NAME)-$(VERSION)_$(ITERATION).deb.sha512

generate-mocks:
mockery -dir pkg/prompter --all

Expand Down
5 changes: 5 additions & 0 deletions packaging/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM centos:7
RUN yum update -y
RUN yum -y install rubygems ruby-devel ruby-json gcc gcc-c++ python-setuptools rpm-build openssh-clients make
RUN gem install fpm
WORKDIR /src

0 comments on commit d9ce7c4

Please sign in to comment.