add minio and mongodb dev containers
This commit is contained in:
parent
d354ec32b1
commit
3cf6e5caba
6 changed files with 111 additions and 0 deletions
48
.github/workflows/minio.yml
vendored
Normal file
48
.github/workflows/minio.yml
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
name: Minio
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
minio-build:
|
||||||
|
name: "Build"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
sparse-checkout: minio
|
||||||
|
|
||||||
|
- uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: "Setup: Login to Docker Hub"
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: matthewbaggett
|
||||||
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||||
|
|
||||||
|
- name: "Setup: Login to GHCR"
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: matthewbaggett
|
||||||
|
password: ${{ secrets.GHCR_PASSWORD }}
|
||||||
|
|
||||||
|
- uses: docker/build-push-action@v5
|
||||||
|
name: Build & Push
|
||||||
|
with:
|
||||||
|
context: minio
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
pull: true
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
gone/minio
|
||||||
|
benzine/minio
|
||||||
|
ghcr.io/benzine-framework/minio
|
||||||
48
.github/workflows/mongodb.yml
vendored
Normal file
48
.github/workflows/mongodb.yml
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
name: Minio
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
mongodb-build:
|
||||||
|
name: "Build"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
sparse-checkout: mongodb
|
||||||
|
|
||||||
|
- uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: "Setup: Login to Docker Hub"
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: matthewbaggett
|
||||||
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||||
|
|
||||||
|
- name: "Setup: Login to GHCR"
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: matthewbaggett
|
||||||
|
password: ${{ secrets.GHCR_PASSWORD }}
|
||||||
|
|
||||||
|
- uses: docker/build-push-action@v5
|
||||||
|
name: Build & Push
|
||||||
|
with:
|
||||||
|
context: mongodb
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
pull: true
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
gone/mongodb
|
||||||
|
benzine/mongodb
|
||||||
|
ghcr.io/benzine-framework/mongodb
|
||||||
4
minio/Dockerfile
Normal file
4
minio/Dockerfile
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
FROM minio/minio
|
||||||
|
HEALTHCHECK --interval=5s --timeout=3s --start-period=0s --retries=5 \
|
||||||
|
CMD mc ping local -c 1 -q
|
||||||
|
CMD ["server", "--console-address", ":9001", "/data"]
|
||||||
4
minio/docker-compose.yml
Normal file
4
minio/docker-compose.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
version: "3.7"
|
||||||
|
services:
|
||||||
|
minio:
|
||||||
|
build: .
|
||||||
3
mongodb/Dockerfile
Normal file
3
mongodb/Dockerfile
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
FROM mongo:7.0
|
||||||
|
HEALTHCHECK --interval=5s --timeout=3s --start-period=0s --retries=5 \
|
||||||
|
CMD echo 'db.stats().ok' | mongosh --norc --quiet --host=localhost:27017
|
||||||
4
mongodb/docker-compose.yml
Normal file
4
mongodb/docker-compose.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
version: "3.7"
|
||||||
|
services:
|
||||||
|
mongodb:
|
||||||
|
build: .
|
||||||
Loading…
Reference in a new issue