chore,scripts(run-docker.sh): allow changing $CONTAINER_HOME_DIR#29034
chore,scripts(run-docker.sh): allow changing $CONTAINER_HOME_DIR#29034NoNameWasDefined wants to merge 1 commit into
Conversation
Makes possible to use custom images with a different $HOME
| : ${TERMUX_DOCKER_EXEC_EXTRA_ARGS:=} | ||
| BUILDSCRIPT_NAME=build-package.sh | ||
| CONTAINER_HOME_DIR=/home/builder | ||
| : ${CONTAINER_HOME_DIR:=/home/builder} |
There was a problem hiding this comment.
Its not hardcoded anywhere else but in apparmor profile atleast it is
There was a problem hiding this comment.
Its not hardcoded anywhere else but in apparmor profile atleast it is
What can we do? I am just aware that you added AppArmor to the Docker run script, but I don't know how it affects it.
|
@robertkirkman it is for the project of termux-docker for building packages |
|
@NoNameWasDefined In my opinion the Yes, it would be possible to combine them into a single script that supports a toggle to switch modes, which would be more DRY, but there is a balance for DRY and at a certain point the script is different enough that combining them would just make too many if statements and make the whole code harder to read for people who need to use each mode. for example it is currently named |
Makes possible to use custom images with a different $HOME
But I am not sure if somewhere in the scripts it could be hardcoded.