Add both scripts for update mirrors
This commit is contained in:
parent
ebded71239
commit
6dc4ee28ab
12
Dockerfile
12
Dockerfile
|
@ -16,7 +16,7 @@
|
||||||
FROM ubuntu:trusty
|
FROM ubuntu:trusty
|
||||||
#FROM debian:jessie
|
#FROM debian:jessie
|
||||||
|
|
||||||
MAINTAINER bryan@turbojets.net
|
LABEL maintainer="urpylka@gmail.com"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
@ -61,16 +61,12 @@ RUN wget https://github.com/aptly-dev/aptly/raw/master/completion.d/aptly \
|
||||||
fi\n\
|
fi\n\
|
||||||
fi" >> /etc/bash.bashrc
|
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
|
# Install scripts
|
||||||
COPY assets/*.sh /opt/
|
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
|
# Bind mount location
|
||||||
VOLUME [ "/opt/aptly" ]
|
VOLUME [ "/opt/aptly" ]
|
||||||
|
|
|
@ -86,7 +86,7 @@ docker stop aptly
|
||||||
### Create a mirror of Ubuntu's main repository
|
### Create a mirror of Ubuntu's main repository
|
||||||
|
|
||||||
1. Attach to the container. How attach? [See this](##Configure-the-container).
|
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.
|
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.
|
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
|
## Building the container
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue