akkounts: Set up Bun properly, upgrade Ruby
This commit is contained in:
+1
-1
Submodule nodes updated: 528c84f98f...ad6d254fab
@@ -8,7 +8,7 @@ version '0.3.0'
|
|||||||
chef_version '>= 18.0'
|
chef_version '>= 18.0'
|
||||||
|
|
||||||
depends 'kosmos_openresty'
|
depends 'kosmos_openresty'
|
||||||
depends "kosmos-nodejs"
|
depends "ark"
|
||||||
depends "postgresql"
|
depends "postgresql"
|
||||||
depends "kosmos_postgresql"
|
depends "kosmos_postgresql"
|
||||||
depends "backup"
|
depends "backup"
|
||||||
|
|||||||
@@ -27,12 +27,24 @@ end
|
|||||||
|
|
||||||
package "libpq-dev"
|
package "libpq-dev"
|
||||||
package "libvips"
|
package "libvips"
|
||||||
|
package "unzip"
|
||||||
|
|
||||||
node.override["kosmos_nodejs"]["version"] = "22.23.1"
|
bun_version = "1.3.14"
|
||||||
include_recipe 'kosmos-nodejs'
|
bun_checksum = "951ee2aee855f08595aeec6225226a298d3fea83a3dcd6465c09cbccdf7e848f"
|
||||||
npm_package "bun"
|
|
||||||
|
|
||||||
ruby_version = "3.3.8"
|
ark "bun" do
|
||||||
|
url "https://github.com/oven-sh/bun/releases/download/bun-v#{bun_version}/bun-linux-x64.zip"
|
||||||
|
checksum bun_checksum
|
||||||
|
creates "bun"
|
||||||
|
path "/usr/local/bun/#{bun_version}/bin"
|
||||||
|
action :cherry_pick
|
||||||
|
end
|
||||||
|
|
||||||
|
link "/usr/local/bin/bun" do
|
||||||
|
to "/usr/local/bun/#{bun_version}/bin/bun"
|
||||||
|
end
|
||||||
|
|
||||||
|
ruby_version = "3.3.12"
|
||||||
ruby_path = "/opt/ruby_build/builds/#{ruby_version}"
|
ruby_path = "/opt/ruby_build/builds/#{ruby_version}"
|
||||||
bundle_path = "#{ruby_path}/bin/bundle"
|
bundle_path = "#{ruby_path}/bin/bundle"
|
||||||
rails_env = node.chef_environment == "development" ? "development" : "production"
|
rails_env = node.chef_environment == "development" ? "development" : "production"
|
||||||
|
|||||||
Reference in New Issue
Block a user