Skip to content

Commit

Permalink
Rename all abs-goodreads to abs-tract
Browse files Browse the repository at this point in the history
  • Loading branch information
ahobsonsayers committed Apr 30, 2024
1 parent e611cf1 commit 14c609a
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Builder Image
FROM golang:1.21 as builder

WORKDIR /abs-goodreads
WORKDIR /abs-tract
COPY . .
RUN go mod download
RUN go build -v -o bin/abs-goodreads
RUN go build -v -o bin/abs-tract

# Ditribution Image
FROM alpine:latest

RUN apk add --no-cache libc6-compat

COPY --from=builder /abs-goodreads/bin/abs-goodreads /abs-goodreads
COPY --from=builder /abs-tract/bin/abs-tract /abs-tract

EXPOSE 5555

ENTRYPOINT ["/abs-goodreads"]
ENTRYPOINT ["/abs-tract"]
8 changes: 4 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ tasks:

build:
cmds:
- go build -v -o bin/abs-goodreads
- go build -v -o bin/abs-tract

build:docker:
cmds:
- docker build . -t arranhs/abs-goodreads
- docker build . -t arranhs/abs-tract

run:
cmds:
Expand All @@ -37,6 +37,6 @@ tasks:
cmds:
- |
docker run --rm \
--name abs-goodreads \
--name abs-tract \
-p 5555:5555 \
arranhs/abs-goodreads
arranhs/abs-tract
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: "3.8"
services:
abs-goodreads:
image: arranhs/abs-goodreads
abs-tract:
image: arranhs/abs-tract
build:
context: .
container_name: abs-goodreads
container_name: abs-tract
ports:
- "5555:5555"
restart: unless-stopped
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ahobsonsayers/abs-goodreads
module github.com/ahobsonsayers/abs-tract

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion goodreads/book.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"regexp"
"strings"

"github.com/ahobsonsayers/abs-goodreads/utils"
"github.com/ahobsonsayers/abs-tract/utils"
"github.com/k3a/html2text"
"golang.org/x/text/language"
"golang.org/x/text/language/display"
Expand Down
2 changes: 1 addition & 1 deletion goodreads/book_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/xml"
"testing"

"github.com/ahobsonsayers/abs-goodreads/goodreads"
"github.com/ahobsonsayers/abs-tract/goodreads"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion goodreads/goodreads.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"sync"

"github.com/ahobsonsayers/abs-goodreads/utils"
"github.com/ahobsonsayers/abs-tract/utils"
"github.com/lithammer/fuzzysearch/fuzzy"
"github.com/orsinium-labs/enum"
"github.com/samber/lo"
Expand Down
2 changes: 1 addition & 1 deletion goodreads/goodreads_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/ahobsonsayers/abs-goodreads/goodreads"
"github.com/ahobsonsayers/abs-tract/goodreads"
"github.com/samber/lo"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion goodreads/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"strings"

"github.com/ahobsonsayers/abs-goodreads/utils"
"github.com/ahobsonsayers/abs-tract/utils"
)

// NewClient creates a new goodreads client.
Expand Down
2 changes: 1 addition & 1 deletion goodreads/new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"testing"

"github.com/ahobsonsayers/abs-goodreads/goodreads"
"github.com/ahobsonsayers/abs-tract/goodreads"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion kindle/book.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"time"

"github.com/ahobsonsayers/abs-goodreads/utils"
"github.com/ahobsonsayers/abs-tract/utils"
"github.com/antchfx/htmlquery"
"github.com/antchfx/xpath"
"golang.org/x/net/html"
Expand Down
2 changes: 1 addition & 1 deletion kindle/kindle.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"net/url"

"github.com/ahobsonsayers/abs-goodreads/utils"
"github.com/ahobsonsayers/abs-tract/utils"
"github.com/samber/lo"
"golang.org/x/net/html"
)
Expand Down
2 changes: 1 addition & 1 deletion kindle/kindle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/ahobsonsayers/abs-goodreads/kindle"
"github.com/ahobsonsayers/abs-tract/kindle"
"github.com/samber/lo"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion kindle/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"strings"

"github.com/ahobsonsayers/abs-goodreads/utils"
"github.com/ahobsonsayers/abs-tract/utils"
"github.com/samber/lo"
)

Expand Down
2 changes: 1 addition & 1 deletion kindle/new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"testing"

"github.com/ahobsonsayers/abs-goodreads/kindle"
"github.com/ahobsonsayers/abs-tract/kindle"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"net/http"

"github.com/ahobsonsayers/abs-goodreads/server"
"github.com/ahobsonsayers/abs-tract/server"
)

//go:generate go run github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen -config .oapigen.yaml schema/openapi.yaml
Expand Down
4 changes: 2 additions & 2 deletions server/book.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"strconv"

"github.com/ahobsonsayers/abs-goodreads/goodreads"
"github.com/ahobsonsayers/abs-goodreads/kindle"
"github.com/ahobsonsayers/abs-tract/goodreads"
"github.com/ahobsonsayers/abs-tract/kindle"
"github.com/samber/lo"
)

Expand Down
2 changes: 1 addition & 1 deletion server/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewRouter() (http.Handler, error) {
// Includes recoverer middleware
httplog.RequestLogger(
httplog.NewLogger(
"abs-goodreads",
"abs-tract",
httplog.Options{
LogLevel: slog.LevelDebug,
RequestHeaders: true,
Expand Down
2 changes: 1 addition & 1 deletion utils/url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils_test
import (
"testing"

"github.com/ahobsonsayers/abs-goodreads/utils"
"github.com/ahobsonsayers/abs-tract/utils"
"github.com/stretchr/testify/require"
)

Expand Down

0 comments on commit 14c609a

Please sign in to comment.