-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 61c1ced
Showing
90 changed files
with
2,924 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Lint | ||
on: [push, pull_request, workflow_dispatch] | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install 🥁 | ||
run: sudo apt-get -y update && sudo apt-get -y install shellcheck | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
- name: Lint 🔬 | ||
run: shellcheck $(find . -name '*.sh') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.box | ||
*.iso | ||
/.envrc | ||
/.local/tmp/ | ||
/.vagrant*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")"/../.. || exit | ||
|
||
build | ||
package | ||
play -- -t 'echo OK' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname "$0")"/../.. || exit | ||
|
||
provision=provision | ||
provider=virtualbox | ||
|
||
vagrant destroy -f || true | ||
vagrant up --provision-with "$provision" --provider "$provider" | ||
vagrant halt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname "$0")"/../.. || exit | ||
|
||
.local/bin/unplay || true | ||
|
||
rm -rf ./*.box ./*.iso MD5SUM .local/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname "$0")"/../.. || exit | ||
|
||
version=${VERSION:-$(date +"%Y%m%d")} | ||
codename=bookworm | ||
provider=virtualbox | ||
box=${codename}_${version}_${provider}.box | ||
|
||
vagrant package --output "$box" --vagrantfile .local/etc/Vagrantfile | ||
md5sum "$box" >MD5SUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname "$0")"/../.. || exit | ||
|
||
box=$(find "$PWD" -type f -name '*.box' ! -size 0 | head -n 1) | ||
|
||
if [[ -n $box ]]; then | ||
mkdir -p .local/tmp && cd .local/tmp || exit | ||
|
||
vagrant box add -f --name test "$box" | ||
vagrant init -f -m test | ||
vagrant up | ||
vagrant ssh "$@" | ||
else | ||
echo >&2 "No box found." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname "$0")"/../.. || exit | ||
|
||
ln -sf .local/etc/envrc .envrc | ||
command -v direnv &>/dev/null && direnv allow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname "$0")"/../.. || exit | ||
|
||
if [[ -f .local/tmp/Vagrantfile ]]; then | ||
cd .local/tmp || exit | ||
|
||
vagrant destroy -f | ||
vagrant box remove -f test | ||
else | ||
echo >&2 "No Vagrantfile at .local/tmp." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Vagrant.configure("2") do |config| | ||
config.vm.box = "debian/bookworm64" | ||
|
||
config.vm.provider "virtualbox" do |virtualbox| | ||
virtualbox.cpus = 2 | ||
virtualbox.customize ["modifyvm", :id, "--vram", "64"] | ||
virtualbox.linked_clone = true | ||
virtualbox.memory = 4096 | ||
end | ||
|
||
if File.exist?("/usr/share/virtualbox/VBoxGuestAdditions.iso") | ||
config.vm.disk :dvd, name: "GuestAdditions", file: "/usr/share/virtualbox/VBoxGuestAdditions.iso" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
layout vagrant | ||
layout local |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
disable=SC1090 | ||
disable=SC1091 | ||
disable=SC2154 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
debian.roktas.dev |
Oops, something went wrong.