Utilizing ZBL object Store
This page provide details about modifying you docker images of micrservices which are to be onboarded onto ZBL AI-Microcloud in order to utilize and interact with ZBL object storage through them.
FROM ubuntu:22.04
WORKDIR /app
#Environment variables
ENV BUCKET_TYPE="objectstorage"
ENV S3_BUCKET_NAME="my-bucketname"
ENV NB_USER="myusername"
ENV datalake_url="https://datalake.url"
ENV datalake_secret="myecrets"
ENV platform_url="https://myurl"
ENV ATTACH_BUCKET="yes"
ENV DEFAULT_BUCKET="mydefaultbucket"
ENV ACCOUNT_NAME="myaccountname"
ENV ACCOUNT_KEY="key"
ENV AWS_SECRET_KEY="myaccesskey"
ENV AWS_ACCESS_KEY_ID="mysubcribeid"
RUN mkdir bucket
RUN mkdir static
#Copy the zeblok_ds_mount.sh script
COPY zeblok_ds_mount.sh /app
#Install the required packages
RUN apt update && apt-get install -y s3fs build-essential libfuse-dev libcurl4-openssl-dev libxml2-dev pkg-config libssl-dev mime-support automake libtool lsb-release fuse3
RUN wget https://github.com/Azure/azure-storage-fuse/releases/download/blobfuse2-2.2.0/blobfuse2-2.2.0-Ubuntu-22.04.x86_64.deb && dpkg -i blobfuse2-2.2.0-Ubuntu-22.04.x86_64.deb && apt-get -f install -y && rm -rf blobfuse2-2.2.0-Ubuntu-22.04.x86_64.deb
#Run the script on starting the container
ENTRYPOINT ["sh", "/app/zeblok_ds_mount.sh"] Last updated
Was this helpful?