I'm trying to setup a minIO service for the test pipeline in my project on Bitbucket. I have almost exactly the same configuration in my docker-compose.yml. It works great with Docker-compose.
When I run this in a bitbucket-pipelines.yml, it fails, showing me the usage of the mc command.
My question is : what is the difference in syntax between bitbucket-pipelines and docker-compose?
I have tried using command instead of entrypoint, without success.
definitions:
services:
minio:
image: minio/minio:edge
container_name: minio
memory: 1024 # default value
expose:
- "9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data
mc:
image: minio/mc:latest
memory: 512
depends_on:
- minio
entrypoint: >
/bin/sh -c "/usr/bin/mc config host rm local
/usr/bin/mc config host add --quiet --api s3v4 local http://minio:9000 minio minio123
/usr/bin/mc rb --force local/ciip-support/
/usr/bin/mc mb --quiet local/ciip-support/"