Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 3 additions & 25 deletions docker_templates/templates/snippet/setup_tzdata.Dockerfile.em
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
@{
releases_with_configured_tzdata = [
'artful',
'lucid',
'maverick',
'nutty',
'oneiric',
'precise',
'quantal',
'raring',
'saucy',
'trusty',
'utopic',
'vivid',
'wily',
'xenial',
'yakkety',
'zesty',
]
}@
@[if os_name == 'ubuntu' and os_code_name not in releases_with_configured_tzdata]@
@[if os_name == 'ubuntu']@

# setup timezone
RUN echo 'Etc/UTC' > /etc/timezone && \
ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
apt-get update && \
apt-get install -q -y --no-install-recommends tzdata && \
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y --no-install-recommends --no-upgrade tzdata && \
rm -rf /var/lib/apt/lists/*
@[end if]@