News

GitHub Previews Faster Codespaces Creation with Prebuilds

GitHub announced a public beta of Codespaces prebuilds to speed up the creation of the cloud-hosted Visual Studio Code-based development environments.

Those VS Code environments served up via virtual machines (VMs) proved to be so successful after a May 2020 debut that the Microsoft-owned GitHub ditched its local macOS development model in favor of Codespaces.

The company this week announced the public beta of prebuilds to take care of all the manual set-up details needed before a coder can start coding. That includes things like cloning a repo, perhaps building a custom Dockerfile, installing project dependencies and editor extensions, initializing scripts, and more, GitHub said in a Feb. 23 blog post. All of that bootstrapping can take a lot longer in big repos with complex configurations.

Prebuild Templates
[Click on image for larger view.] Prebuild Templates (source: GitHub).

GitHub's developers used prebuilds to significantly speed up their bootstrapping work and subsequently decided to share the functionality with users.

"A prebuilt codespace will serve as a 'ready-to-go' template where your source code, editor extensions, project dependencies, commands, and configurations have already been downloaded, installed, and applied so that you don't have to wait for these tasks to finish each time you create a new codespace," said GitHub's Tanmayee Kamath in yesterday's announcement.

The public beta program follows a private preview that provided feedback for the public offering, which Kamath said now provides:

  • You can now identify and quickly get started with a fast create experience by selecting machine types that have a "prebuild ready" tag.
    Prebuild Templates
    [Click on image for larger view.] Prebuild Templates (source: GitHub).
  • A seamless configuration experience helps repository admins easily set up and manage prebuild configurations for different branches and regions.
  • To reduce the burden on repository admins around managing Action version updates for each prebuilt branch, we introduced support for GitHub Actions workflows that will be managed by the Codespaces service.
  • Prebuild configurations are now built on GitHub Actions virtual machines. This enables faster prebuild template creations for each push made to your repository, and also provides repository admins with access to a rich set of logs to help with efficient debugging in case failures occur.

To take part in the public beta, organizations must be enlisted in GitHub Enterprise Cloud or Team plans. More information can be found in the blog post linked above, documentation and discussion.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube