Hello,
I'm a singularity novice, have mercy! I'm just trying to symlink (or alias) /usr/bin/python3 -> /usr/bin/python. I know I could bootstrap the python:latest Docker image that sets the symlink for me, but I'd rather have a way to do it using another base.
Building the container and running the container like this doesn't work:
Bootstrap: docker
From: ubuntu:latest
%post
apt-get -y update && apt-get -y install python3
% environment
%runscript
ln -s python3 /usr/bin/python
exec python --version
because /usr/bin is read-only.
And then when I try just aliasing:
Bootstrap: docker
From: ubuntu:latest
%post
apt-get -y update && apt-get -y install python3
% environment
%runscript
alias python=python3
exec python --version
I still get error - "exec: python: not found" (the alias wasn't set). When I shell into the container, I can alias python. Don't want to edit the user's .bashrc file or anything.
Any advice? Thanks!