Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 889 Bytes

README.md

File metadata and controls

35 lines (19 loc) · 889 Bytes

Update checker

Prerequisites

Make sure to create a .env file containing the keys present in the .env.example file. An API token can be retrieved from Telegram itself following their steps. A chat ID can be retrieved by starting outputChatID.go in the setup folder and sending a message to your bot username:

go run setup/outputChatID.go

Deploying

Building Docker image

docker build -t update-checker .

Running Docker image

You can run the image directly:

docker run -it --rm --name update-checker update-checker

or you can run it by using docker compose:

docker-compose up

Development

To execute the application directly run:

go run updateChecker.go

Optionally an argument can be passed with a full path to a folder to write the hashes to:

go run updateChecker.go /var/update-checker