Re: Docker experimental multi-arch image build (arm64, i386, amd64)
"John P. Rouillard" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Norbert:
In message <DU2PR01MB855760E04293FEC9C16F27B1E8D3A@DU2PR01MB8557.eurprd01.prod.
exchangelabs.com>,
SCHLEMMER Norbert writes:
>Please find below the output of my tests @RPi 4
>I don't know how to get the container running
It looks like yu didn;t initilize the tracker properly.
Also, the argument to run the server is incorrect. It should be
something like "demo=tracker_home" (note tracker_home is just the
simple subdirectory, in the app directory, not a full path). The final
error you see is caused by parsing "tracker" expecting
"demo=tracker_home".
More comments inline.
>Do you have a docker-compose.yml file ?
>It would be fine to have a Roundup running with MariaDB as database container (linuxserver/mariadb)
>or Postgresql / arm64v8/postgres:15-bookworm (?)
There is the docker-compose you put together that is in the source
distribution. But that's it.
>pi@hadersdorf:~/Roundup $ docker run -it -p 127.0.0.1:8917:8080 --name roundup_demo -v $PWD:/usr/src/app/tracker rounduptracker/roundup-development:multi shell
>~ $ ls -lrt
>total 16
>-rwxr-xr-x 1 root root 291 Jul 19 03:12 roundup_healthcheck
>-rwxr-xr-x 1 root root 5711 Sep 8 02:08 roundup_start
>drwxr-xr-x 3 roundup roundup 4096 Oct 10 07:42 tracker
>~ $ roundup-admin -i tracker install
Ok so the docker image runs (you're at the shell prompt in the image).
[elided normal install prompts etc.]
> You MUST run the "roundup-admin initialise" command once you've performed
> the above steps.
>---------------------------------------------------------------------------
>
>~ $
>
>Following options need adjustments:
># [tracker]: web
># [mail]: domain, host
>
>Modfied config.ini with:
>web = http://hadersdorf.xxx.at:8917/demo
You are missing the trailing /.
>domain = xxx.at
>host = mail.xxx.at
Is the command below still inside the docker shell command?
>~ $ roundup-admin initialise
>Enter tracker home: tracker
>Admin Password:
> Confirm:
>Error: Invalid value for TRACKER_WEB: 'http://hadersdorf.sieben.neunzehn.at:8917/demo'
>Value must end with /.
Your config file has the wrong value, so the tracker isn't initialized.
>~ $ exit
I assume this exits the docker container. Note you still haven't
completed the initialization of the tracker.
>docker rm -f roundup_demo
>
>pi@hadersdorf:~/Roundup $ docker rm -f roundup_demo
>roundup_demo
I'm not sure what roundup_demo is.
>pi@hadersdorf:~/Roundup $ docker run -it -p 127.0.0.1:8917:8080 --name roundup_demo -v $PWD:/usr/src/app/tracker rounduptracker/roundup-development:multi tracker
>Traceback (most recent call last):
> File "/usr/local/lib/python3.11/site-packages/roundup-2.3.0-py3.11.egg/roundup/scripts/roundup_server.py", line 1109, in run
> name, home = arg.split('=')
> ^^^^^^^^^^
>ValueError: not enough values to unpack (expected 2, got 1)
>
>During handling of the above exception, another exception occurred:
>
>Traceback (most recent call last):
> File "/usr/local/bin/roundup-server", line 33, in <module>
> sys.exit(load_entry_point('roundup==2.3.0', 'console_scripts', 'roundup-server')())
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/local/lib/python3.11/site-packages/roundup-2.3.0-py3.11.egg/roundup/scripts/roundup_server.py", line 1111, in run
> raise ValueError(_("Instances must be name=home"))
>ValueError: Instances must be name=home
The final argument (tracker) is incorrect you probably want something
like demo=demo (assuming there is an initialized tracker in $PWD/demo.
So it looks like you need to fix the web seting, finish the
initialization and supply the correct tracker=directory argumnent.
Let me know how that goes.
If that works, I claim
docker run -it -p 127.0.0.1:8917:8080 --name roundup_demo -v $PWD:/usr/src/app/tracker rounduptracker/roundup-development:multi demo
should have worked to spin up a tracker on
http://localhost:8917/demo/. So I would be interestined in what's
happening in the demo case.
Have a great weekend.
--
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.