Skip to content

v0.26.0-alpha.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@Tpuljak Tpuljak released this 23 Aug 16:02

Prebuilds

This release introduces prebuilds - a way to speed up development by setting a project configuration to listen to changes in the underlying repository and run a build whenever it is necessary to ensure that once the user wants to create a project and start working, the creation process is much quicker.
Using daytona prebuilds add opens a view that lets asks the user to select a project configuration and the Git branch they plan to work on. The user can then decide on a commit interval after which a build should be triggered as well as any specific trigger files whose changes should immediately start the build process.

NOTE: GitHub is currently the only git provider that supports prebuilds.

image

Consequent daytona create calls will automatically detect the most recent existing build and use it to create the project much faster.

image

daytona build list and daytona build logs allow the user to view the builds and their information or debug the process. daytona build rm --all lets the user delete the builds to clear up space.

image

The prebuilds work by registering a listener to webhook event from the Git provider by sending a public API endpoint that the Git provider will send requests to. Currently only GitHub is supported, but more options are coming soon.

image

Breaking changes

  • Due to changes in interfaces, existing project configs will need to be re-added (daytona pc rm && daytona pc add).
  • To resolve database migration issues it is necessary to run this SQL command: DROP TABLE IF EXISTS build_dtos; after stopping the Daytona server and before starting it up again. To do this you need to first install the SQLite CLI by following the steps available on SQLite.org and then run the following commands:

On Mac
sqlite3 ~/Library/Application\ Support/daytona/server/db
DROP TABLE IF EXISTS build_dtos;

On Linux
sqlite3 ~/.config/daytona/server/db
DROP TABLE IF EXISTS build_dtos;

On Windows
sqlite3.exe C:\Users\YOUR_USERNAME\AppData\Roaming\daytona\server\db
DROP TABLE IF EXISTS build_dtos;

Note

To test this release, users will have to configure their server to use the prerelease channel for our providers and install version v0.10.0-alpha.1 of the Docker Provider (other providers are currently not supported). To do so, follow these steps:

daytona serve
daytona server configure -> change Registry URL to https://download.daytona.io/daytona-providers-pre-release
daytona provider install -> install the Docker Provider version v0.10.0-alpha.1

Installation

To install this pre-release, run curl -sf -L https://download.daytona.io/daytona/install.sh | DAYTONA_SERVER_VERSION=v0.26.0-alpha.1 sudo -E bash

Full Changelog: v0.25.2...v0.26.0-alpha.1