Browse Source

Add both scripts for update mirrors

tags/v1.0
Artem Smirnov 10 months ago
parent
commit
6dc4ee28ab
4 changed files with 6 additions and 10 deletions
  1. 4
    8
      Dockerfile
  2. 2
    2
      README.md
  3. 0
    0
      assets/update_mirror_debian.sh
  4. 0
    0
      assets/update_mirror_ubuntu.sh

+ 4
- 8
Dockerfile View File

@@ -16,7 +16,7 @@
16 16
 FROM ubuntu:trusty
17 17
 #FROM debian:jessie
18 18
 
19
-MAINTAINER bryan@turbojets.net
19
+LABEL maintainer="urpylka@gmail.com"
20 20
 
21 21
 ENV DEBIAN_FRONTEND noninteractive
22 22
 
@@ -61,16 +61,12 @@ RUN wget https://github.com/aptly-dev/aptly/raw/master/completion.d/aptly \
61 61
   fi\n\
62 62
 fi" >> /etc/bash.bashrc
63 63
 
64
-# Install Nginx Config
65
-COPY assets/nginx.conf.sh /opt/nginx.conf.sh
66
-COPY assets/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf
67
-RUN echo "daemon off;" >> /etc/nginx/nginx.conf
68
-
69 64
 # Install scripts
70 65
 COPY assets/*.sh /opt/
71
-COPY 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
68
+COPY assets/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf
69
+RUN echo "daemon off;" >> /etc/nginx/nginx.conf
74 70
 
75 71
 # Bind mount location
76 72
 VOLUME [ "/opt/aptly" ]

+ 2
- 2
README.md View File

@@ -86,7 +86,7 @@ docker stop aptly
86 86
 ### Create a mirror of Ubuntu's main repository
87 87
 
88 88
 1. Attach to the container. How attach? [See this](##Configure-the-container).
89
-2. Run `/opt/update_mirror.sh`.
89
+2. Run `/opt/update_mirror_ubuntu.sh`.
90 90
 
91 91
 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.
92 92
 
@@ -98,7 +98,7 @@ By default, this script will automate the creation of an Ubuntu 14.04 Trusty rep
98 98
 
99 99
 When the script completes, you should have a functional mirror that you can point a client to.
100 100
 
101
-For create Debian's mirror use `/opt/debian_mirror.sh`.
101
+For create Debian's mirror use `/opt/update_mirror_debian.sh`.
102 102
 
103 103
 ## Building the container
104 104
 

assets/update_mirror/update_mirror_debian.sh → assets/update_mirror_debian.sh View File


assets/update_mirror/update_mirror_ubuntu.sh → assets/update_mirror_ubuntu.sh View File


Loading…
Cancel
Save