NiklasRosenstein / flux-ci

Flux is your own private & lightweight CI server.
MIT License
26 stars 10 forks source link

Cleanup, CLI and Docker update #51

Closed NiklasRosenstein closed 6 years ago

NiklasRosenstein commented 6 years ago
tvrzna commented 6 years ago

I have to admit, I miss the option just download, install requirements and run. I'm not big fan of installation, because 1) I'm not into python so every my line is try-error method and I have to debug a lot. 2) I'm used to just unpack and run on server machines. I know, there is still possibility to just install/build into virtualenv, but complicates the simplicity. Or am I missing something and there is still option to run something executable?

edit: Of course I know I can create my own executable and run it as before :)

NiklasRosenstein commented 6 years ago

Hm, I don't quite see how the install script complicates things. Instead of

$ pip install -r requirements.txt

You just do

$ pip install .

Or, more commonly for installations that you commonly upgrade or develop on

$ pip install -e .

(This installs a link to the flux module instead of actually copying the files)

If you haven't set up your PATH so commands that Pip installs are not available, I recommend you do so. If you don't want/can't, you can still run Flux with

$ python -m flux.main

:)

tvrzna commented 6 years ago

I was missing that point, thank you! It works now :)

gsantner commented 6 years ago

I'm too with @tvrzna - if possible i prefer to just do python3 flux-ci flux_run or like that. especially for doing development now it's a lot easier to just restart by ctrl-c, up, enter ;)

did try now

pip install --user -e .
flux
flux-ci

and both commands do not work. whats wrong?

NiklasRosenstein commented 6 years ago

You probably don't have the path where the scripts for user installs are placed in your PATH environment variable. I know for a fact that it's not automatically added on Windows by the Python installer, not sure about Linux.

I' recommend you add that path, somethinh like %APPDATA%\Python\Python3\Scripts on Windows and ~/.local/bin on Linux.

Alternatively, give

python -m flux.main --web

a try. :)

gsantner commented 6 years ago

do you have matrix or something? makes discussion easier

NiklasRosenstein commented 6 years ago

No idea what "matrix" you mean. Some kind of chat service? I know about Gitter, we could use that for example.

gsantner commented 6 years ago

open decentralized communication. many oss projects use it now, especially since it has IRC bridge builtin.

https://about.riot.im/

https://matrix.to/#/@gsantner:matrix.org

without signup it should be even possible to start chat at https://riot.im/app/#/user/@gsantner:matrix.org

NiklasRosenstein commented 6 years ago

I'll check this out tomorrow.