http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/scripts/Docker/roundup_healthcheck Mercurial Repository: p/roundup/code: scripts/Docker/roundup_healthcheck history 2025-10-31T20:55:01-04:00 fix: replace localhost with ip address in case localhost is ipv6 addr?? http://hg.code.sf.net:8000/p/roundup/code/#changeset-8a9fc2d7474015e5edbb59b04f1ff77463530284 John Rouillard rouilj@ieee.org 2025-10-31T20:55:01-04:00 2025-10-31T20:55:01-04:00
changeset 8a9fc2d74740
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: replace localhost with ip address in case localhost is ipv6 addr??

Norbert had an issue with his docker container where the healthcheck
was timing out/failing. He diagnosed it as a ipv6 address bound to
localhost.

Not sure if this is the right fix. Might be better to determine where
localhost is bound (V4 or V6 address) but I don't have an environment
I can test with.
files
fix(docker): make healthcheck work when proxy is set http://hg.code.sf.net:8000/p/roundup/code/#changeset-9ceb85d9df32cd8821838d397400ccedf17ed991 Norbert Schlemmer "Noschvie on github.com" Norbert Schlemmer "Noschvie on github.com" 2023-10-25T09:42:11-04:00 2023-10-25T09:42:11-04:00
changeset 9ceb85d9df32
branch
bookmark
tag
user Norbert Schlemmer "Noschvie on github.com"
description fix(docker): make healthcheck work when proxy is set

In docker setups that use a proxy for internet access, exclude the
wget healthcheck from using the proxy when connecting to localhost.

Fix from Norbert Schlemmer.
files
fix: quote variable substitution to prevent whitespace issue http://hg.code.sf.net:8000/p/roundup/code/#changeset-cae50e4ba46726a0d53be28c5c8c1e3611afe295 John Rouillard rouilj@ieee.org 2023-10-24T22:03:55-04:00 2023-10-24T22:03:55-04:00
changeset cae50e4ba467
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: quote variable substitution to prevent whitespace issue

Again the tracker variable should not have embeded whitespace but....

Courtesy of https://www.shellcheck.net/
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
Docker fix healthcheck; allow modules; cleanup; set uid http://hg.code.sf.net:8000/p/roundup/code/#changeset-a24ec63759f6a264a282f92da8dd698a077dae45 John Rouillard rouilj@ieee.org 2022-07-21T00:54:52-04:00 2022-07-21T00:54:52-04:00
changeset a24ec63759f6
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Docker fix healthcheck; allow modules; cleanup; set uid

The docker healthcheck was hardcoded to check the /issues/ tracker.
Replace healthcheck with one that looks for the tracker names on the
roundup-server command line and checks the first one.

During build, additional modules can be specified using
--build-arg="pip_mod=requests setproctitle". This lets the user add
modules unique to the tracker without having to 'docker commit' a new
image from a running container.

Use --build-arg="roundup_uid=2000" to change the uid roundup runs
as. The default is 1000. This is done at build time, not run time.

Remove the sphinx package. All the dependent packages were removed
before, but sphinx wasn't. This led to spurious warnings fom the pip
dependency resolver.

Update docs with changes.
files