Browse Source

MODE as docker build arg

Andrey Volkov 6 months ago
parent
commit
0d119b55b1
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      Dockerfile
  2. 1
    1
      assets/update_mirror_ubuntu.sh

+ 3
- 0
Dockerfile View File

@@ -55,6 +55,9 @@ ENV EMAIL_ADDRESS="youremail@example.com"
55 55
 ENV GPG_PASSWORD="PickAPassword"
56 56
 ENV HOSTNAME=localhost
57 57
 
58
+ARG MODE=packages
59
+ENV MODE ${MODE}
60
+
58 61
 COPY assets/packages /opt/packages
59 62
 
60 63
 RUN /opt/startup.sh

+ 1
- 1
assets/update_mirror_ubuntu.sh View File

@@ -15,7 +15,7 @@ UBUNTU_RELEASE=xenial
15 15
 UPSTREAM_URL="http://archive.ubuntu.com/ubuntu/"
16 16
 COMPONENTS=( main universe )
17 17
 REPOS=( ${UBUNTU_RELEASE} ${UBUNTU_RELEASE}-updates ${UBUNTU_RELEASE}-security )
18
-MODE='packages' # packages - mirror specified packages or all
18
+
19 19
 if [ "$MODE" = "packages" ]; then
20 20
     FILTER_OPTS=(-filter="$(cat /opt/packages | paste -sd \| -)" -filter-with-deps)
21 21
 else

Loading…
Cancel
Save