initial commit
This commit is contained in:
commit
166a31e363
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM container.psi.ch/images/rhel9
|
||||||
|
|
||||||
|
RUN dnf -y upgrade
|
||||||
|
RUN dnf -y group install "Development Tools"
|
||||||
|
RUN dnf -y install wget
|
||||||
|
RUN dnf -y install python3
|
||||||
|
|
||||||
|
COPY files/rpmmacros /root/.rpmmacros
|
36
Readme.md
Normal file
36
Readme.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Overview
|
||||||
|
This is the PSI rhel9 docker developer image. It contains most developer tools especially for building rpms, etc.
|
||||||
|
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
|
||||||
|
The image can be used as follows:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -it --rm container.psi.ch/images/rhel9-developer
|
||||||
|
```
|
||||||
|
|
||||||
|
To build an RPM this image can be used as follows:
|
||||||
|
```bash
|
||||||
|
docker run --platform linux/amd64 -it --rm -v $(pwd):/data --workdir /data container.psi.ch/images/rhel9-developer rpmbuild -ba whatever.spec
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
To base other images upon this image use
|
||||||
|
```dockerfile
|
||||||
|
FROM container.psi.ch/images/rhel9-developer
|
||||||
|
```
|
||||||
|
in your Dockerfile
|
||||||
|
|
||||||
|
# Build
|
||||||
|
|
||||||
|
To build the image use:
|
||||||
|
```bash
|
||||||
|
docker build --platform linux/x86_64 -t container.psi.ch/images/rhel9-developer .
|
||||||
|
```
|
||||||
|
|
||||||
|
To push the image to the central container registry do:
|
||||||
|
```bash
|
||||||
|
docker login container.psi.ch
|
||||||
|
docker push container.psi.ch/images/rhel9-developer
|
||||||
|
```
|
8
files/rpmmacros
Normal file
8
files/rpmmacros
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
%_topdir /data
|
||||||
|
%_builddir %{_topdir}/BUILD
|
||||||
|
%_buildrootdir %{_topdir}/BUILDROOT
|
||||||
|
%_rpmdir %{_topdir}/RPMS
|
||||||
|
%_sourcedir %{_topdir}/SOURCES
|
||||||
|
%_specdir %{_topdir}/SPECS
|
||||||
|
%_srcrpmdir %{_topdir}/SRPMS
|
||||||
|
%packager Docker RPM Build Image
|
Loading…
x
Reference in New Issue
Block a user