commit a1efd233ceb51968d732b35724486df08c58d7b3 Author: Korbs Date: Fri May 17 05:07:59 2024 -0400 Upload files to "/" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ca43107 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM debian:12-slim +USER root +ENTRYPOINT cron start && tail -f /var/log/cron.log + +# Install nessesary packages +RUN apt-get update && apt-get -y install libcurl4-openssl-dev g++ ca-certificates curl gnupg procps iputils-ping wget net-tools iproute2 + +# Cron +RUN apt-get -y install -qq --force-yes cron +RUN touch /var/log/cron.log + +# The user is expected to use "volume" configuration to override the Token +RUN curl -sSL netweak.sh | bash -s TOKEN_REPLACEMENT \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..39b69cf --- /dev/null +++ b/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2024 SudoVanilla + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d81618d --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Netweak Agent for Docker +![Cover](./cover.png) + +> This is an unofficial Docker Image for Netweak's agent. This was built so I can run it on Windows and macOS. + +When installing a new Netweak Agent, grab the token from the install instructions from your Netweak dashboard. Put the token into the `token.conf` file. + +To run it, use Docker Compose v2 or newer: +```bash +docker compose up -d +``` +> You may need to use `sudo` depending on your OS and setup. + +## FAQ +**Metric only shows around 60GB of disk space, why is that?** + +By default, at least in Docker Desktop on my Mac Mini M2, the virtual disk limit is set to 64GB. + +**Is this an offical Docker Image for Netweak?** + +No, SudoVanilla is not affiliated with Netweak in any way. This is NOT an official Docker image. SudoVanilla is only an enterprise customer of Netweak. \ No newline at end of file diff --git a/cover.png b/cover.png new file mode 100644 index 0000000..dbd8f6f Binary files /dev/null and b/cover.png differ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9ba8a31 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: "3" +services: + agent: + image: quay.io/sudovanilla/netweak-agent:latest + restart: unless-stopped + volumes: + - ./token.conf:/etc/netweak/token.conf \ No newline at end of file diff --git a/token.conf b/token.conf new file mode 100644 index 0000000..e3a5fda --- /dev/null +++ b/token.conf @@ -0,0 +1 @@ +PUT_YOUR_TOKEN_HERE \ No newline at end of file