This commit is contained in:
parent
903be7c5ad
commit
9e37f72c0a
@ -8,9 +8,12 @@ CREATEREPO_IMAGE_VERSION=0.17.2
|
|||||||
CUSTOM_UID=$(getent passwd ${USER} | cut -d ':' -f 3)
|
CUSTOM_UID=$(getent passwd ${USER} | cut -d ':' -f 3)
|
||||||
CUSTOM_GID=$(getent passwd ${USER} | cut -d ':' -f 4)
|
CUSTOM_GID=$(getent passwd ${USER} | cut -d ':' -f 4)
|
||||||
|
|
||||||
|
# Extract last element of passed arguments
|
||||||
|
REPO_DIR=${@: -1}
|
||||||
|
|
||||||
${CONTAINER_RUNTIME} run \
|
${CONTAINER_RUNTIME} run \
|
||||||
--rm \
|
--rm \
|
||||||
--volume ${PWD}:${PWD} \
|
--volume ${REPO_DIR}:${REPO_DIR} \
|
||||||
--workdir ${PWD} \
|
--workdir ${REPO_DIR} \
|
||||||
--user ${CUSTOM_UID}:${CUSTOM_GID} \
|
--user ${CUSTOM_UID}:${CUSTOM_GID} \
|
||||||
docker.io/volkerraschek/createrepo:${CREATEREPO_IMAGE_VERSION} ${@}
|
docker.io/volkerraschek/createrepo:${CREATEREPO_IMAGE_VERSION} ${@}
|
||||||
|
Loading…
Reference in New Issue
Block a user