Skip to content

Commit a87199f

Browse files
Add minio bucket routes.
1 parent d4e4153 commit a87199f

11 files changed

+27
-19
lines changed

LNX-docker-compose.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,31 @@ services:
1919
- MINIO_ACCESS_KEY=datajoint
2020
- MINIO_SECRET_KEY=datajoint
2121
# ports:
22-
# - "80:80"
22+
# - "9000:9000"
2323
# volumes:
2424
# - ./minio/config:/root/.minio
2525
# - ./minio/data:/data
26-
command: server --address ":80" /data
26+
command: server --address ":9000" /data
2727
healthcheck:
28-
test: ["CMD", "curl", "--fail", "http://minio:80/minio/health/live"]
28+
test: ["CMD", "curl", "--fail", "http://minio:9000/minio/health/live"]
2929
timeout: 5s
3030
retries: 60
3131
interval: 1s
3232
fakeservices.datajoint.io:
3333
<<: *net
34-
image: raphaelguzman/nginx:v0.0.5
34+
image: raphaelguzman/nginx:v0.0.6
3535
environment:
3636
- ADD_db_TYPE=DATABASE
3737
- ADD_db_ENDPOINT=db:3306
3838
- ADD_minio_TYPE=MINIO
39-
- ADD_minio_ENDPOINT=minio:80
40-
- ADD_minio_PREFIX=/
39+
- ADD_minio_ENDPOINT=minio:9000
40+
- ADD_minio_PORT=80 # allow unencrypted connections
41+
- ADD_minio_PREFIX=/datajoint
4142
# ports:
4243
# - "80:80"
4344
# - "443:443"
4445
# - "3306:3306"
46+
# - "9000:9000"
4547
depends_on:
4648
db:
4749
condition: service_healthy
@@ -63,7 +65,7 @@ services:
6365
- S3_ENDPOINT=fakeservices.datajoint.io
6466
- S3_ACCESS_KEY=datajoint
6567
- S3_SECRET_KEY=datajoint
66-
- S3_BUCKET=datajoint-test
68+
- S3_BUCKET=datajoint.test
6769
- PYTHON_USER=dja
6870
- JUPYTER_PASSWORD=datajoint
6971
- DISPLAY

local-docker-compose.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,35 @@ services:
2020
- MINIO_ACCESS_KEY=datajoint
2121
- MINIO_SECRET_KEY=datajoint
2222
# ports:
23-
# - "80:80"
23+
# - "9000:9000"
2424
# To persist MinIO data and config
2525
# volumes:
2626
# - ./minio/data:/data
2727
# - ./minio/config:/root/.minio
28-
command: server --address ":80" /data
28+
command: server --address ":9000" /data
2929
healthcheck:
30-
test: ["CMD", "curl", "--fail", "http://minio:80/minio/health/live"]
30+
test: ["CMD", "curl", "--fail", "http://minio:9000/minio/health/live"]
3131
timeout: 5s
3232
retries: 60
3333
interval: 1s
3434
fakeservices.datajoint.io:
3535
<<: *net
36-
image: raphaelguzman/nginx:v0.0.5
36+
image: raphaelguzman/nginx:v0.0.6
3737
environment:
3838
- ADD_db_TYPE=DATABASE
3939
- ADD_db_ENDPOINT=db:3306
4040
- ADD_minio_TYPE=MINIO
41-
- ADD_minio_ENDPOINT=minio:80
42-
- ADD_minio_PREFIX=/
41+
- ADD_minio_ENDPOINT=minio:9000
42+
- ADD_minio_PORT=80 # allow unencrypted connections
43+
- ADD_minio_PREFIX=/datajoint
44+
- ADD_browser_TYPE=MINIOADMIN
45+
- ADD_browser_ENDPOINT=minio:9000
46+
- ADD_browser_PORT=80 # allow unencrypted connections
4347
ports:
4448
- "80:80"
4549
- "443:443"
4650
- "3306:3306"
51+
- "9000:9000"
4752
depends_on:
4853
db:
4954
condition: service_healthy
@@ -66,7 +71,7 @@ services:
6671
- S3_ENDPOINT=fakeservices.datajoint.io
6772
- S3_ACCESS_KEY=datajoint
6873
- S3_SECRET_KEY=datajoint
69-
- S3_BUCKET=datajoint-test
74+
- S3_BUCKET=datajoint.test
7075
- PYTHON_USER=dja
7176
- JUPYTER_PASSWORD=datajoint
7277
- DISPLAY

