Skip to content

Conversation

@pekebuda
Copy link

This pull request aims to make the whole installation process more logically organized, explicitly separating the different stages and eliminating some redundant steps.

It also implements some new build-time parameterization in order to provide some flexibility to the images being compiled.

# n: automatically update on Mycroft launch
# y: add helper commands to PATH
# n: check code style when submitting
ARG WIZARD_SEQUENCE=ynyn
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While clever, this is very fragile. I feel anything limiting properly automating this setup should be added to the setup script (more env vars or flags, probably), and not hacked around like this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely agree. The approach is really contrived. But being an outsider to the project I was trying to modify as little as possible.

Should I split WIZARD_SEQUENCE buildarg into 4 buildargs? For instance:

  • BRANCH
  • AUTO_UPDATE
  • ADD_HELPERS
  • CHECK_CODE

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I forgot to reply to this, sorry.

Well, above all, the official installer needs to be changed to accept these kind of things as environment variables so that this can be done cleanly in a way that won't break in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants