You can instantiate a BlueCat Gateway container with custom workflows built-in. This enables use of custom workflows upon first run of a Gateway container without the need to create or import them into Gateway. To add built-in workflows to a container, you must add the workflows to the /portal/Built-in folder in the Dockerfile.
Add all desired workflows to the /tmp folder.
Write the following script in a Dockerfile:
FROM quay.io/bluecat/gateway:latest USER root # you can add any other 3rd party libraries here e.g # RUN pip3 install openpyxl==2.6.2 ADD . /portal/Built-in USER flaskNote: Your file must be named Dockerfile. For more information on Dockerfiles, refer to the official Docker documentation (docs.docker.com).
- Add the Dockerfile in the /tmp folder.
- Write the following script in a Dockerfile:
Create an image using a Dockerfile. Run the docker build command:
cd /tmp docker build -t <name:tag> .An image called custom_image is created.
Instantiate the container by running the docker run command using
docker run -d -p 80:8000 -p 443:44300 -v <path_to_mapped_data_directory>:/ bluecat_gateway/ -v <path_to_mapped_log_directory>:/logs/ -e BAM_IP=<your bam ip> --name bluecat_gateway custom_image
- Log in to BlueCat Gateway. Your custom workflows should be available in the left navigation under Built-In.