When using containers, is there a way to make local changes persistent?

When deploying Stream in containers local configuration changes will not persist. Is there a setting to fix this?

1 UpGoat

@kmccririe I think you should take a look at the CRIBL_VOLUME_DIR environment variable. This defines a directory that is used to persist data between containers or ephemeral instances. When you start your Leader node, be sure you have this environment variable set each time.

Here’s a sample docker-compose.yml that can be used for a leader node where all of the configs will be placed inside a folder called cribl in your user’s home directory:

version: '3'

    image: cribl/cribl:latest
      - "9000:9000"
      - ~/cribl:/opt/criblvolume
    container_name: cribl_leader
    hostname: leader
      CRIBL_DIST_MODE: master
      CRIBL_DIST_MASTER_URL: tcp://criblmaster@
      CRIBL_VOLUME_DIR: /opt/criblvolume

    image: cribl/cribl:latest
    container_name: cribl_worker
      CRIBL_DIST_MASTER_URL: tcp://criblmaster@leader:4200

Another resource that might be useful is the SE Office Hours from 4/6/2022 where I discuss the CRIBL_VOLUME_DIR and it’s practical applications for scenarios like rehydrating environments in the cloud.

1 UpGoat