Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove the oraclelinux8-compat:8-slim image
Signed-off-by: Avi Miller <avi.miller@oracle.com>
  • Loading branch information
Djelibeybi committed Sep 13, 2022
commit 536e0fe7dad95fb0afe8167a672c96b2d1ea85a5
20 changes: 10 additions & 10 deletions OracleJava/11/Dockerfile.8
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
#
# The builder image will be used to uncompress the tar.gz file with the Java Runtime.

FROM ghcr.io/oracle/oraclelinux8-compat:8-slim as builder
FROM ghcr.io/oracle/oraclelinux:8 as builder

MAINTAINER Aurelio Garcia-Ribeyro <aurelio.garciaribeyro@oracle.com>

RUN set -eux; \
dnf install -y tar;

# Default to UTF-8 file.encoding
ENV LANG en_US.UTF-8

Expand All @@ -49,30 +49,30 @@ RUN set -eux; \
JAVA_SHA256=4edc62ebb4359b276ea33abfd9a54bacb218b8f972603c20be9e415b8a59012c ; \
else \
mv $(ls /tmp/jdk-11*_linux-aarch64_bin.tar.gz) /tmp/jdk.tar.gz ; \
JAVA_SHA256=546dca8e140abbcddbbb36f691817d81f7116b76e00e25ce2e0586bfee567f57 ; \
JAVA_SHA256=546dca8e140abbcddbbb36f691817d81f7116b76e00e25ce2e0586bfee567f57 ; \
fi && \
echo "$JAVA_SHA256 */tmp/jdk.tar.gz" | sha256sum -c -; \
mkdir -p "$JAVA_HOME"; \
tar --extract --file /tmp/jdk.tar.gz --directory "$JAVA_HOME" --strip-components 1
## Get a fresh version of OL8 for the final image
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim

## Get a fresh version of OL8 for the final image
FROM ghcr.io/oracle/oraclelinux:8

# Default to UTF-8 file.encoding
ENV LANG en_US.UTF-8

ENV JAVA_VERSION=11.0.16.1 \
JAVA_HOME=/usr/java/jdk-11

ENV PATH $JAVA_HOME/bin:$PATH
ENV PATH $JAVA_HOME/bin:$PATH

# Copy the uncompressed Java Runtime from the builder image
COPY --from=builder $JAVA_HOME $JAVA_HOME

RUN set -eux; \
dnf -y update; \
dnf install -y \
# JDK assumes freetype is available
# JDK assumes freetype is available
freetype fontconfig \
; \
rm -rf /var/cache/dnf; \
Expand All @@ -83,7 +83,7 @@ RUN set -eux; \
[ ! -e "/usr/bin/$base" ]; \
alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; \
done; \
# -Xshare:dump will create a CDS archive to improve startup in subsequent runs
java -Xshare:dump;
# -Xshare:dump will create a CDS archive to improve startup in subsequent runs
java -Xshare:dump;

CMD ["jshell"]
19 changes: 9 additions & 10 deletions OracleJava/8/Dockerfile.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019, 2022 Oracle and/or its affiliates.
# Copyright (c) 2019, 2022 Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
Expand All @@ -23,14 +23,14 @@
#
# The builder image will be used to uncompress the tar.gz file with the Java Runtime.

FROM ghcr.io/oracle/oraclelinux8-compat:8-slim as builder
FROM ghcr.io/oracle/oraclelinux:8 as builder

MAINTAINER Aurelio Garcia-Ribeyro <aurelio.garciaribeyro@oracle.com>

# Since the files is compressed as tar.gz first yum install tar. gzip is already in ghcr.io/oracle/oraclelinux8-compat:8-slim
RUN set -eux; \
dnf install -y tar ;

# Default to UTF-8 file.encoding
ENV LANG en_US.UTF-8

Expand All @@ -45,18 +45,18 @@ COPY $JAVA_PKG /tmp/jdk.tgz
RUN set -eux; \
echo "$JAVA_SHA256 */tmp/jdk.tgz" | sha256sum -c -; \
mkdir -p "$JAVA_HOME"; \
tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1;
tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1;

