-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into match-usertags
- Loading branch information
Showing
14 changed files
with
844 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
version: '3.7' | ||
|
||
# Settings and configurations that are common for all containers | ||
x-minio-common: &minio-common | ||
image: minio/minio:${JOB_NAME} | ||
command: server --console-address ":9001" http://minio{1...4}/cdata{1...2} | ||
expose: | ||
- "9000" | ||
- "9001" | ||
environment: | ||
MINIO_CI_CD: "on" | ||
MINIO_ROOT_USER: "minio" | ||
MINIO_ROOT_PASSWORD: "minio123" | ||
MINIO_COMPRESS: "true" | ||
MINIO_COMPRESS_MIMETYPES: "*" | ||
MINIO_KMS_SECRET_KEY: "my-minio-key:OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw=" | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] | ||
interval: 30s | ||
timeout: 20s | ||
retries: 3 | ||
|
||
# starts 4 docker containers running minio server instances. | ||
# using nginx reverse proxy, load balancing, you can access | ||
# it through port 9000. | ||
services: | ||
minio1: | ||
<<: *minio-common | ||
hostname: minio1 | ||
volumes: | ||
- cdata1-1:/cdata1 | ||
- cdata1-2:/cdata2 | ||
|
||
minio2: | ||
<<: *minio-common | ||
hostname: minio2 | ||
volumes: | ||
- cdata2-1:/cdata1 | ||
- cdata2-2:/cdata2 | ||
|
||
minio3: | ||
<<: *minio-common | ||
hostname: minio3 | ||
volumes: | ||
- cdata3-1:/cdata1 | ||
- cdata3-2:/cdata2 | ||
|
||
minio4: | ||
<<: *minio-common | ||
hostname: minio4 | ||
volumes: | ||
- cdata4-1:/cdata1 | ||
- cdata4-2:/cdata2 | ||
|
||
nginx: | ||
image: nginx:1.19.2-alpine | ||
hostname: nginx | ||
volumes: | ||
- ./nginx-4-node.conf:/etc/nginx/nginx.conf:ro | ||
ports: | ||
- "9000:9000" | ||
- "9001:9001" | ||
depends_on: | ||
- minio1 | ||
- minio2 | ||
- minio3 | ||
- minio4 | ||
|
||
## By default this config uses default local driver, | ||
## For custom volumes replace with volume driver configuration. | ||
volumes: | ||
cdata1-1: | ||
cdata1-2: | ||
cdata2-1: | ||
cdata2-2: | ||
cdata3-1: | ||
cdata3-2: | ||
cdata4-1: | ||
cdata4-2: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
version: '3.7' | ||
|
||
# Settings and configurations that are common for all containers | ||
x-minio-common: &minio-common | ||
image: minio/minio:${JOB_NAME} | ||
command: server --console-address ":9001" edata{1...4} | ||
expose: | ||
- "9000" | ||
- "9001" | ||
environment: | ||
MINIO_CI_CD: "on" | ||
MINIO_ROOT_USER: "minio" | ||
MINIO_ROOT_PASSWORD: "minio123" | ||
MINIO_COMPRESS: "true" | ||
MINIO_COMPRESS_MIMETYPES: "*" | ||
MINIO_KMS_SECRET_KEY: "my-minio-key:OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw=" | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] | ||
interval: 30s | ||
timeout: 20s | ||
retries: 3 | ||
|
||
# starts 4 docker containers running minio server instances. | ||
# using nginx reverse proxy, load balancing, you can access | ||
# it through port 9000. | ||
services: | ||
minio1: | ||
<<: *minio-common | ||
hostname: minio1 | ||
volumes: | ||
- edata1-1:/edata1 | ||
- edata1-2:/edata2 | ||
- edata1-3:/edata3 | ||
- edata1-4:/edata4 | ||
|
||
nginx: | ||
image: nginx:1.19.2-alpine | ||
hostname: nginx | ||
volumes: | ||
- ./nginx-1-node.conf:/etc/nginx/nginx.conf:ro | ||
ports: | ||
- "9000:9000" | ||
- "9001:9001" | ||
depends_on: | ||
- minio1 | ||
|
||
## By default this config uses default local driver, | ||
## For custom volumes replace with volume driver configuration. | ||
volumes: | ||
edata1-1: | ||
edata1-2: | ||
edata1-3: | ||
edata1-4: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
version: '3.7' | ||
|
||
# Settings and configurations that are common for all containers | ||
x-minio-common: &minio-common | ||
image: minio/minio:${JOB_NAME} | ||
command: server --console-address ":9001" http://minio{1...4}/pdata{1...2} http://minio{5...8}/pdata{1...2} | ||
expose: | ||
- "9000" | ||
- "9001" | ||
environment: | ||
MINIO_CI_CD: "on" | ||
MINIO_ROOT_USER: "minio" | ||
MINIO_ROOT_PASSWORD: "minio123" | ||
MINIO_KMS_SECRET_KEY: "my-minio-key:OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw=" | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] | ||
interval: 30s | ||
timeout: 20s | ||
retries: 3 | ||
|
||
# starts 4 docker containers running minio server instances. | ||
# using nginx reverse proxy, load balancing, you can access | ||
# it through port 9000. | ||
services: | ||
minio1: | ||
<<: *minio-common | ||
hostname: minio1 | ||
volumes: | ||
- pdata1-1:/pdata1 | ||
- pdata1-2:/pdata2 | ||
|
||
minio2: | ||
<<: *minio-common | ||
hostname: minio2 | ||
volumes: | ||
- pdata2-1:/pdata1 | ||
- pdata2-2:/pdata2 | ||
|
||
minio3: | ||
<<: *minio-common | ||
hostname: minio3 | ||
volumes: | ||
- pdata3-1:/pdata1 | ||
- pdata3-2:/pdata2 | ||
|
||
minio4: | ||
<<: *minio-common | ||
hostname: minio4 | ||
volumes: | ||
- pdata4-1:/pdata1 | ||
- pdata4-2:/pdata2 | ||
|
||
minio5: | ||
<<: *minio-common | ||
hostname: minio5 | ||
volumes: | ||
- pdata5-1:/pdata1 | ||
- pdata5-2:/pdata2 | ||
|
||
minio6: | ||
<<: *minio-common | ||
hostname: minio6 | ||
volumes: | ||
- pdata6-1:/pdata1 | ||
- pdata6-2:/pdata2 | ||
|
||
minio7: | ||
<<: *minio-common | ||
hostname: minio7 | ||
volumes: | ||
- pdata7-1:/pdata1 | ||
- pdata7-2:/pdata2 | ||
|
||
minio8: | ||
<<: *minio-common | ||
hostname: minio8 | ||
volumes: | ||
- pdata8-1:/pdata1 | ||
- pdata8-2:/pdata2 | ||
|
||
nginx: | ||
image: nginx:1.19.2-alpine | ||
hostname: nginx | ||
volumes: | ||
- ./nginx-8-node.conf:/etc/nginx/nginx.conf:ro | ||
ports: | ||
- "9000:9000" | ||
- "9001:9001" | ||
depends_on: | ||
- minio1 | ||
- minio2 | ||
- minio3 | ||
- minio4 | ||
- minio5 | ||
- minio6 | ||
- minio7 | ||
- minio8 | ||
|
||
## By default this config uses default local driver, | ||
## For custom volumes replace with volume driver configuration. | ||
volumes: | ||
pdata1-1: | ||
pdata1-2: | ||
pdata2-1: | ||
pdata2-2: | ||
pdata3-1: | ||
pdata3-2: | ||
pdata4-1: | ||
pdata4-2: | ||
pdata5-1: | ||
pdata5-2: | ||
pdata6-1: | ||
pdata6-2: | ||
pdata7-1: | ||
pdata7-2: | ||
pdata8-1: | ||
pdata8-2: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Mint Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
# This ensures that previous jobs for the PR are canceled when the PR is | ||
# updated. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
mint-test: | ||
runs-on: mint | ||
timeout-minutes: 120 | ||
steps: | ||
- name: cleanup #https://github.com/actions/checkout/issues/273 | ||
run: | | ||
sudo -S rm -rf ${GITHUB_WORKSPACE} | ||
mkdir ${GITHUB_WORKSPACE} | ||
- name: checkout-step | ||
uses: actions/checkout@v3 | ||
|
||
- name: setup-go-step | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.20.x | ||
|
||
- name: github sha short | ||
id: vars | ||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: build-minio | ||
run: | | ||
make install | ||
docker build . -t "minio/minio:${{ steps.vars.outputs.sha_short }}" | ||
- name: compress and encrypt | ||
run: | | ||
${GITHUB_WORKSPACE}/.github/workflows/run-mint.sh "compress-encrypt" "minio" "minio123" "${{ steps.vars.outputs.sha_short }}" | ||
- name: multiple pools | ||
run: | | ||
${GITHUB_WORKSPACE}/.github/workflows/run-mint.sh "pools" "minio" "minio123" "${{ steps.vars.outputs.sha_short }}" | ||
- name: standalone erasure | ||
run: | | ||
${GITHUB_WORKSPACE}/.github/workflows/run-mint.sh "erasure" "minio" "minio123" "${{ steps.vars.outputs.sha_short }}" | ||
docker rmi -f minio/minio:${{ steps.vars.outputs.sha_short }} | ||
Oops, something went wrong.