Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on install in container #292

Open
mSamiolo opened this issue Jul 11, 2024 · 0 comments
Open

Problem on install in container #292

mSamiolo opened this issue Jul 11, 2024 · 0 comments

Comments

@mSamiolo
Copy link

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 ...

The solution is to

alias tar='tar --no-same-owner'

And it will go to the end and 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 "$@"
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant