Allow creating an instance non-interactively #4046
No reviewers
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!4046
Loading…
Reference in a new issue
No description provided.
Delete branch "bootstrap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Description of the changes
resolves 2396 and makes future work with containers more bearable.
example use
further modification supported by use of edit, this just creates with defaults (allowing it to be used in conjunction with non-interactive editing of existing instances via edit for headless setup)
YES. I have to use Expect right now to answer the interactive setup for Docker because Docker does not play nice with interactive command prompts. I've had to update the expect script every time for the last 3 Red updates because the wording in the sentence about what characters are allowed in the instance name was slightly changed every time, and Expect is pretty harsh about how it detects the questions and answers...
A headless way of running redbot-setup would solve all these issues for Docker and we would no longer have to rely on things like Expect. Maybe even paving a way towards full Docker support?
Just because this is a PR, doesn't mean Docker is supported.
Eventually when Docker support is a priority we will work on it, until then 🤷 as we have higher priority stuff going on at the moment.
Just a heads up, while Docker may not be supported by this PR, this PR should give people tools to go do their own thing more easily until we do support it. I have no intention of this being part of a larger PR set, just acknowledged in the description that it happens to help with other goals too.
Well this beats my solution of just manually placing an config file with the bot 😄
While this isn't in scope of this PR, something worth noting is that PostgreSQL driver currently does not support headless configuration of storage details.
No, but Postgres does support env vars for providing these details (should likely support setting this non-interactively later on, but it's a problem that doesn't require something like an expect script to work around at least)
Pull request closed