https://github.com/integralist/simple-rpm
Demonstrate how to build a simple RPM (with the help of Docker)
https://github.com/integralist/simple-rpm
Last synced: 4 months ago
JSON representation
Demonstrate how to build a simple RPM (with the help of Docker)
- Host: GitHub
- URL: https://github.com/integralist/simple-rpm
- Owner: Integralist
- Created: 2015-07-17T06:53:38.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-16T09:52:02.000Z (over 10 years ago)
- Last Synced: 2025-06-01T04:22:35.117Z (about 1 year ago)
- Language: Makefile
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple RPM
This repository demonstrates how to build a simple RPM (with the help of Docker)
## Build Docker Image
`docker build -t integralist/simplerpm .`
## Run Docker Container
`docker run -v $(pwd):/root/rpmbuild integralist/simplerpm SPECS/*.spec`
If you want to debug the running container:
> `docker run -v $(pwd):/root/rpmbuild -it --entrypoint=/bin/bash integralist/simplerpm`
If you want to save changes inside container:
> `docker commit integralist/simplerpm:`
## Generating the RPM
The RPM filename convention is:
> `--.spec`
Once built, your mounted work directory should look something like:
```bash
.
├── BUILD
├── BUILDROOT
│ └── integralist-0.0.1-1.x86_64
│ ├── generated-appfile
│ └── testapp
├── Dockerfile
├── Makefile
├── README.md
├── RPMS
│ └── x86_64
│ └── integralist-0.0.1-1.x86_64.rpm
├── SOURCES
│ └── testapp
├── SPECS
│ └── integralist-0.0.1-1.spec
└── SRPMS
```
## Other Commands
If you want to have a poke around inside the container while it's running:
- `rpm -q `: check if package is installed
- `whereis `: check binary location
- `man rpmbuild`: documentation for building an RPM