have run into a myriad of issues with getting scp to work properly.
the build image job was put into its own block as follows:
apk update && apk add jq export PACKET_IP=$(terraform output -json address | jq .value.address |sed -e 's/"//g') echo $PACKET_IP scp shell.sh ubuntu.json root@$PACKET_IP:/tmp ssh -o StrictHostKeyChecking=no root@$PACKET_IP 'curl https://releases.hashicorp.com/packer/1.3.5/packer_1.3.5_linux_amd64.zip -o packer.zip && apt-get update && apt-get install unzip && unzip packer.zip -d /usr/bin && packer version && ls -la /tmp' The module root could not be found. There is nothing to output. ssh: Could not resolve hostname :Name does not resolve. lost connection
CircleCI normally defaults to $HOME/project for cloning files. however, this isn't searchable (and I don't know why yet).
how do we get the qemu image to the cloud?
Solutions:
shit's still borked
initially, we believed it was necessary to cd ../../../../ to reach the correct level for scp to work, but this may be unnecessary.
cleaned up the build image step by breaking it out and making it more readable
checked in with SME, they recommended using awscli instead of vagrant cloud due to dependencies that would make the process more complex
Issues/Questions:
have run into a myriad of issues with getting
scp
to work properly.apk update && apk add jq export PACKET_IP=$(terraform output -json address | jq .value.address |sed -e 's/"//g') echo $PACKET_IP scp shell.sh ubuntu.json root@$PACKET_IP:/tmp ssh -o StrictHostKeyChecking=no root@$PACKET_IP 'curl https://releases.hashicorp.com/packer/1.3.5/packer_1.3.5_linux_amd64.zip -o packer.zip && apt-get update && apt-get install unzip && unzip packer.zip -d /usr/bin && packer version && ls -la /tmp'
The module root could not be found. There is nothing to output. ssh: Could not resolve hostname :Name does not resolve. lost connection
$HOME/project
for cloning files. however, this isn't searchable (and I don't know why yet).how do we get the
qemu
image to the cloud?Solutions:
shit's still borked
cd ../../../../
to reach the correct level forscp
to work, but this may be unnecessary.build image
step by breaking it out and making it more readablechecked in with SME, they recommended using
awscli
instead of vagrant cloud due to dependencies that would make the process more complex