https://github.com/benpye/alpine-droplet
Alpine Linux image generator for digital ocean
https://github.com/benpye/alpine-droplet
alpine-linux digital-ocean virtual-machine
Last synced: 12 months ago
JSON representation
Alpine Linux image generator for digital ocean
- Host: GitHub
- URL: https://github.com/benpye/alpine-droplet
- Owner: benpye
- Created: 2018-10-07T19:21:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-10T18:58:33.000Z (over 2 years ago)
- Last Synced: 2025-04-30T23:57:30.214Z (12 months ago)
- Topics: alpine-linux, digital-ocean, virtual-machine
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 100
- Watchers: 5
- Forks: 29
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Digital Ocean Alpine Linux Image Generator

This is a tool to generate an Alpine Linux custom image for Digital Ocean. This ensures that the droplet will correctly configure networking and SSH on first boot using Digital Ocean's metadata service. To use this tool make sure you have `qemu-nbd`, `qemu-img`, `bzip2` and `e2fsprogs` installed. This will not work under the Windows Subsystem for Linux (WSL) as it mounts the image during generation.
Once these prerequisites are installed run:
```bash
# ./build-image.sh
```
Note: Need root permission.
This will produce `alpine-virt-image-{timestamp}.qcow2.bz2` which can then be uploaded to Digital Ocean and used to create your droplet. Check out their instructions at https://blog.digitalocean.com/custom-images/ for uploading the image and creating your droplet.
In this commit, the script will produce alpine `version 3.15` image. If you wanna build latest version, you can pull latest [alpine-make-vm-image repo](https://github.com/alpinelinux/alpine-make-vm-image): `git submodule foreach git pull origin master`