Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
✨ Install mongobetween
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland committed Feb 12, 2024
1 parent aa73a65 commit deafd92
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

concurrency:
group: docker-build

jobs:
docker-build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,6 +36,6 @@ jobs:
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5
with:
push: true
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/386,linux/ppc64le,linux/s390x
platforms: linux/amd64,linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
20 changes: 19 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
FROM alpine:3.7
FROM alpine:3.19.1

ENV CONNECTION_STRING "mongodb://localhost:27017/database"
ENV LOG_LEVEL "info"
ENV MONGO_PORT 27018
ENV MONGO_USERNAME "user"
ENV MONGO_PASSWORD "password"

RUN apk add --no-cache go

ENV GOROOT /usr/lib/go
ENV GOPATH /go
ENV PATH /go/bin:$PATH

RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin

RUN go install github.com/coinbase/mongobetween@latest

CMD mongobetween -loglevel "${LOG_LEVEL}" -username "${MONGO_USERNAME}" -password "${MONGO_PASSWORD}" ":${MONGO_PORT}=${CONNECTION_STRING}"

0 comments on commit deafd92

Please sign in to comment.