allthingslinux / tux

Tux is an all in one bot for the All Things Linux discord server.
https://discord.gg/linux
GNU General Public License v3.0
79 stars 22 forks source link

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

Open kzndotsh opened 2 weeks ago

kzndotsh commented 2 weeks ago

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

Some notes/things to consider:

Linting/formatting/testing utils?

kzndotsh commented 2 weeks ago

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 commented 2 weeks ago

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

kzndotsh commented 2 weeks ago

Boilerplate inspiration and other cool stuff:

HikariNeee commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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

electron271 commented 2 weeks ago

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