In this hackathon, you will create a development and testing environment in Azure using the Python SDK for Azure. The test harness for the scenario is defined in main.py
and the ./tests/
directory of this repository. These files may not be changed during the hackathon.
At the conclusion of the hackathon, one person from the group will demo the scenario running end-to-end.
The following scenario requirements should be implemented in the vendor.py
file:
- Create several Linux Virtual Machines and return a ssh client for the created VMs.
- Create a block storage instance, attach it to the created VM, write a file via sftp, detach the disk, and re-attach to another VM.
- Create a relational database and perform basic CRUD operations.
The recommended development environment relies on VS Code Remote to provide a local editing experience over a development machine in Azure. Each hacker has been assigned an Azure Container Instance that includes all of the tools, code, and configuration needed to complete the scenario.
Complete the following steps on your local machine:
- Install VS Code
- Install the Remote Extension for VS Code
- Download the SSH key to
Downloads/aci
- Press
F1
and chooseRemote-SSH: Open Configuration File...
- Add the following to your SSH config
Host hackbox
User root
HostName <your hackbox name>.westus2.azurecontainer.io
IdentityFile ~/Downloads/aci
- Press
F1
and chooseRemote-SSH: Connect to Host...
and selecthackbox
- Go to
File -> Open Folder
and select/root/hack/
From here, you can get started with any of the following tasks:
- Open
.py
files to code the solution - Press
F5
to start debugging the test harness - Press `Ctrl+`` to open a new integrated terminal
- Run
az
commands - Run
python main.py
to run the test harness
- Run