copr (Cool Other Package Repositories) is a Fedora community build service for RPMs.
This Docker image contains the copr-cli tool which can be used to submit SRPMs to copr for building (among other things).
Supply the following environment variables to docker run:
COPR_LOGIN=
COPR_USERNAME=
COPR_TOKEN=
COPR_COPR_URL=
You can get the necessary values for your account at https://copr.fedoraproject.org/api/
Suppose your SRPM is located at /home/myuser/SRPMS/foobar.src.rpm
docker run -it --rm \
-v home/myuser/SRPMS/:/build/ \
-e COPR_LOGIN=edwfnbwekdnweo \
-e COPR_USERNAME=myuser \
-e COPR_TOKEN=dsifhweiohdfisaucnhiwsg \
-e COPR_COPR_URL=https://copr.fedoraproject.org \
mgruener/copr-cli \
build myuser/foobar /build/foobar.src.rpm
This will send the SRPM foobar.src.rpm to be build for project foobar of user myuser. See the copr-cli manpage for details on what other operations are possible.
The main reason for this docker image is to have an easy ability to send build jobs to copr from a Travis-CI build job as travis-ci does not provide a nativ copr integration right now.
Content type
Image
Digest
sha256:e766a88e9…
Size
85.2 MB
Last updated
over 8 years ago
docker pull mgruener/copr-cli