Open TrangPham opened 11 months ago
Describe the bug
Docker container for localstack supposed to create "mybucket":
docker-compose.yml
localstack: image: localstack/localstack ports: - "4566:4566" - "4571:4571" environment: - SERVICES=s3 - DEBUG=true # enable persistance - PERSISTENCE=1 - LAMBDA_EXECUTOR=docker - DOCKER_HOST=unix:///var/run/docker.sock - HOSTNAME_EXTERNAL=localstack volumes: - "./docker-entrypoint-initaws.d:/docker-entrypoint-initaws.d" - "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack" - "/var/run/docker.sock:/var/run/docker.sock"
mounts - "./docker-entrypoint-initaws.d:/docker-entrypoint-initaws.d"
- "./docker-entrypoint-initaws.d:/docker-entrypoint-initaws.d"
./docker-entrypoint-initaws.d/create-bucket.sh
#!/bin/bash set -x awslocal s3 mb s3://mybucket set +x
should execute and create s3 bucket named "mybucket"
Current workaround:
USE_S3=false
awslocal s3 mb s3://mybucket
To Reproduce Steps to reproduce the behavior:
docker-compose -f docker-compose.dev.yml build docker-compose -f docker-compose.dev.yml up -d
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Additional context Add any other context about the problem here.
Describe the bug
Docker container for localstack supposed to create "mybucket":
docker-compose.yml
mounts
- "./docker-entrypoint-initaws.d:/docker-entrypoint-initaws.d"
./docker-entrypoint-initaws.d/create-bucket.sh
should execute and create s3 bucket named "mybucket"
Current workaround:
USE_S3=false
in .env (for local) or in docker-compose.dev.yml (for docker) ORawslocal s3 mb s3://mybucket
in localstack docker, then start web dockerTo Reproduce Steps to reproduce the behavior:
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Additional context Add any other context about the problem here.