Skip to content

Commit

Permalink
changed docker-compose files to use the dockerfile instead of pushing… (
Browse files Browse the repository at this point in the history
#1729)

* changed docker-compose files to use the dockerfile instead of pushing user to put an image, first time self-hosters shouldn't be made to jump through hoops

* bumped golang version in circleci conf

* fix borked test case after go version bump

---------

Co-authored-by: Ashish <[email protected]>
  • Loading branch information
ashishjh-bst and ashishjh-bst authored Sep 24, 2024
1 parent e1695f0 commit bd8f9d2
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs: # basic units of work in a run
build: # runs not using Workflows must have a `build` job as entry point
docker: # run the steps with Docker
# CircleCI Go images available at: https://hub.docker.com/r/circleci/golang/
- image: cimg/go:1.20.6 #
- image: cimg/go:1.23.1 #

# directory where steps are run. Path must conform to the Go Workspace requirements
working_directory: ~/app
Expand Down
2 changes: 1 addition & 1 deletion lib/template/exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ func TestJSEscaping(t *testing.T) {
{`'foo`, `\'foo`},
{`Go "jump" \`, `Go \"jump\" \\`},
{`Yukihiro says "今日は世界"`, `Yukihiro says \"今日は世界\"`},
{"unprintable \uFDFF", `unprintable \uFDFF`},
{"unprintable ﷿", `unprintable ﷿`},
{`<html>`, `\x3Chtml\x3E`},
}
for _, tc := range testCases {
Expand Down
2 changes: 1 addition & 1 deletion yagpdb_docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23.1 as builder
FROM golang:1.23.1 AS builder

WORKDIR /appbuild/yagpdb
COPY go.mod go.sum ./
Expand Down
2 changes: 1 addition & 1 deletion yagpdb_docker/Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.2-alpine
FROM golang:1.23.1-alpine
# Dependencies: ca-certificates for client TLS, tzdata for timezone and ffmpeg for soundboard support
RUN apk --no-cache add ca-certificates ffmpeg tzdata
RUN CGO_ENABLED=0 go install -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv@latest
Expand Down
2 changes: 0 additions & 2 deletions yagpdb_docker/docker-compose.debug.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

volumes:
db:
redis:
Expand Down
2 changes: 0 additions & 2 deletions yagpdb_docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

volumes:
db:
redis:
Expand Down
12 changes: 4 additions & 8 deletions yagpdb_docker/docker-compose.proxied.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

volumes:
db:
redis:
Expand All @@ -14,12 +12,10 @@ networks:

services:
app:
# We don't provide an official image, but there is a community-made image you can try:
# - teyker/yagpdb (https://hub.docker.com/r/teyker/yagpdb)
#
# Note that we do not take responsibility for anything that happens as a result of using
# the image above.
image: PUT_YOUR_OWN_IMAGE_HERE
#image: PUT_YOUR_OWN_IMAGE_HERE
build:
context: ../
dockerfile: yagpdb_docker/Dockerfile
restart: unless-stopped
command:
# - "/app/yagpdb"
Expand Down
2 changes: 0 additions & 2 deletions yagpdb_docker/docker-compose.proxy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

volumes:
proxy_certs:
proxy_config:
Expand Down
11 changes: 6 additions & 5 deletions yagpdb_docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
version: '3'

volumes:
#volumes:
db:
redis:
cert_cache:
Expand All @@ -15,8 +13,11 @@ services:
# - teyker/yagpdb (https://hub.docker.com/r/teyker/yagpdb)
#
# Note that we do not take responsibility for anything that happens as a result of using
# the image above.
image: PUT_YOUR_OWN_IMAGE_HERE
# the image above. uncomment the below line in case your want to put your own image.
#image: PUT_YOUR_OWN_IMAGE_HERE
build:
context: ../
dockerfile: yagpdb_docker/Dockerfile
restart: unless-stopped
command:
# - "/app/yagpdb"
Expand Down

0 comments on commit bd8f9d2

Please sign in to comment.