1 Star 0 Fork 0

fuyb/apt-offline-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
fuyb 提交于 2024-07-27 00:59 +08:00 . success
version: "3.8"
services:
setup:
image: ubuntu:${UBUNTU_VERSION:-22.04}
user: "0:0"
privileged: true
environment:
- ./output:/tmp/output:rw
command: >
bash -c '
if [ "x${UBUNTU_VERSION}" == "x" ]; then
echo "Set the UBUNTU_VERSION environment variable in the .env file";
exit 1;
fi;
if [ "x${PKG_DOWNLOAD_LIST}" == "x" ]; then
echo "Set the PKG_DOWNLOAD_LIST environment variable in the .env file";
exit 1;
fi;
echo 'ok' > /tmp/.unlock;
sleep 3;
echo "Setup done!";
'
healthcheck:
test: [ "CMD-SHELL", "[ -f /tmp/.unlock ]" ]
interval: 1s
timeout: 5s
retries: 120
downloader:
depends_on:
setup:
condition: service_healthy
image: ubuntu:${UBUNTU_VERSION:-22.04}-apk-offline
build:
context: .
args:
- UBUNTU_VERSION=${UBUNTU_VERSION}
user: "0:0"
privileged: true
volumes:
- ./docker-entrypoint.sh:/docker-entrypoint.sh
- ./output:/tmp/output:rw
environment:
- PKG_DOWNLOAD_LIST=${PKG_DOWNLOAD_LIST}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HALOBING/apt-offline-docker.git
git@gitee.com:HALOBING/apt-offline-docker.git
HALOBING
apt-offline-docker
apt-offline-docker
master

搜索帮助