Upload files to "/"
This commit is contained in:
commit
a1efd233ce
6 changed files with 51 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -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
|
9
LICENSE
Normal file
9
LICENSE
Normal file
|
@ -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.
|
21
README.md
Normal file
21
README.md
Normal file
|
@ -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.
|
BIN
cover.png
Normal file
BIN
cover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 744 KiB |
7
docker-compose.yml
Normal file
7
docker-compose.yml
Normal file
|
@ -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
|
1
token.conf
Normal file
1
token.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
PUT_YOUR_TOKEN_HERE
|
Loading…
Reference in a new issue