Extend Instabase images
Infrastructure administrators can extend the capabilities of celery-app-tasks
by using the Instabase container as a base, and then installing additional packages on top of it. The option to extend certified images exists for scenarios where you need additional Python packages to achieve specific custom functionality in user-defined functions (UDFs).
Instabase is not responsible for supporting extensions to certified images. Extending the certified celery-app-tasks
image is done at your own risk.
After building your extended container, push it to a repository of your choice, and deploy it in place of the Instabase-provided image.
To extend the capabilities of user-defined functions (UDFs):
FROM gcr.io/instabase-public/celery-app-tasks:{YOUR_RECENT_RELEASE}
# Package installations and changes must be performed as root.
USER root
# Install your list of packages here!
RUN pip install --user \
pyfiglet==0.7.6
# For security, we do not run our services as root. Switch back to the ib-user UID.
USER 9999
From the deployment images you received from Instabase, find the tag that matches your most recent release, and use that tag in place of {YOUR_RECENT_RELEASE}
.