Compare commits
2 Commits
3167133d82
...
ae25b438a1
| Author | SHA1 | Date | |
|---|---|---|---|
| ae25b438a1 | |||
| fb820c9df6 |
@ -20,7 +20,7 @@ TEMPLATES = {
|
||||
"alpine": {
|
||||
"distro_name": "Alpine Linux",
|
||||
"distro_shortname": "alpine",
|
||||
"distro_icon": "https://s3.mcmaster.io/images/Alpine_Linux_logo.png",
|
||||
"distro_icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/alpine-linux.svg",
|
||||
"distro_package_manager": "apk",
|
||||
"distro_releases": ALPINE_VERSIONS,
|
||||
"image": "cr.smcm.xyz/coder-images/alpine",
|
||||
@ -28,7 +28,7 @@ TEMPLATES = {
|
||||
"aports": {
|
||||
"distro_name": "Alpine Linux",
|
||||
"distro_shortname": "alpine",
|
||||
"distro_icon": "https://s3.mcmaster.io/images/Alpine_Linux_logo.png",
|
||||
"distro_icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/alpine-linux.svg",
|
||||
"distro_package_manager": "apk",
|
||||
"distro_releases": ["edge"],
|
||||
"image": "cr.smcm.xyz/coder-images/alpine",
|
||||
|
||||
14
base.tf.j2
14
base.tf.j2
@ -176,7 +176,7 @@ data "coder_parameter" "git_user_name" {
|
||||
description = "Name used for git commits"
|
||||
default = ""
|
||||
type = "string"
|
||||
icon = "https://s3.mcmaster.io/images/programmer.png"
|
||||
icon = "/icons/git.svg"
|
||||
mutable = true
|
||||
}
|
||||
|
||||
@ -186,7 +186,7 @@ data "coder_parameter" "git_email" {
|
||||
description = "Email used for git commits"
|
||||
default = ""
|
||||
type = "string"
|
||||
icon = "https://s3.mcmaster.io/images/email.png"
|
||||
icon = "/icons/git.svg"
|
||||
mutable = true
|
||||
}
|
||||
{% endblock %}
|
||||
@ -231,6 +231,16 @@ resource "coder_agent" "main" {
|
||||
|
||||
git config --global user.name "${data.coder_parameter.git_user_name.value == "" ? data.coder_workspace.me.owner : data.coder_parameter.git_user_name.value}"
|
||||
git config --global user.email "${data.coder_parameter.git_email.value == "" ? data.coder_workspace.me.owner_email : data.coder_parameter.git_email.value}"
|
||||
|
||||
if [ -d "/home/linuxbrew/.linuxbrew" ]; then
|
||||
if [ -d "$HOME/.linuxbrew" ]; then
|
||||
rm -rf /home/linuxbrew/.linuxbrew
|
||||
else
|
||||
mv /home/linuxbrew/.linuxbrew $HOME/.linuxbrew
|
||||
fi
|
||||
|
||||
ln $HOME/.linuxbrew /home/linuxbrew/.linuxbrew
|
||||
fi
|
||||
{% endblock %}
|
||||
|
||||
{% block post_startup_script_setup_home %}
|
||||
|
||||
@ -5,7 +5,7 @@ resource "coder_app" "splunk" {
|
||||
agent_id = coder_agent.main.id
|
||||
display_name = "Splunk Web"
|
||||
slug = "splunkweb"
|
||||
icon = "https://s3.mcmaster.io/images/Splunk.webp"
|
||||
icon = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/splunk.svg"
|
||||
url = "http://localhost:8000/"
|
||||
subdomain = true
|
||||
share = "public"
|
||||
@ -46,7 +46,7 @@ data "coder_parameter" "splunk_version" {
|
||||
description = "Splunk Version"
|
||||
type = "string"
|
||||
default = "{{ splunk_versions[-1] }}"
|
||||
icon = "https://s3.mcmaster.io/images/Splunk.webp"
|
||||
icon = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/splunk.svg"
|
||||
|
||||
mutable = true
|
||||
{% for version in splunk_versions %}
|
||||
|
||||
@ -5,7 +5,7 @@ resource "coder_app" "splunk-lm" {
|
||||
agent_id = coder_agent.main.id
|
||||
display_name = "Splunk Web (LM)"
|
||||
slug = "splunkweb-lm"
|
||||
icon = "https://s3.mcmaster.io/images/Splunk.webp"
|
||||
icon = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/splunk.svg"
|
||||
url = "http://localhost:8001/"
|
||||
subdomain = true
|
||||
share = "public"
|
||||
|
||||
@ -1,32 +1,35 @@
|
||||
sudo adduser coder abuild
|
||||
|
||||
# Ensure host key verification passes
|
||||
if [ ! -f .ssh/known_hosts ]; then
|
||||
if [ ! -f $HOME/.ssh/known_hosts ]; then
|
||||
mkdir -p .ssh
|
||||
ssh-keyscan gitlab.alpinelinux.org > .ssh/known_hosts
|
||||
fi
|
||||
|
||||
# Clone the aports repository
|
||||
if [ ! -d aports/.git ]; then
|
||||
git clone git@gitlab.alpinelinux.org:alpine/aports.git
|
||||
git config remote.origin.pushurl git@gitlab.alpinelinux.org:mcm/aports.git
|
||||
else
|
||||
(
|
||||
(
|
||||
cd $HOME
|
||||
if [ ! -d $HOME/aports/.git ]; then
|
||||
git clone git@gitlab.alpinelinux.org:alpine/aports.git
|
||||
git config remote.origin.pushurl git@gitlab.alpinelinux.org:mcm/aports.git
|
||||
else
|
||||
cd aports
|
||||
git remote set-url origin git@gitlab.alpinelinux.org:alpine/aports.git
|
||||
git config remote.origin.pushurl git@gitlab.alpinelinux.org:mcm/aports.git
|
||||
)
|
||||
fi
|
||||
fi
|
||||
)
|
||||
|
||||
# Generate abuild keys if needed
|
||||
if [ ! -f "$HOME/.abuild/abuild.conf" ]; then
|
||||
abuild-keygen -a -i -n
|
||||
fi
|
||||
|
||||
[ -e "$HOME/.abuild/abuild.conf" ] && . $HOME/.abuild/abuild.conf
|
||||
if [ -e "$HOME/.abuild/abuild.conf" ]; then
|
||||
. $HOME/.abuild/abuild.conf
|
||||
|
||||
if [ -n "$PACKAGER_PRIVKEY" ]; then
|
||||
sudo cp $PACKAGER_PRIVKEY /etc/apk/keys/
|
||||
if [ -n "$PACKAGER_PRIVKEY" ]; then
|
||||
sudo cp ${PACKAGER_PRIVKEY}.pub /etc/apk/keys/
|
||||
fi
|
||||
fi
|
||||
|
||||
# Update apk
|
||||
@ -34,4 +37,5 @@
|
||||
REPO="$HOME/packages/$repo"
|
||||
grep -q "^$REPO" /etc/apk/repositories || (echo $REPO | sudo tee -a /etc/apk/repositories)
|
||||
done
|
||||
sudo apk update
|
||||
sudo apk update
|
||||
sudo apk add --no-cache alpine-sdk
|
||||
@ -1,8 +0,0 @@
|
||||
sudo apt update
|
||||
sudo apt -y install gnupg
|
||||
|
||||
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
|
||||
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
|
||||
|
||||
sudo apt update
|
||||
sudo apt -y install google-cloud-cli
|
||||
@ -1,9 +0,0 @@
|
||||
git clone git@github.com:ollama/ollama.git ollama
|
||||
cd ollama
|
||||
git submodule init
|
||||
git submodule update llm/llama.cpp
|
||||
python3 -m venv llm/llama.cpp/.venv
|
||||
source llm/llama.cpp/.venv/bin/activate
|
||||
pip install -r llm/llama.cpp/requirements.txt
|
||||
make -C llm/llama.cpp quantize
|
||||
git lfs install
|
||||
@ -1,13 +0,0 @@
|
||||
sudo apt update
|
||||
sudo apt -y install unzip lsb-release
|
||||
|
||||
curl -sSLO https://github.com/terraform-linters/tflint/releases/download/v0.48.0/tflint_linux_amd64.zip
|
||||
unzip tflint_linux_amd64.zip
|
||||
sudo mv tflint /usr/local/bin
|
||||
rm tflint_linux_amd64.zip
|
||||
|
||||
curl https://apt.releases.hashicorp.com/gpg | sudo apt-key --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg add -
|
||||
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/hashicorp.list
|
||||
|
||||
sudo apt update
|
||||
sudo apt install terraform
|
||||
@ -8,7 +8,7 @@ data "coder_parameter" "terraform_version" {
|
||||
description = "Terraform Version"
|
||||
type = "string"
|
||||
default = ""
|
||||
icon = "https://s3.mcmaster.io/images/terraform.png"
|
||||
icon = "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/terraform.svg"
|
||||
|
||||
mutable = true
|
||||
option {
|
||||
|
||||
Reference in New Issue
Block a user