chore: Update Dockerfile to fix Teleport installation command and create teleport configuration file
Build and Push Docker Images / build-and-push (push) Successful in 17s
Build and Push Docker Images / build-and-push (push) Successful in 17s
This commit is contained in:
@@ -80,9 +80,8 @@ git config --global user.email $GIT_EMAIL
|
|||||||
# Get the hostname of the machine
|
# Get the hostname of the machine
|
||||||
HOSTNAME=$(hostname)
|
HOSTNAME=$(hostname)
|
||||||
|
|
||||||
## If teleport token is set, join the server
|
## If teleport token is set and there is no teleport.yaml file, create one
|
||||||
if [ -n "$TELEPORT_TOKEN" ]; then
|
if [ -n "$TELEPORT_TOKEN" ] && [! -f /etc/teleport.yaml]; then
|
||||||
rm -rf /etc/teleport.yaml
|
|
||||||
teleport configure --roles=node --token=$TELEPORT_TOKEN --proxy=$TELEPORT_URL --no-acme -o file
|
teleport configure --roles=node --token=$TELEPORT_TOKEN --proxy=$TELEPORT_URL --no-acme -o file
|
||||||
echo "Created teleport configuration file"
|
echo "Created teleport configuration file"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user