Digital Ocean #
BurmillaOS is available in the Digital Ocean portal. BurmillaOS is a member of container distributions and you can find it easily.
Note Deploying to Digital Ocean will incur charges.
To start a BurmillaOS Droplet on Digital Ocean:
- In the Digital Ocean portal, go to the project view.
- Click New Droplet.
- Click Create Droplet.
- Click the Container distributions tab.
- Click BurmillaOS.
- Choose a plan. Make sure your Droplet has the minimum hardware requirements for BurmillaOS.
- Choose any options for backups, block storage, and datacenter region.
- Optional: In the Select additional options section, you can check the User data box and enter a
cloud-config
file in the text box that appears. Thecloud-config
file is used to provide a script to be run on the first boot. An example is below. - Choose an SSH key that you have access to, or generate a new SSH key.
- Choose your project.
- Click Create.
You can access the host via SSH after the Droplet is booted. The default user is rancher
.
Below is an example cloud-config
file that you can use to initialize the Droplet with user data, such as deploying Rancher:
#cloud-config
write_files:
- path: /etc/rc.local
permissions: "0755"
owner: root
content: |
#!/bin/bash
wait-for-docker
export curlimage=appropriate/curl
export jqimage=stedolan/jq
export burmilla_version=v2.2.2
for image in $curlimage $jqimage "burmilla/burmilla:${burmilla_version}"; do
until docker inspect $image > /dev/null 2>&1; do
docker pull $image
sleep 2
done
done
docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v /opt/rancher:/var/lib/rancher burmilla/burmilla:${burmilla_version}