mirror of
https://github.com/sstent/vmimages.git
synced 2025-12-05 21:51:48 +00:00
28 lines
919 B
Plaintext
28 lines
919 B
Plaintext
bootstrap-repos:$
|
|
mr --trust-all bootstrap /run/user/1000/secrets/mrconfig$
|
|
$
|
|
update-repos:$
|
|
cd ~/vmimages$
|
|
sops -e ~/justfile > /secrets/user_dotfiles/test$
|
|
$
|
|
$
|
|
sops-updatekeys:$
|
|
#!/usr/bin/env bash$
|
|
cd ~/vmimages$
|
|
sops updatekeys secrets/user-secrets.yaml$
|
|
sops updatekeys secrets/host-secrets.yaml$
|
|
sops updatekeys secrets/*.yaml$
|
|
$
|
|
run SERVICE: $
|
|
nomad run ~/projects/nomad/nomad_jobs/enabled/{{SERVICE}}.nomad$
|
|
purge SERVICE: $
|
|
nomad stop --purge {{SERVICE}}$
|
|
stop SERVICE: $
|
|
nomad stop ~/projects/nomad/nomad_jobs/enabled/{{SERVICE}}$
|
|
$
|
|
exec SERVICE:$
|
|
ID=$(nomad status {{SERVICE}} | grep "running" | grep "{{SERVICE}}" | head -n 1| awk '{print $1}'); nomad alloc exec -task {{SERVICE}} -t ${ID} /bin/bash$
|
|
$
|
|
sh SERVICE:$
|
|
ID=$(nomad status {{SERVICE}} | grep "running" | grep "{{SERVICE}}" | head -n 1| awk '{print $1}'); nomad alloc exec -task {{SERVICE}} -t ${ID} /bin/sh$
|