Compare commits

...

2 Commits

Author SHA1 Message Date
Kazuhiro MUSASHI 5d2d7e1247 Merge pull request 'Install `mise`.' (#5) from install-mise into main
Reviewed-on: #5
2024-02-18 02:19:59 +00:00
Kazuhiro MUSASHI cb2f425bbc Install `mise`. 2024-02-18 11:17:40 +09:00
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 './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