Update README.md

This commit is contained in:
Teddysun 2021-11-20 21:24:04 +09:00 committed by GitHub
parent dcda3aaa03
commit 7b1143757f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,12 +7,12 @@ For more information on docker and containerization technologies, refer to [offi
## Supported tags and respective `Dockerfile` links ## Supported tags and respective `Dockerfile` links
- `latest`, `8` [*(Dockerfile)*][2] - `latest`, `8` [*(Dockerfile)*][2]
- `rockylinux`[*(Dockerfile)*][7]
- `7` [*(Dockerfile)*][3] - `7` [*(Dockerfile)*][3]
- `6` [*(Dockerfile)*][7]
### Reference ### Reference
- Supported architectures ([*more info*][4]): `amd64`, `arm64v8` - Supported architectures ([*more info*][4]): `amd64`
## Integration ## Integration
@ -46,17 +46,16 @@ For CentOS 8
$ docker pull teddysun/rpmbuild:8 $ docker pull teddysun/rpmbuild:8
``` ```
For Rockylinux 8
```bash
$ docker pull teddysun/rpmbuild:rockylinux
```
It can be found at [Docker Hub][6]. It can be found at [Docker Hub][6].
## Start a container ## Start a container
There is an example to start a container for CentOS 6 like below:
```bash
$ mkdir -m 777 -p /opt/builder6
$ docker run -it --rm -h buildbot --name rpmbuild6 -v /opt/builder6:/home/builder/rpmbuild teddysun/rpmbuild:6
```
There is an example to start a container for CentOS 7 like below: There is an example to start a container for CentOS 7 like below:
```bash ```bash
@ -71,10 +70,17 @@ $ mkdir -m 777 -p /opt/builder8
$ docker run -it --rm -h buildbot --name rpmbuild8 -v /opt/builder8:/home/builder/rpmbuild teddysun/rpmbuild:8 $ docker run -it --rm -h buildbot --name rpmbuild8 -v /opt/builder8:/home/builder/rpmbuild teddysun/rpmbuild:8
``` ```
There is an example to start a container for Rockylinux 8 like below:
```bash
mkdir -m 777 -p /opt/rockylinux
docker run -it --rm -h buildbot --name rockylinux8 -v /opt/rockylinux:/home/builder/rpmbuild teddysun/rpmbuild:rockylinux
```
[1]: https://docs.docker.com/ [1]: https://docs.docker.com/
[2]: https://github.com/teddysun/across/blob/master/docker/rpmbuild/Dockerfile.centos8 [2]: https://github.com/teddysun/across/blob/master/docker/rpmbuild/Dockerfile.centos8
[3]: https://github.com/teddysun/across/blob/master/docker/rpmbuild/Dockerfile.centos7 [3]: https://github.com/teddysun/across/blob/master/docker/rpmbuild/Dockerfile.centos7
[4]: https://github.com/docker-library/official-images#architectures-other-than-amd64 [4]: https://github.com/docker-library/official-images#architectures-other-than-amd64
[5]: https://docs.docker.com/install/ [5]: https://docs.docker.com/install/
[6]: https://hub.docker.com/r/teddysun/rpmbuild/ [6]: https://hub.docker.com/r/teddysun/rpmbuild/
[7]: https://github.com/teddysun/across/blob/master/docker/rpmbuild/Dockerfile.centos6 [7]: https://github.com/teddysun/across/blob/master/docker/rpmbuild/Dockerfile.rockylinux