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
85 stars 26 forks source link

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

Open kzndotsh opened 3 months ago

kzndotsh commented 3 months ago

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

Some notes/things to consider:

Linting/formatting/testing utils?

kzndotsh commented 3 months 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 3 months ago

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

kzndotsh commented 3 months ago

Boilerplate inspiration and other cool stuff:

HikariNeee commented 3 months 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 3 months 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 3 months ago

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

electron271 commented 3 months ago

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