http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/scripts/Docker/roundup_start Mercurial Repository: p/roundup/code: scripts/Docker/roundup_start history 2024-03-25T22:33:24-04:00 fix: log arguments passed to docker start script to stdout. http://hg.code.sf.net:8000/p/roundup/code/#changeset-c6fcc8ba478a13d1629a21be6fe117c489abf3c3 John Rouillard rouilj@ieee.org 2024-03-25T22:33:24-04:00 2024-03-25T22:33:24-04:00
changeset c6fcc8ba478a
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: log arguments passed to docker start script to stdout.

When trying to get this working under kubernetes the logs weren't
reporting the arguments passed to the script.
files
feat: add help argument for docker image http://hg.code.sf.net:8000/p/roundup/code/#changeset-36c3acb4b49b0f474f65b29839fab2faac22ec27 John Rouillard rouilj@ieee.org 2023-11-22T00:46:10-05:00 2023-11-22T00:46:10-05:00
changeset 36c3acb4b49b
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description feat: add help argument for docker image

Brief help is reported when help argument is given to the docker
container.
files
fix: do not quote nuke arg http://hg.code.sf.net:8000/p/roundup/code/#changeset-ccb5169ee6ee2b264f4adaccad96035ef9023f89 John Rouillard rouilj@ieee.org 2023-11-21T23:25:40-05:00 2023-11-21T23:25:40-05:00
changeset ccb5169ee6ee
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: do not quote nuke arg

Quoting the nuke arg when nuke was missing resulted in an empty
trailing argument passed to roundup-demo that was interpreted as
a position argument to set the database type.

$nuke is exactly the word nuke so no need to quote it as though it
could contain multiple space separated tokens.
files
fix: do not use -a as argument to test http://hg.code.sf.net:8000/p/roundup/code/#changeset-095f379bf639033f804238056d95f494cb0d9388 John Rouillard rouilj@ieee.org 2023-10-24T22:00:16-04:00 2023-10-24T22:00:16-04:00
changeset 095f379bf639
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: do not use -a as argument to test

Apparently now well defined. Suggest using

if [ ... ] && [ ... ]; then

rather than

if [ ... -a ... ]; then

with complex ... expressions.

Courtesy of https://www.shellcheck.net/
files
fix: use [ -n ... ] rather than ! [ -z ...] http://hg.code.sf.net:8000/p/roundup/code/#changeset-c7788bdd37604af3eeacf042c57c073b6a7041cb John Rouillard rouilj@ieee.org 2023-10-24T21:55:24-04:00 2023-10-24T21:55:24-04:00
changeset c7788bdd3760
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: use [ -n ... ] rather than ! [ -z ...]

Style fix.

Courtesy of https://www.shellcheck.net/
files
fix: use POSIX supported test a = b rather than a == b. http://hg.code.sf.net:8000/p/roundup/code/#changeset-678d235f024d80b17202e9261a60ecd32f6bbd98 John Rouillard rouilj@ieee.org 2023-10-24T21:53:22-04:00 2023-10-24T21:53:22-04:00
changeset 678d235f024d
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: use POSIX supported test a = b rather than a == b.

Courtesy of https://www.shellcheck.net/
files
fix: move POSIX unsupported items outside of set -e http://hg.code.sf.net:8000/p/roundup/code/#changeset-b3c3e508b18fd8889084f8e502a4edee633183d1 John Rouillard rouilj@ieee.org 2023-10-24T21:50:39-04:00 2023-10-24T21:50:39-04:00
changeset b3c3e508b18f
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: move POSIX unsupported items outside of set -e

If the non-poisx fail under a POSIX shell, allow the script to still
run but with the errors. So all non-POSIX supported stuff goes before
set -e.

Courtesy of https://www.shellcheck.net/
files
fix: quote variable substitution http://hg.code.sf.net:8000/p/roundup/code/#changeset-b8aef93178db57f21044533b65ee21ee4d7a07c2 John Rouillard rouilj@ieee.org 2023-10-24T21:45:05-04:00 2023-10-24T21:45:05-04:00
changeset b8aef93178db
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: quote variable substitution

To prevent issues with spaces in the variable.
The var should be a single word but it pays to be careful.

