Add both scripts for update mirrors

This commit is contained in:
Artem Smirnov 2018-09-13 04:18:16 +03:00
parent ebded71239
commit 6dc4ee28ab
4 changed files with 6 additions and 10 deletions

View File

@ -16,7 +16,7 @@
FROM ubuntu:trusty
#FROM debian:jessie
MAINTAINER bryan@turbojets.net
LABEL maintainer="urpylka@gmail.com"
ENV DEBIAN_FRONTEND noninteractive
@ -61,16 +61,12 @@ RUN wget https://github.com/aptly-dev/aptly/raw/master/completion.d/aptly \
fi\n\
fi" >> /etc/bash.bashrc
# Install Nginx Config
COPY assets/nginx.conf.sh /opt/nginx.conf.sh
COPY assets/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
# Install scripts
COPY assets/*.sh /opt/
COPY assets/update_mirror/update_mirror_ubuntu.sh /opt/update_mirror.sh
#COPY assets/update_mirror/update_mirror_debian.sh /opt/update_mirror.sh
# Install Nginx Config
COPY assets/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
# Bind mount location
VOLUME [ "/opt/aptly" ]

View File

@ -86,7 +86,7 @@ docker stop aptly
### Create a mirror of Ubuntu's main repository
1. Attach to the container. How attach? [See this](##Configure-the-container).
2. Run `/opt/update_mirror.sh`.
2. Run `/opt/update_mirror_ubuntu.sh`.
By default, this script will automate the creation of an Ubuntu 14.04 Trusty repository with the main and universe components, you can adjust the variables in the script to suit your needs.
@ -98,7 +98,7 @@ By default, this script will automate the creation of an Ubuntu 14.04 Trusty rep
When the script completes, you should have a functional mirror that you can point a client to.
For create Debian's mirror use `/opt/debian_mirror.sh`.
For create Debian's mirror use `/opt/update_mirror_debian.sh`.
## Building the container