refactor: app/ 改名为 deploy/(三方镜像的部署编排),根 README 与交叉引用同步
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# 由 build.sh 预下载的 Python 源码包经 ADD 解压进镜像,
|
||||
# ADD 的源文件必须在构建上下文内,因此 *.tgz 不能在这里忽略
|
||||
build.sh
|
||||
.git/
|
||||
.DS_Store
|
||||
@@ -0,0 +1,3 @@
|
||||
# 构建产物 / 本地缓存
|
||||
*.tgz
|
||||
.DS_Store
|
||||
@@ -0,0 +1,8 @@
|
||||
FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:runtime-python310
|
||||
LABEL MAINTAINER="tianjun@odboy.cn"
|
||||
ENV TimeZone=Asia/Shanghai
|
||||
WORKDIR /home/admin
|
||||
|
||||
RUN set -e && yum install -y \
|
||||
epel-release \
|
||||
ansible;
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# 先下载 Python 源码包到当前目录,再基于本地文件构建镜像
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
IMAGE=registry.cn-shanghai.aliyuncs.com/odboy/kenaito:ansible
|
||||
docker build -t "${IMAGE}" .
|
||||
docker push "${IMAGE}"
|
||||
Reference in New Issue
Block a user