Install `mise`.

This commit is contained in:
Kazuhiro MUSASHI 2024-02-18 11:17:11 +09:00
parent 79a5d3438d
commit cb2f425bbc
3 changed files with 30 additions and 0 deletions

View File

@ -5,3 +5,5 @@ include_recipe './ssh.rb'
include_recipe './vim.rb' include_recipe './vim.rb'
include_recipe './mc.rb' include_recipe './mc.rb'
include_recipe './mise.rb'

View File

@ -0,0 +1 @@
deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main

27
cookbooks/kazu634/mise.rb Normal file
View File

@ -0,0 +1,27 @@
directory '/etc/apt/keyrings/' do
owner 'root'
group 'root'
mode '0755'
end
execute 'wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /etc/apt/keyrings/mise-archive-keyring.gpg' do
not_if 'test -f /etc/apt/keyrings/mise-archive-keyring.gpg'
end
remote_file '/etc/apt/sources.list.d/mise.list' do
owner 'root'
group 'root'
mode '0644'
end
execute 'apt update' do
not_if 'which mise'
end
package 'mise'
# For Ruby installation:
%w( git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev ).each do |p|
package p
end