krakendio / fpm-docker Goto Github PK
View Code? Open in Web Editor NEWDocker image to generate RPM and DEB packages based on fpm
License: Apache License 2.0
Docker image to generate RPM and DEB packages based on fpm
License: Apache License 2.0
Thanks for creating this process to leverage FPM in Docker. I want to point out that I am running into issue when attempting to sign RPMs. I have provide output of error below and a representation of my Makefile. I have made sure I have the right password, not sure what else I could be missing. Build works if I disable signing of RPM
I also want to point out when is use the $HOME variable to mount volume in Makefile, as demoed in blog post, build fails. It works when I enter full path instead. I also had to remove the 1.9.3 from docker file instruction to get FPM installed on image generated. Otherwise would end in error
GPG Error
Enter pass phrase:
gpg: WARNING: unsafe ownership on homedir `/root/.gnupg' {:level=>:info}
gpg: skipped "24C138BA64AE9697": No secret key {:level=>:info}
gpg: signing failed: No secret key {:level=>:info}
Pass phrase check failed or gpg key expired {:level=>:info}
Process failed: rpmbuild failed (exit code 1). Full command was:["rpmbuild", "-bb", "--define", "buildroot /tmp/package-rpm-build-cb93ac1a8d6f01b2225371c92a742f1989409c0e0f0e94355ed3df8c6cce/BUILD", "--define", "_topdir /tmp/package-rpm-build-cb93ac1a8d6f01b2225371c92a742f1989409c0e0f0e94355ed3df8c6cce", "--define", "_sourcedir /tmp/package-rpm-build-cb93ac1a8d6f01b2225371c92a742f1989409c0e0f0e94355ed3df8c6cce", "--define", "_rpmdir /tmp/package-rpm-build-cb93ac1a8d6f01b2225371c92a742f1989409c0e0f0e94355ed3df8c6cce/RPMS", "--define", "_tmppath /tmp", "--sign", "/tmp/package-rpm-build-cb93ac1a8d6f01b2225371c92a742f1989409c0e0f0e94355ed3df8c6cce/SPECS/mypackage.spec"] {:level=>:error}
Makefile
`VERSION := 1.1.8.1
PKGNAME := mypackage
LICENSE := Proprietary
VENDOR= mypackage
URL := https://www.test.com
RELEASE := 1
USER := tcm
ARCH := amd64
DESC := My first package
MAINTAINER := [email protected]
DOCKER_WDIR := /tmp/fpm
DOCKER_FPM := fpm
FPM_OPTS=-s dir -v
--license "$(LICENSE)"
--vendor "$(VENDOR)"
--maintainer "$(MAINTAINER)"
--architecture $(ARCH)
--url "$(URL)"
--description "$(DESC)"
--verbose
DEB_OPTS= -t deb --deb-user $(USER)
RPM_OPTS =--rpm-user $(USER)
--rpm-sign
run: ## Run container
docker run --rm -it -v "${PWD}/rpmmacros:/root/.rpmmacros" -v /home/tcm/.gnupg:/root/.gnupg
-v "${PWD}:${DOCKER_WDIR}" -w ${DOCKER_WDIR} ${DOCKER_FPM}:rpm -t rpm ${RPM_OPTS}
--iteration ${RELEASE}.iACS
-C /tmp/fpm
${FPM_OPTS}`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.