Files
HomeServerCTs/.vscode/tasks.json
Bram Prieshof 5c663faa0d Fixed CTs: gitea,nextcloud,transfersh and updated the AlpinePHPTool
CT: gitea
  Fixed broken curl command for downloading gitea

CT: nextcloud
  Forced PHP Version to 8.3 using update AlpinePHPTool

CT: transfersh
  Fixed custom theme by downloading the release tar.gz instead of cloneing the repo,
  it is now also added to the update script

Script: AlpinePHPTool
  Added ability to specify a PHP Version
2025-01-16 01:32:19 +01:00

56 lines
2.2 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
// When ran in a Proxmox CT, expose a folder mountpoint and symlink to it MOUNTPOINT/build/template/cache and tell Proxmox this use this folder for LXC images
"label": "BuildIMG",
"type": "shell",
"command": " export XZ_DEFAULTS='-T 0'; sudo ./distrobuilder build-lxc CT-Build/${input:Distro}.yaml -o image.variant=${input:BuildVariant} ;sudo chown $SUDO_USER:$SUDO_USER -R *.tar.xz ;rm -f meta.tar.xz; mv -f rootfs.tar.xz bin/${input:Distro}-${input:BuildVariant}.tar.xz",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
/* {
"label": "BuildVM",
"type": "shell",
"command": " export XZ_DEFAULTS='-T 0'; sudo ./distrobuilder build-incus CT-Build/${input:Distro}.yaml -o image.variant=${input:BuildVariant} --vm;sudo chown $SUDO_USER:$SUDO_USER -R *.tar.xz disk.qcow2 ;rm -f incus.tar.xz; mv -f disk.qcow2 bin/${input:Distro}-${input:BuildVariant}.qcow2",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},*/
{
"label": "SetupImgBuilder",
"type": "shell",
"command": "mkdir bin;git clone https://github.com/lxc/distrobuilder distrobuilderSRC; cd distrobuilderSRC; gofmt -s -w .; go build -o ../ -v ./...; cd ../; rm -rf distrobuilderSRC",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"inputs": [
{
"id": "BuildVariant",
"description": "Wich Variant shoud be build",
"type": "promptString"
},
{
"type": "pickString",
"id": "Distro",
"description": "Wich Distro shoud be used",
"options": [
"Debian",
"Alpine",
"OtherTesting"
],
"default": "Debian"
},
]
}