Allow redbot-setup to be run in headless mode #2396
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#2396
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
See https://cogboard.red/t/allow-headless-setup-command/250
Necessary for Docker deployment of v3, otherwise an Expect script needs to be written to answer the GUI questions for redbot-setup.
Chat log discussing redbot-setup headless mode with Twentysix: https://pastebin.com/CAC99tpn
It’s been 3 days since me trying to dockerize redbot.
Been trying to attach config.json and settings.json, but still get errors.
Run it as “redbot —no-instance” etc
How do I skip “First run configuration master” ?
If you'd like to PR a change required for this, by all means, do so. In the meantime, each open PR for an official docker image (competing methods to handle it) is copying a preconfigured config.json into the image as this use case really isn't applicable to the majority of our users outside of docker currently. I'd recommend you do the same if you can't wait for a solution to be reviewed and up to our standards as an official image.
Refer to #2273 (current frontrunner) and #2163 (a possible alternative) for more details on this.
@wMw9 I have successfully built a container for v3 without headless mode using Expect scripts to answer the interactive install menus. With this method you can create Red containers without filling out and mounting a config.json and settings.json. You can send me a message on Discord LGA Code#0001 if you want more info.
i'm interested in doing this - I've been thinking about changing the way we store each instance's metadata and settings. I think it'd be beneficial for users and developers alike to have a standardized, documented config file in YAML format, one for each instance, which describes things like data path, storage backend details, and maybe some other stuff too. This'd also mean the
redbotscript could be run with a--config-file <path_to_file>argument in place of an instance name. Theredbot-setupscript would just generate one of these config files and place it in the usual config directory.