Courtesy of https://www.shellcheck.net/
files
fix: use read -r to remove \ special meaning http://hg.code.sf.net:8000/p/roundup/code/#changeset-08e87030f3a2b79af5b495d729b04afdf43966a1 John Rouillard rouilj@ieee.org 2023-10-24T21:42:56-04:00 2023-10-24T21:42:56-04:00
changeset 08e87030f3a2
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: use read -r to remove \ special meaning

Courtesy of https://www.shellcheck.net/
files
fix: use variable template sub for printf. http://hg.code.sf.net:8000/p/roundup/code/#changeset-cf5d37182dc9016c5e64e40c019bebc6b9404d28 John Rouillard rouilj@ieee.org 2023-10-24T21:40:48-04:00 2023-10-24T21:40:48-04:00
changeset cf5d37182dc9
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: use variable template sub for printf.

Don't use $1 inside printf string.

Courtesy of https://www.shellcheck.net/
files
fix: roundup_start script exited for 2.3.0 roundup. http://hg.code.sf.net:8000/p/roundup/code/#changeset-b31343f1615326fb8265aa7dc77eb683812836a9 John Rouillard rouilj@ieee.org 2023-10-16T22:19:45-04:00 2023-10-16T22:19:45-04:00
changeset b31343f16153
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: roundup_start script exited for 2.3.0 roundup.

I added 'set -eo pipefail' and must have missed a test case that
caused demo mode to exit. Fix this.
files
fix: update comments force exit on pipefail http://hg.code.sf.net:8000/p/roundup/code/#changeset-0f6b7a70bc4316a5f9a8e8736005823d4848d7ea John Rouillard rouilj@ieee.org 2023-09-18T01:06:24-04:00 2023-09-18T01:06:24-04:00
changeset 0f6b7a70bc43
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: update comments force exit on pipefail
files
Cleanup docker before 2.3.0b1 release http://hg.code.sf.net:8000/p/roundup/code/#changeset-e7df82ae137d4cec03c032300fe2d1c351d73a1f John Rouillard rouilj@ieee.org 2023-05-31T19:14:56-04:00 2023-05-31T19:14:56-04:00
changeset e7df82ae137d
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Cleanup docker before 2.3.0b1 release

scripts/Docker/Dockerfile

Document/implement pip_sdist source mode for testing the source
distribution. Change from multiple if's to case statement.

Disable verbose tracing of shells script. Use
--build-arg="VERBOSE=1" to enable set -xv.

scripts/Docker/roundup_start

Report error if demo mode is used with 2.2.0. This catches the
easiest case where build is done using pypi before 2.3.0 final is
released.

Indent demo mode PORT_8080 doc block so it's not lost in a wall of
text.

doc/installation.txt

Document all source --build-args including how to build from pypi
using a version specifier. Break out other uses of --build-arg into
code blocks.

Reference docker compose section rather than referencing
docker-compose.yml.

Clarify docker hub tagging for devel releases.

Minor formatting fixes.
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 installation doc improved and switchable debugging http://hg.code.sf.net:8000/p/roundup/code/#changeset-b5fb268b7f0475650f5cc8786b54fc0b4baae86d John Rouillard rouilj@ieee.org 2022-01-04T16:31:04-05:00 2022-01-04T16:31:04-05:00
changeset b5fb268b7f04
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Docker installation doc improved and switchable debugging

Using a Docker container, login was failing with no error or ok
message. After a lengthy debugging session on irc with alxjsn
assisted by taggnostr realised it was the web setting in config.ini.

Install doc for docker now mentions that the web setting must end in
/issues/.

SHELL_DEBUG environment variable enabled set -xv in startp script.a
files
Added FastCGI deployment info, updated Docker docs; docker-compose added http://hg.code.sf.net:8000/p/roundup/code/#changeset-34cbd0e633d247a7e9a46561b3092f67587358c1 John Rouillard rouilj@ieee.org 2021-12-12T19:19:52-05:00 2021-12-12T19:19:52-05:00
changeset 34cbd0e633d2
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Added FastCGI deployment info, updated Docker docs; docker-compose added

This moves the Docker files to the subdirectory scripts/Docker.

Attempted to provide a slightly guided install of a tracker using the
roundup_start script

It include the docker-compose.yml file donated by Norbert
Schlemmer. Hopefully I didn't break it when modifying it for it's new
home.
files