## Get a fresh version of SLIM for the final image

FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

# Default to UTF-8 file.encoding
ENV LANG en_US.UTF-8

ENV JAVA_VERSION=1.8.0_341 \
JAVA_HOME=/usr/java/jdk-8
JAVA_HOME=/usr/java/jdk-8

ENV PATH $JAVA_HOME/bin:$PATH

# Copy the uncompressed Java Runtime from the builder image
Expand All @@ -72,8 +72,7 @@ RUN dnf -y update; \
[ ! -e "/usr/bin/$base" ]; \
alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; \
done; \
# -Xshare:dump will create a CDS archive to improve startup in subsequent runs
# the file will be stored as /usr/java/jdk-8/jre/lib/amd64/server/classes.jsa
# -Xshare:dump will create a CDS archive to improve startup in subsequent runs
# the file will be stored as /usr/java/jdk-8/jre/lib/amd64/server/classes.jsa
# See https://docs.oracle.com/javase/8/docs/technotes/guides/vm/class-data-sharing.html
java -Xshare:dump;

20 changes: 6 additions & 14 deletions OracleLinuxDevelopers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@ Each of the language and version variants are based off either the
package set as possible. If your application requires additional modules or
packages, they should be installed as part of your downstream `Dockerfile`.

## Change to Oracle Linux 8 images

Originally, the images based on Oracle Linux 8 used the `8-slim` variant which
required the use of `microdnf` for package management. The current images are
based on an intermediate base image that is based on `oraclelinux:8` for full
access to `dnf` to support AppStreams and modularity, but which also has
`microdnf` installed and configured to ensure any existing automation continues
to work.

> **Deprecation of `microdnf`:**
> Existing users are strongly encouraged to switch from `microdnf` to `dnf` as
> it we intend to remove it from the Oracle Linux Developer images when Oracle
> Linux 8.5 is released.

## Usage of the binary images

All the [published Oracle Linux Developer images][1] use publicly available
Expand Down Expand Up @@ -90,21 +76,26 @@ You should then be able to create a new Ruby on Rails application.
* [`oraclelinux8-nginx:1.14`](oraclelinux8/nginx/1.14/Dockerfile)
* [`oraclelinux8-nginx:1.16`](oraclelinux8/nginx/1.16/Dockerfile)
* [`oraclelinux8-nginx:1.18`](oraclelinux8/nginx/1.18/Dockerfile)
* [`oraclelinux8-nginx:1.20`](oraclelinux8/nginx/1.20/Dockerfile)

### Node.js module

* [`oraclelinux8-nodejs:12`](oraclelinux8/nodejs/12/Dockerfile)
* [`oraclelinux8-nodejs:14`](oraclelinux8/nodejs/14/Dockerfile)
* [`oraclelinux8-nodejs:14-oracledb`](oraclelinux8/nodejs/14-oracledb/Dockerfile)
* [`oraclelinux8-nodejs:16`](oraclelinux8/nodejs/16/Dockerfile)

### PHP module

* [`oraclelinux8-php:7.3-apache`](oraclelinux8/php/7.3-apache/Dockerfile)
* [`oraclelinux8-php:7.3-cli`](oraclelinux8/php/7.3-cli/Dockerfile)
* [`oraclelinux8-php:7.3-fpm`](oraclelinux8/php/7.3-fpm/Dockerfile)
* [`oraclelinux8-php:7.4-apache`](oraclelinux8/php/7.4-apache/Dockerfile)
* [`oraclelinux8-php:7.4-apache-oracledb`](oraclelinux8/php/7.4-apache-oracledb/Dockerfile)
* [`oraclelinux8-php:7.4-cli`](oraclelinux8/php/7.4-cli/Dockerfile)
* [`oraclelinux8-php:7.4-cli-oracledb`](oraclelinux8/php/7.4-cli-oracledb/Dockerfile)
* [`oraclelinux8-php:7.4-fpm`](oraclelinux8/php/7.4-fpm/Dockerfile)
* [`oraclelinux8-php:7.4-fpm-oracledb`](oraclelinux8/php/7.4-fpm-oracledb/Dockerfile)

