Skip to content
Snippets Groups Projects
Verified Commit 06b8abe0 authored by Lars Bilke's avatar Lars Bilke
Browse files

Move timezone before recipes.

parent f53f0bf8
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,18 @@ def main(): # pragma: no cover
if "jupyter/base-notebook-ubuntu" in args.runtime_base_image:
Stage1 += raw(docker="USER root")
# set timezone
packages_tz = packages(ospackages=["tzdata"])
env_tz = environment(variables={"TZ": "Europe/Berlin"})
shell_tz = shell(
commands=[
"ln -snf /usr/share/zoneinfo/$TZ /etc/localtime",
"dpkg-reconfigure -f noninteractive tzdata",
]
)
Stage0 += [packages_tz, env_tz, shell_tz]
Stage1 += [packages_tz, env_tz, shell_tz]
cwd = os.getcwd()
img_file = ""
out_dir = f"{args.out}/{args.format}"
......@@ -294,18 +306,6 @@ def main(): # pragma: no cover
Stage0 += pip(packages=args.pip, pip="pip3")
Stage1 += pip(packages=args.pip, pip="pip3")
# set timezone
packages_tz = packages(ospackages=["tzdata"])
env_tz = environment(variables={"TZ": "Europe/Berlin"})
shell_tz = shell(
commands=[
"ln -snf /usr/share/zoneinfo/$TZ /etc/localtime",
"dpkg-reconfigure -f noninteractive tzdata",
]
)
Stage0 += [packages_tz, env_tz, shell_tz]
Stage1 += [packages_tz, env_tz, shell_tz]
# Create definition
hpccm.config.set_container_format(args.format)
hpccm.config.set_singularity_version("3.5")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment