remove unnecessary cachebreaking, change comments

This commit is contained in:
maikkeli 2016-01-28 13:39:05 +10:30
parent 5c8066757f
commit 1ac4b71595

View File

@ -38,21 +38,20 @@ RUN apt-get install -y \
# Install LedgerSMB # Install LedgerSMB
WORKDIR /srv WORKDIR /srv
# update the following label to force docker to cache the latest git clone:
LABEL lsmb_docker_git_clone_cachebreak=2016-01-28
RUN git clone https://github.com/ledgersmb/LedgerSMB.git ledgersmb RUN git clone https://github.com/ledgersmb/LedgerSMB.git ledgersmb
# Set LedgerSMB version (git tag/branch/commit) # Set LedgerSMB version (git tag/branch/commit)
# Change the following line or set arg on docker build commandline; # Change LSMB_VERSION or use --build-arg on docker build commandline;
# eg: # eg:
# docker build --build-arg LSMB_VERSION=1.4.0 ./ # docker build --build-arg LSMB_VERSION=1.5.0-beta3 .
# docker build --build-arg LSMB_VERSION=1c00d61 ./ # docker build --build-arg LSMB_VERSION=1c00d61 .
# NOTE: if you use a branch name (or a reused tag name) instead of a commit checksum # NOTE: If you use a branch name (or a reused tag name) instead of a commit checksum
# then docker's caching will see nothing new and you'll end up with stale files # then docker's caching will see nothing new and you'll end up with stale files
# if that branch/tag has already been cached. # if that branch/tag has already been cached.
# #
# As a hack to reliably use a branch (eg, master), try the following: # As a hack to reliably update a branch (eg, master), --build-arg CACHEBREAK="$(date)":
# docker build --build-arg CACHEBREAK="$(date)" --build-arg LSMB_VERSION=master ./ # eg: docker build --build-arg CACHEBREAK="$(date)" --build-arg LSMB_VERSION=master .
ARG CACHEBREAK ARG CACHEBREAK
ARG LSMB_VERSION=1.5.0-beta3 ARG LSMB_VERSION=1.5.0-beta3
ENV LSMB_VERSION ${LSMB_VERSION} ENV LSMB_VERSION ${LSMB_VERSION}