Skip to content

Problem on install in container  #292

@mSamiolo

Description

@mSamiolo

Hi Guys,

I noticed that when the package is to be installed into a container (namely Apptainer) the installation fails because of:

... [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set0_untrusted.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set0_verified_chain.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set_cert.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set_current_cert.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set_default.3: Cannot change ownership to uid 261840, gid 261840: Invalid argument [09:26:37] tar: ./share/man/man3/X509_STORE_CTX_set_error.3: Cannot change ownership to uid 261840, gid 261840: Invalid ...


There is a walkaround. Basically you execute
alias tar='tar --no-same-owner'
And the build up will works nicely. I was wonder if one of you can replicate the problem. I leave below the container instruction to build it with `apptainer build xxx.sif xxx.def:

`
Bootstrap: docker
From: julia:1.10.4-bookworm

%files
script.jl /opt/script.jl

%post
apt update
apt install libpq-dev -y
export JULIA_DEPOT_PATH="/usr/local/julia/local/share/julia"
alias tar='tar --no-same-owner'
julia --project="." -e 'using Pkg;
Pkg.add("LibPQ");
Pkg.add("Tables");
Pkg.build();
Pkg.instantiate();
Pkg.precompile();'

%runscript
julia /opt/script.jl "$@"
`

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