Skip to content

Commit ce310e7

Browse files
authored
Docker Compose: Spin up Azurite Container for testing Mantis Integration (#234)
* support Azurite for testing bora against blob storage * bump ubuntu
1 parent 3a1ec2a commit ce310e7

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/docker-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
jobs:
1313
tests:
1414
name: Validate Platform Installation
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-22.04
1616

1717
steps:
1818
- name: Checkout

docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,34 @@ services:
9696
- net
9797
depends_on:
9898
- sublime_create_buckets
99+
sublime_azurite:
100+
container_name: sublime_azurite
101+
image: mcr.microsoft.com/azure-storage/azurite
102+
restart: unless-stopped
103+
networks:
104+
- net
105+
ports:
106+
- "10000:10000" # Blob service
107+
- "10001:10001" # Queue service
108+
- "10002:10002" # Table service
109+
volumes:
110+
- azurite_data:/data
111+
command: azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 --location /data --skipApiVersionCheck
112+
sublime_create_azure_blob_containers:
113+
image: mcr.microsoft.com/azure-cli
114+
depends_on:
115+
- sublime_azurite
116+
networks:
117+
- net
118+
environment:
119+
AZURE_STORAGE_CONNECTION_STRING: "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://sublime_azurite:10000/devstoreaccount1;"
120+
command: >
121+
bash -c "
122+
az storage container create --name email-screenshots &&
123+
az storage container create --name events &&
124+
az storage container create --name message-storage &&
125+
az storage container create --name message-export
126+
"
99127
# Keep this name as sublimes3 because underscores don't play nice with certain endpoint validation
100128
sublimes3:
101129
container_name: sublimes3
@@ -166,3 +194,4 @@ volumes:
166194
logs:
167195
s3_data:
168196
localstack:
197+
azurite_data:

0 commit comments

Comments
 (0)