MODE as docker build arg
This commit is contained in:
parent
5f2940f575
commit
0d119b55b1
|
@ -55,6 +55,9 @@ ENV EMAIL_ADDRESS="youremail@example.com"
|
||||||
ENV GPG_PASSWORD="PickAPassword"
|
ENV GPG_PASSWORD="PickAPassword"
|
||||||
ENV HOSTNAME=localhost
|
ENV HOSTNAME=localhost
|
||||||
|
|
||||||
|
ARG MODE=packages
|
||||||
|
ENV MODE ${MODE}
|
||||||
|
|
||||||
COPY assets/packages /opt/packages
|
COPY assets/packages /opt/packages
|
||||||
|
|
||||||
RUN /opt/startup.sh
|
RUN /opt/startup.sh
|
||||||
|
|
|
@ -15,7 +15,7 @@ UBUNTU_RELEASE=xenial
|
||||||
UPSTREAM_URL="http://archive.ubuntu.com/ubuntu/"
|
UPSTREAM_URL="http://archive.ubuntu.com/ubuntu/"
|
||||||
COMPONENTS=( main universe )
|
COMPONENTS=( main universe )
|
||||||
REPOS=( ${UBUNTU_RELEASE} ${UBUNTU_RELEASE}-updates ${UBUNTU_RELEASE}-security )
|
REPOS=( ${UBUNTU_RELEASE} ${UBUNTU_RELEASE}-updates ${UBUNTU_RELEASE}-security )
|
||||||
MODE='packages' # packages - mirror specified packages or all
|
|
||||||
if [ "$MODE" = "packages" ]; then
|
if [ "$MODE" = "packages" ]; then
|
||||||
FILTER_OPTS=(-filter="$(cat /opt/packages | paste -sd \| -)" -filter-with-deps)
|
FILTER_OPTS=(-filter="$(cat /opt/packages | paste -sd \| -)" -filter-with-deps)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue