Giter Club home page Giter Club logo

azure-utilities's Introduction

Microsoft Azure Utilities

Deployment Container

This is a generic deployment container with the Azure CLI (az) and the Kubernetes CLI (kubectl) preinstalled.

There is a sample kubernetes.sh deployment script available, which you can use as a starting point for your own deployment scripts. It shows how to login to Azure via encrypted environment variables and configure kubectl to run commands against the AKS cluster.

The image is available via the codeship/azure-deployment repository on Docker Hub.

dockercfg Generator

Codeship supports using custom images to generate dockercfg files during the build process. To use this image to integrate with Azure Container Registry, simply define an entry in your services file for this image, and reference it from any steps or services which need to interact with an Azure Container Registry via the dockercfg_service field. You'll also need to provide the following environment variables using an encrypted env file:

For now we require the Admin user for the registry to be enabled.

  • AZURE_USERNAME - Your username of the Admin user of the registry
  • AZURE_PASSWORD - The password associated with the above admin user
  • AZURE_REGISTRY - The URL of the registry you want to access (in the form of NAME.azurecr.io)

Here is an example of using and ECR Dockercfg generator to authenticate pushing an image.

# codeship-services.yml
app:
  build:
    image: codeship.azurecr.io/codeship-testing
    dockerfile_path: ./Dockerfile
azure_dockercfg:
  image: codeship/azure-dockercfg-generator
  add_docker: true
  encrypted_env_file: azure.env.encrypted
# codeship-steps.yml
- service: app
  type: push
  tag: master
  image_name: codeship.azurecr.io/codeship-testing
  registry: codeship.azurecr.io
  dockercfg_service: azure_dockercfg:

You can also use this authentication to pull images, or use with caching, by defining the dockercfg_service field on groups of steps, or each individual step that pulls or pushes an image, or by adding the field to specific services.

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.