Details

    • New Feature
    • Status: Done
    • Medium
    • Resolution: Fixed
    • None
    • 2.0.1
    • None
    • None
    • Yes
    • Yes
    • Yes

    Description

      currently, the only way to set the full config is by reading files from the filesystem.
      however, it's common to read from stdin or from a string.

      Example:

      # from a file + docker compose exec/run
      cat "$CONFIG_PATH" | docker compose exec -T $SERVICE_NAME pbm config --file="-"
      # from an env var + docker exec
      echo "$CONFIG_CONTENT" | docker exec -i $CONTAINED_ID pbm config --file="-"

      The cat "prints" the content of the "$CONFIG_PATH" file to stdout and PBM CLI reads the content (through unix pipeline) from stdin.

      The file is not required to be accessible for PBM CLI. PBM CLI can be run remotely and the pipeline allows to send the file via the network.

      For example, ssh session: you do not need to copy with `scp` a config file. Just pipeline from local host to remote through opened ssh session.

      Attachments

        Activity

          People

            dmytro.zghoba Dmytro Zghoba
            dmytro.zghoba Dmytro Zghoba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 5 hours, 35 minutes
                5h 35m

                Smart Checklist