summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Smirnov <urpylka@gmail.com>2018-09-13 04:18:16 +0300
committerArtem Smirnov <urpylka@gmail.com>2018-09-14 00:41:46 +0300
commit6dc4ee28abfeb3e01b77876350e703f74c196b20 (patch)
tree413cfe826b20405702d797ada1c26ff328a063d3
parentebded7123970342c512511fb0fe90bf26dbcd096 (diff)
Add both scripts for update mirrors
-rw-r--r--Dockerfile12
-rw-r--r--README.md4
-rwxr-xr-xassets/update_mirror_debian.sh (renamed from assets/update_mirror/update_mirror_debian.sh)0
-rwxr-xr-xassets/update_mirror_ubuntu.sh (renamed from assets/update_mirror/update_mirror_ubuntu.sh)0
4 files changed, 6 insertions, 10 deletions
diff --git a/Dockerfile b/Dockerfile
index ee267a0..e92f6d5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,7 +16,7 @@
16FROM ubuntu:trusty 16FROM ubuntu:trusty
17#FROM debian:jessie 17#FROM debian:jessie
18 18
19MAINTAINER bryan@turbojets.net 19LABEL maintainer="urpylka@gmail.com"
20 20
21ENV DEBIAN_FRONTEND noninteractive 21ENV DEBIAN_FRONTEND noninteractive
22 22
@@ -61,16 +61,12 @@ RUN wget https://github.com/aptly-dev/aptly/raw/master/completion.d/aptly \
61 fi\n\ 61 fi\n\
62fi" >> /etc/bash.bashrc 62fi" >> /etc/bash.bashrc
63 63
64# Install Nginx Config
65COPY assets/nginx.conf.sh /opt/nginx.conf.sh
66COPY assets/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf
67RUN echo "daemon off;" >> /etc/nginx/nginx.conf
68
69# Install scripts 64# Install scripts
70COPY assets/*.sh /opt/ 65COPY assets/*.sh /opt/
71COPY assets/update_mirror/update_mirror_ubuntu.sh /opt/update_mirror.sh
72#COPY assets/update_mirror/update_mirror_debian.sh /opt/update_mirror.sh
73 66
67# Install Nginx Config
68COPY assets/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf
69RUN echo "daemon off;" >> /etc/nginx/nginx.conf
74 70
75# Bind mount location 71# Bind mount location
76VOLUME [ "/opt/aptly" ] 72VOLUME [ "/opt/aptly" ]
diff --git a/README.md b/README.md
index 6833f17..1417c01 100644
--- a/README.md
+++ b/README.md
@@ -86,7 +86,7 @@ docker stop aptly
86### Create a mirror of Ubuntu's main repository 86### Create a mirror of Ubuntu's main repository
87 87
881. Attach to the container. How attach? [See this](##Configure-the-container). 881. Attach to the container. How attach? [See this](##Configure-the-container).
892. Run `/opt/update_mirror.sh`. 892. Run `/opt/update_mirror_ubuntu.sh`.
90 90
91By 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. 91By 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.
92 92
@@ -98,7 +98,7 @@ By default, this script will automate the creation of an Ubuntu 14.04 Trusty rep
98 98
99When the script completes, you should have a functional mirror that you can point a client to. 99When the script completes, you should have a functional mirror that you can point a client to.
100 100
101For create Debian's mirror use `/opt/debian_mirror.sh`. 101For create Debian's mirror use `/opt/update_mirror_debian.sh`.
102 102
103## Building the container 103## Building the container
104 104
diff --git a/assets/update_mirror/update_mirror_debian.sh b/assets/update_mirror_debian.sh
index f58bf0f..f58bf0f 100755
--- a/assets/update_mirror/update_mirror_debian.sh
+++ b/assets/update_mirror_debian.sh
diff --git a/assets/update_mirror/update_mirror_ubuntu.sh b/assets/update_mirror_ubuntu.sh
index f05052d..f05052d 100755
--- a/assets/update_mirror/update_mirror_ubuntu.sh
+++ b/assets/update_mirror_ubuntu.sh