Skip to content

Commit 9715632

Browse files
committed
Add developer images for the new modules in Oracle Linux 8 Update 9
Signed-off-by: Avi Miller <[email protected]>
1 parent ad7ea97 commit 9715632

File tree

8 files changed

+138
-10
lines changed

8 files changed

+138
-10
lines changed

OracleLinuxDevelopers/README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ You should then be able to create a new Ruby on Rails application.
7373

7474
### NGINX module
7575

76-
* [`oraclelinux8-nginx:1.14`](oraclelinux8/nginx/1.14/Dockerfile)
77-
* [`oraclelinux8-nginx:1.16`](oraclelinux8/nginx/1.16/Dockerfile)
78-
* [`oraclelinux8-nginx:1.18`](oraclelinux8/nginx/1.18/Dockerfile)
7976
* [`oraclelinux8-nginx:1.20`](oraclelinux8/nginx/1.20/Dockerfile)
77+
* [`oraclelinux8-nginx:1.22`](oraclelinux8/nginx/1.22/Dockerfile)
8078

8179
### Node.js module
8280

@@ -85,22 +83,22 @@ You should then be able to create a new Ruby on Rails application.
8583
* [`oraclelinux8-nodejs:14-oracledb`](oraclelinux8/nodejs/14-oracledb/Dockerfile)
8684
* [`oraclelinux8-nodejs:16`](oraclelinux8/nodejs/16/Dockerfile)
8785
* [`oraclelinux8-nodejs:18`](oraclelinux8/nodejs/18/Dockerfile)
86+
* [`oraclelinux8-nodejs:20`](oraclelinux8/nodejs/20/Dockerfile)
8887

89-
**Tip:** support for `yarn` is included with `oraclelinux8-nodejs:18` but is
90-
opt-in. To activate `yarn`, run `corepack enable` when building your downstream
91-
image.
88+
**Tip:** support for `yarn` is included with `oraclelinux8-nodejs:18` and `oraclelinux8-nodejs:20` but is
89+
opt-in. To activate `yarn`, run `corepack enable` when building your downstream image.
9290

9391
### PHP module
9492

95-
* [`oraclelinux8-php:7.3-apache`](oraclelinux8/php/7.3-apache/Dockerfile)
96-
* [`oraclelinux8-php:7.3-cli`](oraclelinux8/php/7.3-cli/Dockerfile)
97-
* [`oraclelinux8-php:7.3-fpm`](oraclelinux8/php/7.3-fpm/Dockerfile)
9893
* [`oraclelinux8-php:7.4-apache`](oraclelinux8/php/7.4-apache/Dockerfile)
9994
* [`oraclelinux8-php:7.4-apache-oracledb`](oraclelinux8/php/7.4-apache-oracledb/Dockerfile)
10095
* [`oraclelinux8-php:7.4-cli`](oraclelinux8/php/7.4-cli/Dockerfile)
10196
* [`oraclelinux8-php:7.4-cli-oracledb`](oraclelinux8/php/7.4-cli-oracledb/Dockerfile)
10297
* [`oraclelinux8-php:7.4-fpm`](oraclelinux8/php/7.4-fpm/Dockerfile)
10398
* [`oraclelinux8-php:7.4-fpm-oracledb`](oraclelinux8/php/7.4-fpm-oracledb/Dockerfile)
99+
* [`oraclelinux8-php:8.0-apache`](oraclelinux8/php/8.0-apache/Dockerfile)
100+
* [`oraclelinux8-php:8.0-cli`](oraclelinux8/php/8.0-cli/Dockerfile)
101+
* [`oraclelinux8-php:8.0-fpm`](oraclelinux8/php/8.0-fpm/Dockerfile)
104102

105103
### Python modules
106104

@@ -130,6 +128,7 @@ You should then be able to create a new Ruby on Rails application.
130128
* [`oraclelinux8-ruby:2.7`](oraclelinux8/ruby/2.7/Dockerfile)
131129
* [`oraclelinux8-ruby:2.7-nodejs`](oraclelinux8/ruby/2.7-nodejs/Dockerfile)
132130
* [`oraclelinux8-ruby:3.0`](oraclelinux8/ruby/3.0/Dockerfile)
131+
* [`oraclelinux8-ruby:3.1`](oraclelinux8/ruby/3.1/Dockerfile)
133132

134133
[1]: https://github.com/orgs/oracle/packages?repo_name=docker-images
135134
[2]: https://yum.oracle.com
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2023 Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
FROM ghcr.io/oracle/oraclelinux:8
5+
6+
RUN \
7+
# Explicitly disable PHP to suppress conflicting requests error
8+
dnf -y module disable php \
9+
&& \
10+
dnf -y module enable nginx:1.22 && \
11+
dnf -y install nginx && \
12+
rm -rf /var/cache/dnf \
13+
&& \
14+
# forward request and error logs to container engine log collector
15+
ln -sf /dev/stdout /var/log/nginx/access.log && \
16+
ln -sf /dev/stderr /var/log/nginx/error.log
17+
18+
EXPOSE 80/tcp
19+
EXPOSE 443/tcp
20+
21+
STOPSIGNAL SIGQUIT
22+
23+
CMD ["nginx", "-g", "daemon off;"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.20
1+
1.22
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2023, Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
FROM ghcr.io/oracle/oraclelinux:8
5+
6+
RUN dnf -y module enable nodejs:20 && \
7+
dnf -y install nodejs npm && \
8+
rm -rf /var/cache/dnf
9+
10+
CMD ["/bin/node", "-v"]
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright (c) 2023 Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
FROM ghcr.io/oracle/oraclelinux:8
5+
6+
# hadolint shell=/usr/bin/bash
7+
RUN dnf -y module enable php:8.0 httpd:2.4 && \
8+
dnf -y install httpd httpd-filesystem httpd-tools \
9+
mod_http2 mod_ssl openssl \
10+
php php-cli php-common php-json php-mbstring php-mysqlnd php-pdo php-xml && \
11+
rm -rf /var/cache/dnf \
12+
&& \
13+
# Disable event module and enable prefork so that mod_php is enabled
14+
sed -i 's/#LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so/LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so/' /etc/httpd/conf.modules.d/00-mpm.conf && \
15+
sed -i 's/LoadModule mpm_event_module modules\/mod_mpm_event.so/#LoadModule mpm_event_module modules\/mod_mpm_event.so/' /etc/httpd/conf.modules.d/00-mpm.conf && \
16+
# Disable HTTP2 as it is not supported with the prefork module
17+
sed -i 's/LoadModule http2_module modules\/mod_http2.so/#LoadModule http2_module modules\/mod_http2.so/' /etc/httpd/conf.modules.d/10-h2.conf && \
18+
sed -i 's/LoadModule proxy_http2_module modules\/mod_proxy_http2.so/#LoadModule proxy_http2_module modules\/mod_proxy_http2.so/' /etc/httpd/conf.modules.d/10-proxy_h2.conf \
19+
&& \
20+
# Create self-signed certificate for mod_ssl
21+
openssl req -x509 -nodes -newkey rsa:4096 \
22+
-keyout /etc/pki/tls/private/localhost.key \
23+
-out /etc/pki/tls/certs/localhost.crt \
24+
-days 3650 -subj '/CN=localhost' \
25+
&& \
26+
# Redirect logging to stdout/stderr for container logging to work
27+
sed -i 's/;error_log = syslog/error_log = \/dev\/stderr/' /etc/php.ini && \
28+
ln -sf /dev/stdout /var/log/httpd/access_log && \
29+
ln -sf /dev/stderr /var/log/httpd/error_log && \
30+
ln -sf /dev/stdout /var/log/httpd/ssl_access_log && \
31+
ln -sf /dev/stderr /var/log/httpd/ssl_error_log && \
32+
# Disable userdirs and the auto-generated welcome message
33+
rm -f /etc/httpd/conf.d/{userdir.conf,welcome.conf}
34+
35+
EXPOSE 80 443
36+
37+
CMD ["/sbin/httpd", "-DFOREGROUND"]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) 2023 Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
FROM ghcr.io/oracle/oraclelinux:8
5+
6+
RUN dnf -y module enable php:8.0 && \
7+
dnf -y install php-cli \
8+
php-common \
9+
php-json \
10+
php-mbstring \
11+
php-mysqlnd \
12+
php-pdo \
13+
php-xml && \
14+
rm -rf /var/cache/dnf
15+
16+
CMD ["/bin/php", "-v"]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (c) 2023 Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
FROM ghcr.io/oracle/oraclelinux:8
5+
6+
RUN dnf -y module enable php:8.0 && \
7+
dnf -y install php-cli \
8+
php-common \
9+
php-fpm \
10+
php-json \
11+
php-mbstring \
12+
php-mysqlnd \
13+
php-pdo \
14+
php-soap \
15+
php-xml && \
16+
rm -rf /var/cache/dnf \
17+
&& \
18+
# Enable external access to PHP-FPM
19+
mkdir -p /run/php-fpm && \
20+
sed -i '/^listen = /clisten = 0.0.0.0:9000' /etc/php-fpm.d/www.conf && \
21+
sed -i '/^listen.allowed_clients/c;listen.allowed_clients =' /etc/php-fpm.d/www.conf \
22+
&& \
23+
# Redirect worker output to stdout for container logging
24+
sed -i '/^;catch_workers_output/ccatch_workers_output = yes' /etc/php-fpm.d/www.conf
25+
26+
EXPOSE 9000
27+
28+
WORKDIR /var/www
29+
30+
CMD ["/sbin/php-fpm", "-F", "-O"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2023 Oracle and/or its affiliates.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3+
4+
FROM ghcr.io/oracle/oraclelinux:8
5+
6+
7+
RUN dnf -y module enable ruby:3.1 && \
8+
dnf -y install ruby ruby-libs ruby-devel ruby-irb \
9+
rubygems rubygem-rake rubygem-bundler \
10+
gcc make && \
11+
rm -rf /var/cache/dnf
12+
13+
CMD ["irb"]

0 commit comments

Comments
 (0)