A Cloud Native Buildpack that installs sqlite3 and libsqlite3-dev for Rails and Node.js applications deployed on neetoDeploy.
The buildpack activates automatically when sqlite3 is found in any of the following files:
GemfileorGemfile.lockpackage.json,package-lock.json, oryarn.lock
Runs apt-get install sqlite3 libsqlite3-dev during the build phase and verifies the installation before proceeding.
Supports both linux/amd64 and linux/arm64.
scripts/package.sh packages the buildpack into a .cnb archive. Targets are read from buildpack.toml automatically if not specified.
# Package for all targets defined in buildpack.toml
./scripts/package.sh --version 1.0.0
# Package for specific targets
./scripts/package.sh --version 1.0.0 --target linux/amd64 --target linux/arm64
# Package for a single target with an explicit output path
./scripts/package.sh --version 1.0.0 --target linux/amd64 --output build/buildpackage-linux-amd64.cnbOutput:
build/buildpack.tgz— buildpack archive (used for publishing)build/buildpackage.cnb— OCI buildpackage (one file per target if multi-arch)
scripts/publish.sh pushes the buildpack to an OCI registry. It reads targets from buildpack.toml and creates a multi-arch manifest list when multiple targets are configured.
./scripts/publish.sh \
--image-ref 348674388966.dkr.ecr.us-east-1.amazonaws.com/neeto-deploy/buildpacks/sqlite:1.0.0 \
--archive-path build/buildpack.tgzRun scripts/package.sh before publishing.
sqlite3: system latest viaapt-get