Coder Social home page Coder Social logo

fpm-docker's People

Contributors

taik0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fpm-docker's Issues

PGP Signing & $HOME Not Working

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 $(VERSION) -n $(PKGNAME)
--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}`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.