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 e08b1f9
Show file tree
Hide file tree
Showing 3 changed files with 24 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 }}
3 changes: 3 additions & 0 deletions 01-start-mongobetween.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

mongobetween ${MONGOBETWEEN_ARGS}
18 changes: 17 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
FROM alpine:3.7
FROM nginx:1.25.3-alpine

ENV MONGOBETWEEN_ARGS "mongobetween -network unix '/tmp/mongo.sock=mongodb+srv://username:[email protected]/database?maxpoolsize=10&label=cluster0'"

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

RUN mongobetween --help

COPY ./01-start-mongobetween.sh /docker-entrypoint.d

0 comments on commit e08b1f9

Please sign in to comment.