Skip to content

Commit

Permalink
Merge pull request #24 from linyows/fix-packaging
Browse files Browse the repository at this point in the history
Fix packaging
  • Loading branch information
linyows authored Apr 2, 2018
2 parents bfc7ad1 + 2162b2e commit 531eef3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,6 @@ rpm: source_for_rpm ## Packaging for RPM
rpmbuild -ba rpm/octopass.spec
cp /root/rpmbuild/RPMS/*/*.rpm /octopass/builds

rpm5: jansson source_for_rpm ## Packaging for RPM-5
@echo "$(INFO_COLOR)==> $(RESET)$(BOLD)Packaging for RPM$(RESET)"
mkdir -p /usr/src/redhat/SOURCES
cp builds/octopass-$(VERSION).tar.gz /usr/src/redhat/SOURCES
rpmbuild -ba rpm/octopass.spec
cp /usr/src/redhat/RPMS/*/*.rpm /octopass/builds
mv /octopass/builds/{octopass-$(VERSION)-1.el5.x86_64.rpm,octopass-$(VERSION)-1.x86_64.el5.rpm}

jansson: build_dir ## Build and Install Janson
@echo "$(INFO_COLOR)==> $(RESET)$(BOLD)Building and Installing Jansson$(RESET)"
mkdir -p /usr/src/redhat/SOURCES
Expand Down
22 changes: 7 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,37 @@
rpm7:
centos7:
dockerfile: dockerfiles/Dockerfile.centos-7
build: .
volumes:
- .:/octopass
environment:
DIST: el7
command: make rpm
rpm6:
centos6:
dockerfile: dockerfiles/Dockerfile.centos-6
build: .
volumes:
- .:/octopass
environment:
DIST: el6
command: make rpm
rpm5:
dockerfile: dockerfiles/Dockerfile.centos-5
build: .
volumes:
- .:/octopass
environment:
DIST: el5
command: make rpm5

deb16:
ubuntu16:
dockerfile: dockerfiles/Dockerfile.ubuntu-16
build: .
volumes:
- .:/octopass
environment:
DIST: xenial
command: make deb
deb14:
ubuntu14:
dockerfile: dockerfiles/Dockerfile.ubuntu-14
build: .
volumes:
- .:/octopass
environment:
DIST: trusty
command: make deb
deb12:
ubuntu12:
dockerfile: dockerfiles/Dockerfile.ubuntu-12
build: .
volumes:
Expand All @@ -48,7 +40,7 @@ deb12:
DIST: precise
command: make deb12

deb9:
debian9:
dockerfile: dockerfiles/Dockerfile.debian-9
build: .
volumes:
Expand All @@ -57,7 +49,7 @@ deb9:
DIST: stretch
DEB_BUILD_OPTIONS: noautodbgsym
command: make deb
deb8:
debian8:
dockerfile: dockerfiles/Dockerfile.debian-8
build: .
volumes:
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.debian-9
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MAINTAINER linyows <linyows@gmail.com>

RUN apt-get -qq update && \
apt-get install -qq glibc-source gcc make libcurl4-gnutls-dev libjansson-dev \
bzip2 unzip debhelper dh-make devscripts cdbs clang
bzip2 unzip debhelper dh-make devscripts cdbs clang apt-utils

ENV USER root

Expand Down

0 comments on commit 531eef3

Please sign in to comment.