Giter Club home page Giter Club logo

remote-buildkit's Introduction

Remote-Buildkit

Overview

Remote-Buildkit is a bash script that automates the setup of a remote build environment using BuildKit on AWS EC2 instances. It leverages Terraform for provisioning and Ansible for configuration, streamlining the creation and integration of a remote BuildKit instance with your local machine.

Features

  • Automated Provisioning: Utilizes Terraform to automatically provision AWS EC2 instances.
  • Configuration Management: Ansible scripts configure the instances by installing Docker and the BuildKit daemon.
  • Local Integration: Bash script connects the remote BuildKit instance with your local development machine for easy access and control.

Prerequisites

Before you begin, ensure you have the following installed on your local machine:

  • Terraform
  • Ansible
  • AWS CLI
  • Docker

Additionally, you will need:

  • An AWS account
  • Configured AWS CLI with appropriate permissions to create and manage EC2 instances, security groups, etc.
  • Set the following environment variables for AWS access:
    export AWS_ACCESS_KEY_ID="your_access_key_id"
    export AWS_SECRET_ACCESS_KEY="your_secret_access_key"

Usage

  1. Clone the Repository:

    git clone https://github.com/yourusername/remote-buildkit.git
    cd remote-buildkit
  2. Deploy remote buildkit instance:

    ./deploy_builder.sh {name}
  3. Remove remote buildkit instance:

    ./remove_builder.sh {name}

After deployment, the remote BuildKit instance will be connected to your local machine. To verify the connection and see your BuildKit instance listed among available builders, use:

docker buildx ls

Customization

You can customize the Ansible playbook and Terraform scripts to tweak the configuration of the AWS resources according to your needs.

Contributing

Contributions are welcome! Please fork the repository and submit pull requests, or open issues to suggest improvements or report bugs.

License

This project is licensed under the MIT License. See the LICENSE file for details.

remote-buildkit's People

Contributors

vv173 avatar

Watchers

 avatar

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.