Skip to content

/etc/localtime warning #1060

Description

@LouisLeNezet

Hi,

I'm using a container built on seqera with:

channels:
  - conda-forge
  - bioconda
dependencies:
  - conda-forge::r-data.table=1.17.8
  - conda-forge::r-janitor=2.2.1
  - conda-forge::r-r.utils=2.13.0
  - conda-forge::r-nfcore.utils=0.0.2

This library janitor calls lubridate that needs /etc/localtime.
I then obtain the warning:

    INFO:    Converting SIF file to temporary sandbox...
    WARNING: underlay of /etc/localtime required more than 50 (74) bind mounts
    Warning: Your system is mis-configured: '/etc/localtime' is not a symlink
    Warning: '/etc/localtime' is not identical to any known timezone file

This warning appears in other containers (5 match on Nextflow slack and 10 on nf-core), it is then converted to an error in my nf-core module when I do library(janitor).
I've fixed it by adding Sys.setenv(TZ = "UTC") in my R script but I was wondering if a solution could be found at the container building level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions