start.sh: Generate an SSH keypair
We'll use a fresh keypair for each invocation.
#!/bin/bash
-# Clone paddles and teuthology
-
+# Clone teuthology
git clone https://github.com/ceph/teuthology.git
# Check for .teuthology.yaml file and copy it to teuthology
@@ -15,5 +14,10 @@ fi
# Copy Docker file into teuthology
cp ./Dockerfile teuthology/.
-# docker-compose
+# Generate an SSH keypair to use
+SSH_PRIVKEY_PATH=$(mktemp -u /tmp/teuthology-ssh-key-XXXXXX)
+ssh-keygen -t ed25519 -N '' -f $SSH_PRIVKEY_PATH
+export SSH_PRIVKEY=$(cat $SSH_PRIVKEY_PATH)
+export SSH_PUBKEY=$(cat $SSH_PRIVKEY_PATH.pub)
+
docker-compose up --build
