Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create setup.sh to provide a fast and seamless local dev environment #456

Open
kzndotsh opened this issue Aug 24, 2024 · 7 comments
Open

Comments

@kzndotsh
Copy link
Contributor

kzndotsh commented Aug 24, 2024

See https://github.com/allthingslinux/tux/blob/setup/setup.sh

Some notes/things to consider:

  • Find good examples of bash boilerplate/templates for setup scripts
  • We need to ensure we account for various shells/terminals
  • We need to ensure we account for various distros/package managers
  • Ideally, it will be interactive and take in user input for some things e.g. user ID, prefix
  • If something errors out, it should report back why and how to resolve it.

Linting/formatting/testing utils?

@kzndotsh
Copy link
Contributor Author

We could possibly even install Poetry for the user if not available via this script which installs Poetry in a "sandbox" manner: https://github.com/python-poetry/install.python-poetry.org

@kzndotsh
Copy link
Contributor Author

If this use does not have Python installed, we could potentially opt in to provide it via https://mise.jdx.dev

@kzndotsh kzndotsh self-assigned this Aug 24, 2024
@HikariNeee
Copy link
Contributor

I don't think we should handle the cases of them not having Poetry or Python installed.

Doing this in a distro-agnostic way that works everywhere is a very big task.

@HikariNeee
Copy link
Contributor

The simplest script we can have is one that installs docker and runs Tux in there.
Also stops the global namespace pollution so that's also a +

@kzndotsh
Copy link
Contributor Author

That's fair, check out general chat of the dev server for some recent discussion about this issue.

@electron271
Copy link
Contributor

electron271 commented Aug 26, 2024

maybe we can focus on containerized development of tux and setup.sh just generates the config files and the docker compose

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

When branches are created from issues, their pull requests are automatically linked.

4 participants