Skip to content

Commit 9d81bfd

Browse files
committed
Update README.md for micro image.
As 2.4-micro is not available in RHEL land. Let's use CentOS Stream 9 in README.md Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 7b6dc9e commit 9d81bfd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

2.4-micro/root/usr/share/container-scripts/httpd/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you need to install packages inside the image, please use the full sized imag
2424

2525
Usage in OpenShift
2626
------------------
27-
In this example, we assume that you are using the `rhel8/httpd-24-micro` image, available through the `httpd:24-micro` imagestream tag in Openshift.
27+
In this example, we assume that you are using the `quay.io/sclorg/httpd-24-micro-c9s` image, available through the `httpd:2.4-micro-el9` imagestream tag in Openshift.
2828
To build a simple [httpd-sample-app](https://github.com/sclorg/httpd-ex.git) application in Openshift:
2929

3030
```
@@ -76,7 +76,7 @@ To use the httpd image in a Dockerfile, follow these steps:
7676
#### 1. Pull a base builder image to build on
7777

7878
```
79-
podman pull rhel8/httpd-24-micro
79+
podman pull quay.io/sclorg/httpd-24-micro-c9s
8080
```
8181

8282
#### 2. Pull an application code
@@ -99,7 +99,7 @@ For all these three parts, you can either set up all manually and use the `httpd
9999

100100
##### 3.1. To use your own setup, create a Dockerfile with this content:
101101
```
102-
FROM registry.redhat.io/rhel8/httpd-24-micro
102+
FROM quay.io/sclorg/httpd-24-micro-c9s
103103
104104
# Add application sources
105105
ADD app-src/index.html /var/www/html/index.html
@@ -110,7 +110,7 @@ CMD run-httpd
110110

111111
##### 3.2. To use the Source-to-Image scripts and build an image using a Dockerfile, create a Dockerfile with this content:
112112
```
113-
FROM registry.redhat.io/rhel8/httpd-24-micro
113+
FROM quay.io/sclorg/httpd-24-micro-c9s
114114
115115
# Add application sources to a directory where the assemble script expects them
116116
# and set permissions so that the container runs without the root access
@@ -155,7 +155,7 @@ If you want to run the image directly and mount the static pages available in th
155155
as a container volume, execute the following command:
156156

157157
```
158-
$ podman run -d --name httpd -p 8080:8080 -v /wwwdata:/var/www:Z rhel8/httpd-24-micro
158+
$ podman run -d --name httpd -p 8080:8080 -v /wwwdata:/var/www:Z quay.io/sclorg/httpd-24-micro-c9s
159159
```
160160

161161
This creates a container named `httpd` running the Apache HTTP Server, serving data from
@@ -179,13 +179,13 @@ If you want to run the image and mount the log files into `/wwwlogs` on the host
179179
as a container volume, execute the following command:
180180

181181
```
182-
$ podman run -d -u 0 -e HTTPD_LOG_TO_VOLUME=1 --name httpd -v /wwwlogs:/var/log/httpd24:Z rhel8/httpd-24-micro
182+
$ podman run -d -u 0 -e HTTPD_LOG_TO_VOLUME=1 --name httpd -v /wwwlogs:/var/log/httpd24:Z quay.io/sclorg/httpd-24-micro-c9s
183183
```
184184

185185
To run an image using the `event` MPM (rather than the default `prefork`), execute the following command:
186186

187187
```
188-
$ podman run -d -e HTTPD_MPM=event --name httpd rhel8/httpd-24-micro
188+
$ podman run -d -e HTTPD_MPM=event --name httpd quay.io/sclorg/httpd-24-micro-c9s
189189
```
190190

191191
You can also set the following mount points by passing the `-v /host:/container` flag to podman.
@@ -228,7 +228,7 @@ By default, Apache HTTP Server container runs as UID 1001. That means the volume
228228
To run the container as a different UID, use `-u` option. For example if you want to run the container as UID 1234, execute the following command:
229229

230230
```
231-
podman run -d -u 1234 rhel8/httpd-24-micro
231+
podman run -d -u 1234 quay.io/sclorg/httpd-24-micro-c9s
232232
```
233233

234234
To log into a volume mounted directory, the container needs to be run as UID 0 (see above).
@@ -245,6 +245,6 @@ See also
245245
--------
246246
Dockerfile and other sources for this container image are available on
247247
https://github.com/sclorg/httpd-container.
248-
In that repository, the Dockerfile for RHEL8 is called Dockerfile.rhel8,
248+
In that repository, the Dockerfile for CentOS Stream 9 is called Dockerfile.c9s,
249249
the Dockerfile for CentOS Stream 10 is called Dockerfile.c10s,
250250
and the Dockerfile for Fedora is called Dockerfile.fedora.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Choose either the CentOS Stream 9, CentOS Stream 10, RHEL8 based image, RHEL9 ba
3737

3838
* **RHEL10 based image**
3939

40-
These images are available in the [Red Hat Container Catalog](https://catalog.redhat.com/software/containers/ubi8/httpd-24/6065b844aee24f523c207943?architecture=amd64&image=6660528072b80acc3c2193f3&container-tabs=overview).
40+
These images are available in the [Red Hat Container Catalog](https://catalog.redhat.com/en/search?searchType=containers).
4141
To download it run:
4242

4343
```

0 commit comments

Comments
 (0)