This commit is contained in:
colben 2024-09-11 12:17:28 +08:00
parent 224ec8a947
commit a05f3e15eb
4 changed files with 7 additions and 9 deletions

View File

@ -9,7 +9,7 @@ export LANG=en_US.UTF-8
[ 'x86_64' == "$(uname -m)" ] && ARCH='' || ARCH="-$(uname -m)"
ROOT_DIR="$(cd $(dirname $0) && pwd)"
IMAGE="harbor.colben.cn/general/$(basename ${0%.sh})$ARCH:7"
IMAGE="harbor.colben.cn/general/centos$ARCH:7"
if [ -t 0 ]; then
function Print { echo -e "\033[36;1m$(date +'[%F %T]')\033[32;1m $*\033[0m"; }

View File

@ -9,8 +9,7 @@ export LANG=en_US.UTF-8
[ 'x86_64' == "$(uname -m)" ] && ARCH='' || ARCH="-$(uname -m)"
ROOT_DIR="$(cd $(dirname $0) && pwd)"
VERSION="${1%%.*}"
IMAGE="harbor.colben.cn/general/$(basename ${0%.sh})$ARCH:$VERSION"
IMAGE="harbor.colben.cn/general/jdk$ARCH:17"
if [ -t 0 ]; then
function Print { echo -e "\033[36;1m$(date +'[%F %T]')\033[32;1m $*\033[0m"; }
@ -42,11 +41,11 @@ function YesOrNo {
}
function Update {
Warn Preparing jdk $VERSION ...
Warn Preparing jdk 17 ...
cd $ROOT_DIR
rm -rf ADD && mkdir ADD
cd ADD
tar zxf $(ls /release/RUNTIME/jdk-$VERSION*_linux${ARCH:--x64}_bin.tar.gz|tail -1)
tar zxf /release/RUNTIME/jdk-17_linux${ARCH:--x64}_bin.tar.gz
mv jdk* jdk
}

View File

@ -41,7 +41,7 @@ function YesOrNo {
}
function Update {
Warn Preparing jdk 8
Warn Preparing jdk 8 ...
cd $ROOT_DIR
rm -rf ADD && mkdir ADD
cd ADD

View File

@ -9,11 +9,10 @@ name=MySQL 8.0 Community Server\n\
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/8/${arch#-}/\n\
enabled=1\n\
gpgcheck=0\n\
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022\n\
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql\n\
" > /etc/yum.repos.d/mysql-8.0.repo \
&& dnf makecache \
&& dnf install mysql-community-server -y --disablerepo=AppStream \
&& dnf -y module disable mysql \
&& dnf install mysql-community-server -y \
&& rm -rf /usr/sbin/mysqld-debug \
/var/cache/yum \
/var/lib/yum \