### Python modules

Expand Down Expand Up @@ -132,6 +123,7 @@ You should then be able to create a new Ruby on Rails application.
* [`oraclelinux8-ruby:2.6`](oraclelinux8/ruby/2.6/Dockerfile)
* [`oraclelinux8-ruby:2.7`](oraclelinux8/ruby/2.7/Dockerfile)
* [`oraclelinux8-ruby:2.7-nodejs`](oraclelinux8/ruby/2.7-nodejs/Dockerfile)
* [`oraclelinux8-ruby:3.0`](oraclelinux8/ruby/3.0/Dockerfile)

[1]: https://github.com/orgs/oracle/packages?repo_name=docker-images
[2]: https://yum.oracle.com
8 changes: 0 additions & 8 deletions OracleLinuxDevelopers/oraclelinux8/compat/8-slim/Dockerfile

This file was deleted.

6 changes: 2 additions & 4 deletions OracleLinuxDevelopers/oraclelinux8/golang/latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2021 Oracle and/or its affiliates.
# Copyright (c) 2021, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

# The oraclelinux8-compat:8-slim image adds microdnf to the oraclelinux:8 image
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable go-toolset:ol8 && \
dnf -y install go-toolset && \
Expand Down
6 changes: 2 additions & 4 deletions OracleLinuxDevelopers/oraclelinux8/nodejs/10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

# The oraclelinux8-compat:8-slim image adds microdnf to the oraclelinux:8 image
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable nodejs:10 && \
dnf -y install nodejs npm && \
Expand Down
6 changes: 2 additions & 4 deletions OracleLinuxDevelopers/oraclelinux8/nodejs/12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

# The oraclelinux8-compat:8-slim image adds microdnf to the oraclelinux:8 image
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable nodejs:12 && \
dnf -y install nodejs npm && \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2021 Oracle and/or its affiliates.
# Copyright (c) 2021, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

# The oraclelinux8-compat:8-slim image adds microdnf to the oraclelinux:8 image
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable nodejs:14 && \
dnf -y install oracle-instantclient-release-el8 oraclelinux-developer-release-el8 && \
Expand Down
6 changes: 2 additions & 4 deletions OracleLinuxDevelopers/oraclelinux8/nodejs/14/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

# The oraclelinux8-compat:8-slim image adds microdnf to the oraclelinux:8 image
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable nodejs:14 && \
dnf -y install nodejs npm && \
Expand Down
38 changes: 0 additions & 38 deletions OracleLinuxDevelopers/oraclelinux8/php/7.2-apache/Dockerfile

This file was deleted.

18 changes: 0 additions & 18 deletions OracleLinuxDevelopers/oraclelinux8/php/7.2-cli/Dockerfile

This file was deleted.

32 changes: 0 additions & 32 deletions OracleLinuxDevelopers/oraclelinux8/php/7.2-fpm/Dockerfile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim

FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable php:7.3 httpd:2.4 && \
dnf -y install httpd httpd-filesystem httpd-tools \
Expand Down
6 changes: 2 additions & 4 deletions OracleLinuxDevelopers/oraclelinux8/php/7.3-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

# The oraclelinux8-compat:8-slim image adds microdnf to the oraclelinux:8 image
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable php:7.3 && \
dnf -y install php-cli \
Expand Down
6 changes: 2 additions & 4 deletions OracleLinuxDevelopers/oraclelinux8/php/7.3-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

# The oraclelinux8-compat:8-slim image adds microdnf to the oraclelinux:8 image
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable php:7.3 && \
dnf -y install php-cli \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

# The oraclelinux8-compat:8-slim image adds microdnf to the oraclelinux:8 image
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable php:7.4 httpd:2.4 && \
dnf -y install httpd httpd-filesystem httpd-tools \
Expand Down
6 changes: 2 additions & 4 deletions OracleLinuxDevelopers/oraclelinux8/php/7.4-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

# The oraclelinux8-compat:8-slim image adds microdnf to the oraclelinux:8 image
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim
FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module enable php:7.4 && \
dnf -y install php-cli \
Expand Down
Loading