tests/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
endpoint=environ.get('S3_ENDPOINT', 'localhost:9000'),
4040
access_key=environ.get('S3_ACCESS_KEY', 'datajoint'),
4141
secret_key=environ.get('S3_SECRET_KEY', 'datajoint'),
42-
bucket=environ.get('S3_BUCKET', 'datajoint-test'))
42+
bucket=environ.get('S3_BUCKET', 'datajoint.test'))
4343

44-
S3_MIGRATE_BUCKET = [path.stem for path in Path(
44+
S3_MIGRATE_BUCKET = [path.name for path in Path(
4545
Path(__file__).resolve().parent,
4646
'external-legacy-data', 's3').iterdir()][0]
4747

@@ -104,7 +104,7 @@
104104
S3_CONN_INFO['endpoint'],
105105
access_key=S3_CONN_INFO['access_key'],
106106
secret_key=S3_CONN_INFO['secret_key'],
107-
secure=False,
107+
secure=True,
108108
http_client=httpClient)
109109

110110

tests/external-legacy-data/file/temp/datajoint-migrate/djtest_blob_migrate/_Fhi2GUBB0fgxcSP2q-isgncIUTdgGK7ivHiySAU_94local renamed to tests/external-legacy-data/file/temp/datajoint.migrate/djtest_blob_migrate/_Fhi2GUBB0fgxcSP2q-isgncIUTdgGK7ivHiySAU_94local

File renamed without changes.

tests/external-legacy-data/file/temp/datajoint-migrate/djtest_blob_migrate/e46pnXQW9GaCKbL3WxV1crGHeGqcE0OLInM_TTwAFfwlocal renamed to tests/external-legacy-data/file/temp/datajoint.migrate/djtest_blob_migrate/e46pnXQW9GaCKbL3WxV1crGHeGqcE0OLInM_TTwAFfwlocal

File renamed without changes.

tests/external-legacy-data/s3/datajoint-migrate/maps/djtest_blob_migrate/FoRROa2LWM6_wx0RIQ0J-LVvgm256cqDQfJa066HoTEshared renamed to tests/external-legacy-data/s3/datajoint.migrate/maps/djtest_blob_migrate/FoRROa2LWM6_wx0RIQ0J-LVvgm256cqDQfJa066HoTEshared

File renamed without changes.

tests/external-legacy-data/s3/datajoint-migrate/maps/djtest_blob_migrate/NmWj002gtKUkt9GIBwzn6Iw3x6h7ovlX_FfELbfjwRQshared renamed to tests/external-legacy-data/s3/datajoint.migrate/maps/djtest_blob_migrate/NmWj002gtKUkt9GIBwzn6Iw3x6h7ovlX_FfELbfjwRQshared

File renamed without changes.

tests/external-legacy-data/s3/datajoint-migrate/maps/djtest_blob_migrate/Ue9c89gKVZD7xPOcHd5Lz6mARJQ50xT1G5cTTX4h0L0shared renamed to tests/external-legacy-data/s3/datajoint.migrate/maps/djtest_blob_migrate/Ue9c89gKVZD7xPOcHd5Lz6mARJQ50xT1G5cTTX4h0L0shared

File renamed without changes.

tests/external-legacy-data/s3/datajoint-migrate/store/djtest_blob_migrate/_3A03zPqfVhbn0rhlOJYGNivFJ4uqYuHaeQBA-V8PKA renamed to tests/external-legacy-data/s3/datajoint.migrate/store/djtest_blob_migrate/_3A03zPqfVhbn0rhlOJYGNivFJ4uqYuHaeQBA-V8PKA

File renamed without changes.

tests/external-legacy-data/s3/datajoint-migrate/store/djtest_blob_migrate/_Fhi2GUBB0fgxcSP2q-isgncIUTdgGK7ivHiySAU_94 renamed to tests/external-legacy-data/s3/datajoint.migrate/store/djtest_blob_migrate/_Fhi2GUBB0fgxcSP2q-isgncIUTdgGK7ivHiySAU_94

File renamed without changes.

0 commit comments

Comments
 (0)