From f5004476d3f45f25ba39f9fd99665aad46e2cd62 Mon Sep 17 00:00:00 2001 From: Vishwas Parpattegar Date: Mon, 2 Dec 2024 22:45:56 +0000 Subject: [PATCH 1/2] feat: add go devcontainer and just feature --- .devcontainer/devcontainer.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..0a9ad41 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,24 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/go +{ + "name": "Go", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/go:1-1.23-bookworm", + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/eitsupi/devcontainer-features/just:0": {} + }, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "go version", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} From 4aa8889b122d6d577834f2c322b45ac460cd0ce4 Mon Sep 17 00:00:00 2001 From: Vishwas Parpattegar Date: Tue, 3 Dec 2024 03:31:43 +0000 Subject: [PATCH 2/2] docs: add usage instructions to README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index e876f45..f0f04e4 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,11 @@ $ journalctl -exu 'uupd.service' 1. `sudo ./output/uupd` will run an update 1. You can install this to the system by copying the rules +## Devcontainer Usage + 1. When prompted, reopen the repository in Container + 2. Follow above building instructions + 3. Download `uupd` from container to host and run on your host + # FAQ Q: How do I add my own custom update script?