-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e767334
commit 81de029
Showing
14 changed files
with
320 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: OracleLinux 镜像 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- oraclelinux/** | ||
- '!oraclelinux/README.md' | ||
- .github/workflows/image-build.yml | ||
- .github/workflows/oraclelinux.yml | ||
schedule: | ||
- cron: '0 8 1 * *' | ||
|
||
jobs: | ||
oraclelinux: | ||
uses: ./.github/workflows/image-build.yml | ||
name: OracleLinux | ||
strategy: | ||
matrix: | ||
oraclelinux-version: [9, 8, 7] | ||
is-slim: [false, true] | ||
include: | ||
- oraclelinux-latest-version: 9 | ||
- oraclelinux-version: 9 | ||
dnf: microdnf | ||
- oraclelinux-version: 8 | ||
dnf: microdnf | ||
with: | ||
image-label-title: OracleLinux | ||
image-label-description: OracleLinux 系统基础镜像 | ||
image-label-version: "${{ matrix.oraclelinux-version }}" | ||
image-build-context: ./debian/${{ matrix.oraclelinux-version }} | ||
image-build-args: | | ||
BASE_IMAGE=oraclelinux:${{ matrix.oraclelinux-version }}-slim | ||
IS_SLIM=${{ matrix.is-slim && 'slim' || '' }} | ||
${{ matrix.dnf && format('DNF={0}', matrix.dnf) || '' }} | ||
image-name: >- | ||
bromine0x23/oraclelinux | ||
ghcr.io/bromine0x23/oraclelinux | ||
image-tag: >- | ||
${{ matrix.oraclelinux-version }}${{ matrix.is-slim && '-slim' || '' }} | ||
${{ matrix.oraclelinux-version == matrix.oraclelinux-latest-version && (matrix.is-slim && 'slim' || 'latest') || '' }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Container Images | ||
|
||
* [Debian](debian) | ||
* [Fedora](fedora) | ||
* [Fedora](fedora) | ||
* [OracleLinux](oraclelinux) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
ARG BASE_IMAGE=oraclelinux:7 | ||
|
||
# hadolint ignore=DL3006 | ||
FROM $BASE_IMAGE | ||
|
||
ARG IS_SLIM= | ||
ARG DNF=dnf | ||
|
||
ARG LOCALE_LANGUAGE=zh | ||
ARG LOCALE_COUNTRY=CN | ||
ARG LOCALE_CHARMAP=UTF-8 | ||
ARG LOCALE_TIMEZONE=Asia/Shanghai | ||
|
||
ENV LANG ${LOCALE_LANGUAGE}_${LOCALE_COUNTRY}.${LOCALE_CHARMAP} | ||
ENV TZ ${LOCALE_TIMEZONE} | ||
|
||
# for DL4006: https://github.com/hadolint/hadolint/wiki/DL4006 | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
# hadolint ignore=DL3039,DL3041 | ||
RUN set -o errexit -o nounset -o xtrace \ | ||
&& yum repolist \ | ||
# 设置时区 | ||
&& ln -sf /usr/share/zoneinfo/${LOCALE_TIMEZONE} /etc/localtime \ | ||
# 设置语言环境 | ||
&& echo "override_install_langs=en_US.utf8:${LOCALE_LANGUAGE}_${LOCALE_COUNTRY}" >> /etc/yum.conf \ | ||
&& yum -y reinstall \ | ||
glibc-common \ | ||
# 安装翻译 | ||
&& if [ "${IS_SLIM}" == '' ]; then \ | ||
yum -y reinstall \ | ||
bash \ | ||
coreutils \ | ||
findutils \ | ||
grep \ | ||
sed \ | ||
shadow-utils \ | ||
yum \ | ||
; \ | ||
fi \ | ||
# 检查可升级软件包 | ||
&& (yum check-update || true) \ | ||
# 升级重要的或者有安全漏洞的软件包 | ||
&& yum -y update \ | ||
ca-certificates \ | ||
yum \ | ||
openssl-libs \ | ||
python-libs \ | ||
# 安装常用工具 | ||
&& if [ "${IS_SLIM}" == '' ]; then \ | ||
yum -y install --setopt=tsflags=nodocs \ | ||
bash \ | ||
bash-completion \ | ||
bind-utils \ | ||
binutils \ | ||
bzip2 \ | ||
curl \ | ||
gettext \ | ||
gzip \ | ||
htop \ | ||
iputils \ | ||
less \ | ||
nano \ | ||
net-tools \ | ||
procps-ng \ | ||
sudo \ | ||
tar \ | ||
telnet \ | ||
traceroute \ | ||
unzip \ | ||
vim \ | ||
wget \ | ||
xz \ | ||
zlib \ | ||
; \ | ||
fi \ | ||
&& yum -y clean all \ | ||
&& rm -rf /var/cache/yum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
ARG BASE_IMAGE=oraclelinux:8 | ||
|
||
# hadolint ignore=DL3006 | ||
FROM $BASE_IMAGE | ||
|
||
ARG IS_SLIM= | ||
ARG DNF=dnf | ||
|
||
ARG LOCALE_LANGUAGE=zh | ||
ARG LOCALE_COUNTRY=CN | ||
ARG LOCALE_CHARMAP=UTF-8 | ||
ARG LOCALE_TIMEZONE=Asia/Shanghai | ||
|
||
ENV LANG ${LOCALE_LANGUAGE}_${LOCALE_COUNTRY}.${LOCALE_CHARMAP} | ||
ENV TZ ${LOCALE_TIMEZONE} | ||
|
||
# for DL4006: https://github.com/hadolint/hadolint/wiki/DL4006 | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
# hadolint ignore=DL3039,DL3041 | ||
RUN set -o errexit -o nounset -o xtrace \ | ||
&& ${DNF} repolist \ | ||
# 设置时区 | ||
&& ln -sf /usr/share/zoneinfo/${LOCALE_TIMEZONE} /etc/localtime \ | ||
# 设置语言环境 | ||
&& ${DNF} -y install --nodocs --setopt='tsflags=nodocs' \ | ||
dnf \ | ||
langpacks-zh_CN \ | ||
glibc-langpack-zh \ | ||
# 检查可升级软件包 | ||
&& (dnf check-update || true) \ | ||
# 升级重要的或者有安全漏洞的软件包 | ||
&& dnf -y update \ | ||
ca-certificates \ | ||
dnf \ | ||
microdnf \ | ||
libgcrypt \ | ||
gnutls \ | ||
python3-libs \ | ||
# 安装常用工具 | ||
&& if [ "${IS_SLIM}" == '' ]; then \ | ||
dnf -y --best install --nodocs --setopt='tsflags=nodocs' \ | ||
bash \ | ||
bash-completion \ | ||
bind-utils \ | ||
binutils \ | ||
bzip2 \ | ||
curl \ | ||
dnf-plugins-core \ | ||
findutils \ | ||
gettext \ | ||
gzip \ | ||
htop \ | ||
iputils \ | ||
less \ | ||
nano \ | ||
net-tools \ | ||
procps-ng \ | ||
shadow-utils \ | ||
sudo \ | ||
tar \ | ||
telnet \ | ||
traceroute \ | ||
unzip \ | ||
vim \ | ||
wget \ | ||
xz \ | ||
yum \ | ||
zlib \ | ||
; \ | ||
fi \ | ||
&& dnf -y clean all \ | ||
&& rm -rf /var/cache/dnf \ | ||
&& rm -rf /var/cache/yum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
ARG BASE_IMAGE=oraclelinux:9 | ||
|
||
# hadolint ignore=DL3006 | ||
FROM $BASE_IMAGE | ||
|
||
ARG IS_SLIM= | ||
ARG DNF=dnf | ||
|
||
ARG LOCALE_LANGUAGE=zh | ||
ARG LOCALE_COUNTRY=CN | ||
ARG LOCALE_CHARMAP=UTF-8 | ||
ARG LOCALE_TIMEZONE=Asia/Shanghai | ||
|
||
ENV LANG ${LOCALE_LANGUAGE}_${LOCALE_COUNTRY}.${LOCALE_CHARMAP} | ||
ENV TZ ${LOCALE_TIMEZONE} | ||
|
||
# for DL4006: https://github.com/hadolint/hadolint/wiki/DL4006 | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
# hadolint ignore=DL3039,DL3041 | ||
RUN set -o errexit -o nounset -o xtrace \ | ||
&& ${DNF} repolist \ | ||
# 设置时区 | ||
&& ln -sf /usr/share/zoneinfo/${LOCALE_TIMEZONE} /etc/localtime \ | ||
# 设置语言环境 | ||
&& ${DNF} -y install --nodocs --setopt='tsflags=nodocs' \ | ||
dnf \ | ||
glibc-langpack-zh \ | ||
# 检查可升级软件包 | ||
&& (dnf check-update || true) \ | ||
# 升级重要的或者有安全漏洞的软件包 | ||
&& dnf -y update \ | ||
ca-certificates \ | ||
dnf \ | ||
# 安装常用工具 | ||
&& if [ "${IS_SLIM}" == '' ]; then \ | ||
dnf -y install --best --nodocs --setopt='tsflags=nodocs' \ | ||
bash-completion \ | ||
bind-utils \ | ||
binutils \ | ||
bzip2 \ | ||
curl \ | ||
findutils \ | ||
gettext \ | ||
gzip \ | ||
htop \ | ||
iputils \ | ||
less \ | ||
nano \ | ||
net-tools \ | ||
procps-ng \ | ||
shadow-utils \ | ||
sudo \ | ||
tar \ | ||
telnet \ | ||
traceroute \ | ||
unzip \ | ||
vim \ | ||
wget \ | ||
xz \ | ||
zlib \ | ||
; \ | ||
fi \ | ||
&& dnf -y clean all \ | ||
&& rm -rf /var/cache/dnf \ | ||
&& rm -rf /var/cache/yum |
Oops, something went wrong.