An open API service indexing awesome lists of open source software.

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)

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