To build an AWS AMI for Strigo, use Packer. Build the AMI with packer build packer.json
and set up the training class on Strigo with the generated AMI and the user ubuntu
.
If things are failing for some reason: Run packer build -debug packer.yml
, which will keep the instance running and save the SSH key in the current directory. Connect to it with ssh -i ec2_amazon-ebs.pem [email protected]
; open ports as needed in the AWS Console since the instance will only open TCP/22 by default.
The base image is Canonical, Ubuntu, 18.04 LTS, amd64 bionic image build on 2020-01-12 and is configured using the setup.sh
script.
The AMI image is shared by default with the Strigo account as specified by their documentation.
Add this to the init script in Strigo to start the IDE container:
#!/bin/bash
sudo docker run -d -it -p 3022:3000 -v "/home/ubuntu/spring-petclinic:/home/project:cached" elswork/theia:1.0.1
exit