https://github.com/tasshi-me/apt-mirror-one-shot-docker
apt-mirrorのone-shot dockerコンテナ
https://github.com/tasshi-me/apt-mirror-one-shot-docker
apt-mirror docker docker-image
Last synced: about 2 months ago
JSON representation
apt-mirrorのone-shot dockerコンテナ
- Host: GitHub
- URL: https://github.com/tasshi-me/apt-mirror-one-shot-docker
- Owner: tasshi-me
- Created: 2019-01-08T13:45:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T02:31:47.000Z (over 1 year ago)
- Last Synced: 2025-02-08T15:31:45.187Z (4 months ago)
- Topics: apt-mirror, docker, docker-image
- Language: Shell
- Homepage: https://cloud.docker.com/repository/docker/mshrtsr/apt-mirror-one-shot
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apt-mirror-one-shot-docker
apt-mirrorのdockerコンテナ起動するとapt-mirrorを1回だけ起動する
## Description
Docker上でapt-mirrorを実行するコンテナ
コンテナを起動するとapt-mirrorを自動実行し、実行終了と共にコンテナを終了します。ディレクトリ構成
.
├── Dockerfile.debian-slim # debianベースのDockerfile
├── Dockerfile.ubuntu # ubuntuベースのDockerfile
├── README.md
├── mirror.list.d # apt-mirror設定ファイルのテンプレート群
│ ├── raspbian.list # Raspberry piリポジトリミラー用
│ └── ubuntu_xenial_amd64.list # ubuntu 16.04 amd64リポジトリミラー用
└── run_apt-mirror.sh # コンテナ起動時に実行されるスクリプト## Requirement
#依存ソフトウェア
docker#依存コンテナ
debian:9-slim # Dockerfile.debian-slim
ubuntu:18.04 # Dockerfile.ubuntu## Usage
#コンテナのプル
$ docker pull mshrtsr/apt-mirror-one-shot:latest#(ビルド)
$ docker build . yourcontainername:latest --file=./Dockerfile.debian-slim#コンテナ起動
$ docker run -it mshrtsr/apt-mirror-one-shot:latest#Raspberry Pi向けにミラーリポジトリを作成する場合
$ docker run -it -v /your_configfile_dir/raspbian.list:/etc/apt/mirror.list mshrtsr/apt-mirror-one-shot