Git Product home page Git Product logo

worker-images's Introduction

Worker Images

This repository stores the code used to create a machine image for use in Taskcluster. This repository uses Packer to provision the machine image, and the azure windows packer machine images use Powershell Packer Provisioner to call a custom script which bootstrap the OS using Puppet.

High level Overview

This repository contains an opinionated way to run packer using configuration that is pre-defined in YAML format, along with integration tests for azure windows 11 virtual machine image used within Taskcluster using Pester. Images are deployed using either Github Actions or by running Packer locally.

Within the Azure Packer HCL file, there are two source blocks, one for generating an Azure Shared Image called sig (which stands for shared image gallery) and one for generating an Azure Managed Image called non-sig.

Local development with Azure

There are two packer hcl files, one for Azure and one for GCP. To run packer locally for debugging purposes or to generate an image against the existing Packer HCL files, load the Powershell module and debug locally.

For example, to deploy a Windows 11 Alpha managed image (non shared image) for use in Azure and debug locally, follow these steps

## Set the powershell gallery to trusted
Set-PSRepository PSGallery -InstallationPolicy Trusted
## Install Powershel YAML Module
Install-Module powershell-yaml -ErrorAction Stop
## Import workerimages powershell module
Import-Module ".\bin\WorkerImages\WorkerImages.psm1"
## Select the win11-64-2009-alpha key
$key = "win11-64-2009-alpha"
## Build the parameters to pass to the function
$Vars = @{
    Location        = "uksouth"
    Key             = "config/$key.yaml"
    Client_ID       = "foo" ## Update this with the app registration client id from azure
    Client_Secret   = "bar" ## Update this with the app registration client secret from azure
    Subscription_ID = "marco" ## Subscription ID to deploy to
    Tenant_ID       = "polo" ## Tenant ID to deploy to
}

## Run packer
New-AzWorkerImage @Vars -PackerDebug

Local Development with GCP

WIP

Acronyms

  • GHA = Github Actions
  • TC = Taskcluster, the CI pipeline to build and release Firefox.
  • Worker Image = A machine image for use with Taskcluster that contains configuration from puppet.
  • Ronin Puppet = Git repository that contains puppet code which configures each worker image with specific configuration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.