James Hodson
06/07/2024, 10:23 AMdocker-compose.yml
file:
version: '3.8'
services:
lakefs:
image: treeverse/lakefs:latest
container_name: lakefs
ports:
- 8000:8000
environment:
- LAKEFS_DATABASE_TYPE=local
- LAKEFS_BLOCKSTORE_TYPE=s3
- LAKEFS_BLOCKSTORE_S3_FORCE_PATH_STYLE=true
- LAKEFS_BLOCKSTORE_S3_ENDPOINT=<http://minio:9000>
- LAKEFS_BLOCKSTORE_S3_CREDENTIALS_ACCESS_KEY_ID=${MINIO_USER}
- LAKEFS_BLOCKSTORE_S3_CREDENTIALS_SECRET_ACCESS_KEY=${MINIO_PASSWORD}
- LAKEFS_AUTH_ENCRYPT_SECRET_KEY=some random secret string
- LAKECTL_SERVER_ENDPOINT_URL=<http://localhost:8000>
depends_on:
- minio
networks:
- dbnetwork
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./data/s3data:/mnt/data
environment:
MINIO_ROOT_USER: ${MINIO_USER}
MINIO_ROOT_PASSWORD: ${MINIO_PASSWORD}
MINIO_VOLUMES: "/mnt/data"
command: ['server', '/mnt/data', '--console-address', ":9001"]
networks:
- dbnetwork
createbuckets:
image: minio/mc
depends_on:
- minio
volumes:
- ./data/:/data
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set srv <https://minio:9000> \${MINIO_USER} \${MINIO_PASSWORD};
/usr/bin/mc mb srv/app;
/usr/bin/mc anonymous set public srv/app;
exit 0;
"
networks:
- dbnetwork
networks:
dbnetwork:
name: dbnetwork
driver: bridge
Now, this works fine with running and setting up lakefs, and from the lakectl
tool I can create a branch, ingest my data from Minio and then merge it into main.
However, when I try and clone the data to my local directory with lakectl local clone <lakefs://my-repo/main/data> test-lakefs-data
I get the following error:
download _lakefs/dummy failed: Get "<http://minio:9000/example-data/_lakefs/dummy>: dial tcp: lookup minio: no such host
It might be something obvious I am missing, as I said I'm quite new to this. The compose file already existed so may contain things that isn't relevant to this issue. Thanks in advanceAriel Shaqed (Scolnicov)
06/07/2024, 10:47 AM--pre-sign=false
The last one is probably easiest but the least performant. But if you're not planning a massive local deployment it's probably the first thing to try.
Please let us know how you get along!James Hodson
06/07/2024, 10:54 AMAriel Shaqed (Scolnicov)
06/07/2024, 11:39 AMJames Hodson
06/07/2024, 12:10 PMAriel Shaqed (Scolnicov)
06/07/2024, 12:10 PMJames Hodson
06/11/2024, 2:43 PMAriel Shaqed (Scolnicov)
06/11/2024, 4:17 PMJames Hodson
06/12/2024, 8:14 AM