Skip to content

Commit

Permalink
feat: add minio_s3_bucket_replication resource
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Oct 16, 2023
1 parent c06ddba commit 23041b8
Show file tree
Hide file tree
Showing 23 changed files with 3,286 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
version: "2023.1.6"
install-go: false
- name: Build the docker-compose stack
run: docker-compose up -d minio
run: docker-compose up -d minio secondminio thirdminio fourthminio
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.4.7
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ plan.bin
#go packages
vendor/*
.vscode
.idea
.idea
dev.tfrc
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

.PHONY: docs
docs:
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@latest
12 changes: 12 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ tasks:
MINIO_USER: minio
MINIO_PASSWORD: minio123
MINIO_ENABLE_HTTPS: false
SECOND_MINIO_ENDPOINT: 172.17.0.1:9002
SECOND_MINIO_USER: minio
SECOND_MINIO_PASSWORD: minio321
SECOND_MINIO_ENABLE_HTTPS: false
THIRD_MINIO_ENDPOINT: 172.17.0.1:9004
THIRD_MINIO_USER: minio
THIRD_MINIO_PASSWORD: minio456
THIRD_MINIO_ENABLE_HTTPS: false
FOURTH_MINIO_ENDPOINT: 172.17.0.1:9006
FOURTH_MINIO_USER: minio
FOURTH_MINIO_PASSWORD: minio654
FOURTH_MINIO_ENABLE_HTTPS: false
cmds:
- go test -v -cover ./minio
silent: true
99 changes: 96 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"
services:
minio:
image: minio/minio:RELEASE.2023-03-13T19-46-17Z
image: quay.io/minio/minio:RELEASE.2023-08-31T15-31-16Z
ports:
- "9000:9000"
- "9001:9001"
Expand All @@ -12,12 +12,66 @@ services:
MINIO_NOTIFY_WEBHOOK_ENABLE_primary: "on"
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
secondminio: # This is used to test bucket replication
image: quay.io/minio/minio:RELEASE.2023-08-31T15-31-16Z
ports:
- "9002:9000"
- "9003:9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio321
MINIO_CI_CD: "1"
MINIO_NOTIFY_WEBHOOK_ENABLE_primary: "on"
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
thirdminio: # This is used to test bucket replication
image: quay.io/minio/minio:RELEASE.2023-08-31T15-31-16Z
ports:
- "9004:9000"
- "9005:9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio456
MINIO_CI_CD: "1"
MINIO_NOTIFY_WEBHOOK_ENABLE_primary: "on"
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
fourthminio: # This is used to test bucket replication
image: quay.io/minio/minio:RELEASE.2023-08-31T15-31-16Z
ports:
- "9006:9000"
- "9007:9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio654
MINIO_CI_CD: "1"
MINIO_NOTIFY_WEBHOOK_ENABLE_primary: "on"
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
adminio-ui:
image: rzrbld/adminio-ui:v1.93-210123
environment:
API_BASE_URL: "http://localhost:8080"
ADMINIO_MULTI_BACKEND: "false"
ADMINIO_BACKENDS: '[{"name":"myminio","url":"http://localhost:8080"},{"name":"localhost","url":"http://localhost:8081"},{"name":"error","url":"http://localhost:8082"}]'
ADMINIO_MULTI_BACKEND: "true"
ADMINIO_BACKENDS: |-
[
{
"name": "minio",
"url": "http://localhost:8080"
},
{
"name": "secondminio",
"url": "http://localhost:8081"
},
{
"name": "thirdminio",
"url": "http://localhost:8082"
},
{
"name": "fourthminio",
"url": "http://localhost:8083"
}
]
NGX_ROOT_PATH: "/"
ports:
- "8000:80"
Expand All @@ -34,3 +88,42 @@ services:
- adminio-ui
ports:
- "8080:8080"
secondadminio-api:
image: rzrbld/adminio-api:v1.84-210123
environment:
MINIO_ACCESS: minio
MINIO_SECRET: minio321
MINIO_HOST_PORT: secondminio:9000
MINIO_KMS_MASTER_KEY: terraform-key:da2f4cfa32bed76507dcd44b42872328a8e14f25cd2a1ec0fb85d299a192a447
ADMINIO_HOST_PORT: :8080
depends_on:
- secondminio
- adminio-ui
ports:
- "8081:8080"
thirdadminio-api:
image: rzrbld/adminio-api:v1.84-210123
environment:
MINIO_ACCESS: minio
MINIO_SECRET: minio456
MINIO_HOST_PORT: thirdminio:9000
MINIO_KMS_MASTER_KEY: terraform-key:da2f4cfa32bed76507dcd44b42872328a8e14f25cd2a1ec0fb85d299a192a447
ADMINIO_HOST_PORT: :8082
depends_on:
- thirdminio
- adminio-ui
ports:
- "8082:8080"
fourthadminio-api:
image: rzrbld/adminio-api:v1.84-210123
environment:
MINIO_ACCESS: minio
MINIO_SECRET: minio654
MINIO_HOST_PORT: fourthminio:9000
MINIO_KMS_MASTER_KEY: terraform-key:da2f4cfa32bed76507dcd44b42872328a8e14f25cd2a1ec0fb85d299a192a447
ADMINIO_HOST_PORT: :8083
depends_on:
- fourthminio
- adminio-ui
ports:
- "8083:8080"
Loading

0 comments on commit 23041b8

Please sign in to comment.