Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Dockerfile for gotify production
FROM golang:alpine3.21 AS buildStage
FROM golang:1.27.1-alpine AS buildStage
LABEL maintainer="digIT <digit@chalmers.it>"

# Install git
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ Run just these tests with `go test -race ./google_mail -run TestGmailIntegration
They test our API integration contract, not Google-side permissions or delivery.

### Manual
Make sure you have golang installed and you `$GOPATH` setup.
Use Go 1.27.1, matching `go.mod`, CI, and the Docker build images.
1. Follow the steps in [Setup](#setup) and enable debug mode.
2. Grab all dependencies by standing in the project root and run `go get -d ./...`
3. You find the main file in `cmd/main.go`
4. Go to http://localhost:8080

Use gin for hot reloading.
1. Grab it with `go get github.com/codegangsta/gin`
1. Grab it with `go install github.com/codegangsta/gin@v0.0.0-20230218063734-2c98d96c9244`
2. Run gotify with `gin -d cmd -a 8080 run main.go`
3. Go to http://localhost:3000

Expand Down
6 changes: 3 additions & 3 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Dockerfile for gotify development
FROM golang:alpine
FROM golang:1.27.1-alpine
MAINTAINER digIT <digit@chalmers.it>

# Install git
Expand All @@ -8,7 +8,7 @@ RUN apk upgrade
RUN apk add --update git

RUN mkdir -p $GOPATH/bin && \
go get github.com/codegangsta/gin
go install github.com/codegangsta/gin@v0.0.0-20230218063734-2c98d96c9244

# Add standard certificates
RUN apk add ca-certificates && rm -rf /var/cache/apk/*
Expand All @@ -17,4 +17,4 @@ RUN apk add ca-certificates && rm -rf /var/cache/apk/*
RUN mkdir -p /go/src/github.com/cthit/gotify
WORKDIR $GOPATH/src/github.com/cthit/gotify

CMD go get -d -v ./... && gin -d cmd -a 8080 run main.go
CMD go mod download && gin -d cmd -a 8080 run main.go
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/cthit/gotify

go 1.23.0

toolchain go1.23.7
go 1.27.1

require (
github.com/gocraft/web v0.0.0-20190207150652-9707327fb69b
Expand Down
Loading