Skip to content

Commit

Permalink
Merge pull request #98 from bugrakocabay/dev
Browse files Browse the repository at this point in the history
chore: update docker configs
  • Loading branch information
bugrakocabay authored Feb 29, 2024
2 parents 79b5f3c + a2d66eb commit 0d8a417
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .examples/docker-compose-mongodb/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ providers:
type: "rabbitmq"
retry: 5
amqp-config:
host: "localhost"
host: "rabbitmq"
port: 5672
username: "user"
password: "password"

databases:
- name: "mongo-database"
type: "mongodb"
connection-string: "mongodb://localhost:27017"
connection-string: "mongodb://mongodb:27017"
retry: 3
database: "mynewdb"

Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ RUN apk add --no-cache build-base git binutils-gold
WORKDIR /app
COPY . ./
RUN go build -buildmode=plugin -o postgres-linux.so ./plugin/postgresql/postgresql.go
RUN go build -buildmode=plugin -o mongodb-linux.so ./plugin/mongodb/mongodb.go
RUN GOOS=linux go build -a -o konsume .

FROM alpine:3.14
WORKDIR /root/
COPY --from=builder /app/konsume .
COPY --from=builder /app/postgres-linux.so ./plugins/
COPY --from=builder /app/mongodb-linux.so ./plugins/
RUN apk add --no-cache ca-certificates
ENTRYPOINT ["./konsume"]

0 comments on commit 0d8a417

Please sign in to comment.