An open API service indexing awesome lists of open source software.

https://github.com/tasshi-me/apt-mirror-docker

apt-mirrorのdockerコンテナ
https://github.com/tasshi-me/apt-mirror-docker

Last synced: 2 months ago
JSON representation

apt-mirrorのdockerコンテナ

Awesome Lists containing this project

README

        

# apt-mirror-docker
apt-mirrorのdockerコンテナ

起動するとapt-mirrorをcron実行する

## Description
Docker上でapt-mirrorを実行するコンテナ
コンテナを起動するとcronが起動し、スケジュールされた時間にapt-mirrorを実行します。

ディレクトリ構成


.
├── Dockerfile # debianベースのDockerfile
├── README.md
├── cron.d
│ └── apt-mirror # apt-mirrorユーザのcronファイル
├── 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

## Usage


#コンテナのプル
$ docker pull mshrtsr/apt-mirror:latest

#(ビルド)
$ docker build . yourcontainername:latest

#コンテナ起動
$ docker run -it mshrtsr/apt-mirror:latest

#Raspberry Pi向けにミラーリポジトリを作成する場合
$ docker run -it -v /your_configfile_dir/raspbian.list:/etc/apt/mirror.list mshrtsr/apt-mirror