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 for Converge360.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube