Skip to content

A very simple compose app to run nginx and a static html, for demo purposes with simple vms

License

Notifications You must be signed in to change notification settings

jmservera/azure-markeplace-vm-image-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating Azure Marketplace Virtual Machine Images [DRAFT]

Build image, template and test

This is a demo of how to create a virtual machine image to publish it in the Azure Marketplace, or in your Image Gallery. It demonstrates how to automate the creation of your image as a GitHub Workflow using GitHub Actions, and uses the Azure Image Builder service to make the image creation easier.

Preparation steps

Before running the Workflow we need to do some preparation:

I have created these two scripts that you need to run inside an cli with the az tool installed. The easiest way of running it is through the cloud shell, just clone this repo and run the two scripts found in the scripts folder.

It is recommended to create an environment in GitHub for storing these secrets.

//TODO: step by step and screenshots

Run the Workflow

The provided workflow will create a very simple machine that serves a web page from an Nginx containerized image. The installation script that will be run by the Image Builder service can be found in this same repo in the vmcode folder. And executes something like this:

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
apt-get install -y docker-compose 
docker-compose up -d

...

About

A very simple compose app to run nginx and a static html, for demo purposes with simple vms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published