mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-15 20:58:09 +00:00

- add more logging - retrieve docker repo and version tag from .env - only use specified repo / version for download image - allow for user interrupt
13 lines
551 B
Bash
Executable file
13 lines
551 B
Bash
Executable file
#!/usr/bin/env bash
|
|
TPOT_REPO=$(grep -E "^TPOT_REPO" .env | cut -d "=" -f2-)
|
|
TPOT_VERSION=$(grep -E "^TPOT_VERSION" .env | cut -d "=" -f2-)
|
|
USER=$(id -u)
|
|
USERNAME=$(id -un)
|
|
GROUP=$(id -g)
|
|
echo "### Repository: ${TPOT_REPO}"
|
|
echo "### Version Tag: ${TPOT_VERSION}"
|
|
echo "### Your User Name: ${USERNAME}"
|
|
echo "### Your User ID: ${USER}"
|
|
echo "### Your Group ID: ${GROUP}"
|
|
echo
|
|
docker run -v $HOME/tpotce:/data --entrypoint "bash" -it -u "${USER}":"${GROUP}" "${TPOT_REPO}"/tpotinit:"${TPOT_VERSION}" "/opt/tpot/bin/genuser.sh"
|