parent
f9c9382063
commit
2147b9bfbb
@ -0,0 +1,51 @@
|
||||
# 操作系统
|
||||
alpine:3.18
|
||||
ubuntu:22.04
|
||||
centos:7
|
||||
|
||||
# 编程语言
|
||||
python:3.11-slim
|
||||
node:18-alpine
|
||||
golang:1.20
|
||||
openjdk:17-jdk
|
||||
|
||||
# 数据库
|
||||
mysql:8.0
|
||||
redis:7.0-alpine
|
||||
postgres:15-alpine
|
||||
mongo:6.0
|
||||
|
||||
# Web服务器
|
||||
nginx:1.25-alpine
|
||||
traefik:v2.10
|
||||
httpd:2.4-alpine
|
||||
|
||||
# 工具类
|
||||
busybox:1.36
|
||||
portainer/portainer-ce:2.19
|
||||
registry:2
|
||||
|
||||
# 监控日志
|
||||
prom/prometheus:v2.47
|
||||
grafana/grafana:10.0
|
||||
elasticsearch:8.9
|
||||
|
||||
# CI/CD
|
||||
jenkins/jenkins:2.426-jdk17
|
||||
gitlab/gitlab-ce:16.3
|
||||
|
||||
# 容器工具
|
||||
docker:dind
|
||||
containerd/nerdctl:1.5
|
||||
|
||||
# 大数据
|
||||
apache/spark:3.4.1
|
||||
apache/kafka:3.5
|
||||
|
||||
# 机器学习
|
||||
tensorflow/tensorflow:2.13-gpu
|
||||
pytorch/pytorch:2.0.1-cuda11.7
|
||||
|
||||
# gcr.io 镜像替代方案
|
||||
# quay-mirror.ccs.tencentyun.com/coreos/flannel:v0.22.3
|
||||
# registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.9
|
||||
@ -0,0 +1,28 @@
|
||||
alpine:3.18
|
||||
ubuntu:22.04
|
||||
centos:7
|
||||
python:3.11-slim
|
||||
node:18-alpine
|
||||
golang:1.20
|
||||
openjdk:17-jdk
|
||||
mysql:8.0
|
||||
redis:7.0-alpine
|
||||
postgres:15-alpine
|
||||
mongo:6.0
|
||||
nginx:1.25-alpine
|
||||
traefik:v2.10
|
||||
httpd:2.4-alpine
|
||||
busybox:1.36
|
||||
portainer/portainer-ce:2.19
|
||||
registry:2
|
||||
prom/prometheus:v2.47
|
||||
grafana/grafana:10.0
|
||||
elasticsearch:8.9
|
||||
jenkins/jenkins:2.426-jdk17
|
||||
gitlab/gitlab-ce:16.3
|
||||
docker:dind
|
||||
containerd/nerdctl:1.5
|
||||
apache/spark:3.4.1
|
||||
apache/kafka:3.5
|
||||
tensorflow/tensorflow:2.13-gpu
|
||||
pytorch/pytorch:2.0.1-cuda11.7
|
||||
@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
# 描述:利用国内镜像源加速拉取,但保留原始镜像名称
|
||||
# 作者:你的名字
|
||||
# 日期:$(date +%Y-%m-%d)
|
||||
|
||||
# 定义镜像列表文件
|
||||
IMAGE_LIST="images.txt"
|
||||
LOG_FILE="pull.log"
|
||||
FAILED_FILE="failed.txt"
|
||||
|
||||
# 清空旧日志
|
||||
> "$LOG_FILE"
|
||||
> "$FAILED_FILE"
|
||||
|
||||
# 开始拉取
|
||||
total=$(wc -l < "$IMAGE_LIST")
|
||||
current=1
|
||||
|
||||
echo "===== 开始批量拉取镜像(共 $total 个) ====="
|
||||
while read -r image; do
|
||||
echo "[$current/$total] 拉取镜像: $image"
|
||||
|
||||
# 执行拉取命令
|
||||
if docker pull $image >> "$LOG_FILE" 2>&1; then
|
||||
echo "成功: $image"
|
||||
else
|
||||
echo "失败: $image" | tee -a "$FAILED_FILE"
|
||||
fi
|
||||
|
||||
((current++))
|
||||
echo "----------------------------------------"
|
||||
done < "$IMAGE_LIST"
|
||||
|
||||
# 输出统计结果
|
||||
success=$(grep -c "成功:" "$LOG_FILE")
|
||||
failed=$(wc -l < "$FAILED_FILE")
|
||||
|
||||
echo "===== 拉取完成 ====="
|
||||
echo "成功: $success 个"
|
||||
echo "失败: $failed 个"
|
||||
[[ $failed -ne 0 ]] && echo "查看失败列表: cat $FAILED_FILE"
|
||||
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: prometheus
|
||||
ports:
|
||||
- "9090:9090"
|
||||
volumes:
|
||||
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- ./prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
- "--web.enable-lifecycle" # 允许通过 API 重新加载配置
|
||||
networks:
|
||||
- monitoring
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana
|
||||
ports:
|
||||
- "3100:3000"
|
||||
volumes:
|
||||
- ./grafana/grafana.ini:/etc/grafana/grafana.ini # 可选:自定义 Grafana 配置
|
||||
networks:
|
||||
- monitoring
|
||||
depends_on:
|
||||
- prometheus
|
||||
|
||||
node-exporter: # 示例:部署 Node Exporter 监控本机
|
||||
image: prom/node-exporter:latest
|
||||
container_name: node-exporter
|
||||
ports:
|
||||
- "9100:9100"
|
||||
networks:
|
||||
- monitoring
|
||||
|
||||
networks:
|
||||
monitoring:
|
||||
driver: bridge
|
||||
@ -0,0 +1,2 @@
|
||||
admin
|
||||
-XGQY8KCl_RtKBW_lMVf
|
||||
@ -0,0 +1,15 @@
|
||||
version: '3.3'
|
||||
services:
|
||||
stirling-pdf:
|
||||
image: docker.stirlingpdf.com/stirlingtools/stirling-pdf:latest
|
||||
ports:
|
||||
- '8080:8080'
|
||||
volumes:
|
||||
- ./StirlingPDF/trainingData:/usr/share/tessdata # Required for extra OCR languages
|
||||
- ./StirlingPDF/extraConfigs:/configs
|
||||
- ./StirlingPDF/customFiles:/customFiles/
|
||||
- ./StirlingPDF/logs:/logs/
|
||||
- ./StirlingPDF/pipeline:/pipeline/
|
||||
environment:
|
||||
- DOCKER_ENABLE_SECURITY=false
|
||||
- LANGS=zh_CN
|
||||
Loading…
Reference in new issue