Skip to content

Commit

Permalink
Set timezone to avoid docker build hang
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-forbes-cp committed Jan 17, 2025
1 parent a80780f commit 77dd6de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/dockerfiles/Dockerfile_22.04
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ RUN apt-get update
# FROM INFRA UBUNTU BASE

RUN apt-get install -y git git-crypt wget curl jq xz-utils build-essential zlib1g-dev lsb-release libssl-dev
# Set the timezone, required to avoid hanging on input
ENV TZ=Europe/London
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# FROM 22 OCK BASE - if not already added

Expand Down
3 changes: 3 additions & 0 deletions .github/dockerfiles/Dockerfile_24.04
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ RUN apt-get update
# FROM INFRA UBUNTU BASE

RUN apt-get install -y git git-crypt wget curl jq xz-utils build-essential zlib1g-dev lsb-release libssl-dev
# Set the timezone, required to avoid hanging on input
ENV TZ=Europe/London
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# FROM 24 OCK BASE - if not already added

Expand Down

0 comments on commit 77dd6de

Please sign in to comment.