http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/roundup/scripts/roundup_demo.py Mercurial Repository: p/roundup/code: roundup/scripts/roundup_demo.py history 2024-07-14T13:36:06-04:00 fix: remove pdb invocation left from testing. http://hg.code.sf.net:8000/p/roundup/code/#changeset-0cb81ee2e572559a5fe8c15806a8879c23dca34f John Rouillard rouilj@ieee.org 2024-07-14T13:36:06-04:00 2024-07-14T13:36:06-04:00
changeset 0cb81ee2e572
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: remove pdb invocation left from testing.
files
refactor: move template prompt to new function; ruff lint cleanups http://hg.code.sf.net:8000/p/roundup/code/#changeset-39013eba1aaf1c2f7099f197b9f4d17cacdcac4d John Rouillard rouilj@ieee.org 2024-07-14T13:27:37-04:00 2024-07-14T13:27:37-04:00
changeset 39013eba1aaf
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description refactor: move template prompt to new function; ruff lint cleanups
files
feat: allow setting URL hostname with -H option to roundup-demo http://hg.code.sf.net:8000/p/roundup/code/#changeset-05f36a527a45e636a308df1d3abbe4de249bf3b6 John Rouillard rouilj@ieee.org 2024-05-02T21:49:17-04:00 2024-05-02T21:49:17-04:00
changeset 05f36a527a45
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description feat: allow setting URL hostname with -H option to roundup-demo

The underlying demo.py code already supported this.

Also update man page ading -H and fixing formatting for a number of
entries. Clarify that hostname can be used with -B to listen on the ip
address for that host.

Refactor port handling to reduce line length.
files
fix: roundup_demo should use port assignment http://hg.code.sf.net:8000/p/roundup/code/#changeset-f5f09ed9a783ffc4f6d83ba01fb9a3c9e1cd4c96 John Rouillard rouilj@ieee.org 2024-05-02T21:21:40-04:00 2024-05-02T21:21:40-04:00
changeset f5f09ed9a783
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: roundup_demo should use port assignment

There are three port values:

urlport (-P) - used in the URL when docker maps real port to external port
port (-p) - used to set port roundup listens on
DEFAULT_PORT = 8917 used for -p if not set.

Before the -p argument was not used if -P was not set. So you
can override the default 8917.
files
fix: roundup-demo, interactive mode would nuke an existing tracker. http://hg.code.sf.net:8000/p/roundup/code/#changeset-c73a1177c2b214f9e75961f5ae7d538813cbd1e0 John Rouillard rouilj@ieee.org 2023-11-08T21:18:34-05:00 2023-11-08T21:18:34-05:00
changeset c73a1177c2b2
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: roundup-demo, interactive mode would nuke an existing tracker.

Tonu Mikk demonstrated a bug in roundup-demo. When invoked without a
tracker home on the command line, it would nuke an existing directory
specified interactively.

There is still a minor bug. If an invalid home directory is specified,
roundup-demo will prompt for the template to use before reporting:

Error: Refusing to nuke non-tracker directory:

but this doesn't cause data loss so not worth fixing at this time.
files
Add support for demo mode in docker. http://hg.code.sf.net:8000/p/roundup/code/#changeset-7b9bddda9d2d1fce5ec4d088d22d40ace12d1364 John Rouillard rouilj@ieee.org 2023-05-14T09:43:53-04:00 2023-05-14T09:43:53-04:00
changeset 7b9bddda9d2d
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Add support for demo mode in docker.

roundup/demo.py
Make changes to allow exposed port in docker to be specified
separately from the port that demo mode binds to. Also permit
bind address specification as well.

roundup/scripts/roundup_demo.py:
Update required by changes in demo.py. Also move away from
positional arguments to prefer flag arguments. Required for
passing port and host specification. Flake8 fixes.

share/man/man1/roundup-demo.1
Document use of option flags rather than positional
params. Other cleanups.

doc/installation.txt:
Document new docker modes: demo, shell and admin.
Update docs:

overview section - reorg, added template info

for the impatient section - added docker demo mode reference,
more docs on top level demo.py use.

new section on docker demo mode

removed getting roundup section. folded into installing roundup.
also prior for the impatient section describes how to download.

install via pip in venv recommended supported method

document all provided templates. not just minimal and classic.

added index references.

move sections around, decreased sectin depth, reformatting

scripts/Docker/roundup_healthcheck:
When running roundup-demo, there is no tracker spec. So default to
demo if no tracker=directory args found. Prevent's docker from
reporting an unhealthy container when running demo.

scripts/Docker/roundup_start:
implement demo, shell, admin docker modes.
files
Fix internationalized strings with multiple unlabeled % replacements. http://hg.code.sf.net:8000/p/roundup/code/#changeset-062a54eeb0a178b5c072eb84c8a617880b33ed0e John Rouillard rouilj@ieee.org 2022-11-22T16:32:07-05:00 2022-11-22T16:32:07-05:00
changeset 062a54eeb0a1
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Fix internationalized strings with multiple unlabeled % replacements.

Get rid of warnings from gettext about untranslatable strings.
files
flake8 whitespace fixes; add version_check http://hg.code.sf.net:8000/p/roundup/code/#changeset-d09a1d6a3bd99bf6b966d2d0ff0492b978e58af9 John Rouillard rouilj@ieee.org 2020-01-07T21:37:48-05:00 2020-01-07T21:37:48-05:00
changeset d09a1d6a3bd9
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description flake8 whitespace fixes; add version_check

import version_check to make sure we are running with version > 2.7 python.
files
Python 3 preparation: replace raw_input uses. http://hg.code.sf.net:8000/p/roundup/code/#changeset-4cf48ff01e048774ed1f762dcfc8935dbb11faa9 Joseph Myers jsm@polyomino.org.uk 2018-07-24T23:47:10+00:00 2018-07-24T23:47:10+00:00
changeset 4cf48ff01e04
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: replace raw_input uses.

The existing my_input in roundup/admin.py is moved to a new
roundup/anypy/my_input.py, which is then used in more places. Manual
patch.
files
Run scripts (roundup_admin.py, ...) directly from checkout. http://hg.code.sf.net:8000/p/roundup/code/#changeset-86ef4ab17dc5126e90162938593f25f94e2d55ca anatoly techtonik techtonik@gmail.com 2013-02-21T20:49:45+03:00 2013-02-21T20:49:45+03:00
changeset 86ef4ab17dc5
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description Run scripts (roundup_admin.py, ...) directly from checkout.

Convenient when you don't want to install Roundup, but want
to run latest version.
files
Allow user to choose the tracker template for demo. http://hg.code.sf.net:8000/p/roundup/code/#changeset-01e8be352fb85dce74978e69957306a807325045 Stefan Seefeld stefan@seefeld.name 2009-03-13T13:30:54+00:00 2009-03-13T13:30:54+00:00
changeset 01e8be352fb8
branch
bookmark
tag
user Stefan Seefeld <stefan@seefeld.name>
description Allow user to choose the tracker template for demo.
files
instant-gratification script for binary distributions http://hg.code.sf.net:8000/p/roundup/code/#changeset-baaf90070dc4d152a36421aa7ca96bb9f85ddbe7 Alexander Smishlajev a1s@users.sourceforge.net 2004-10-18T07:56:09+00:00 2004-10-18T07:56:09+00:00
changeset baaf90070dc4
branch
bookmark
tag
user Alexander Smishlajev <a1s@users.sourceforge.net>
description instant-gratification script for binary distributions
files