Hi @PMario and mauloop!
I(ve taken my time but I can now bring some valuable new input. But before that, let me thank you for your answers. I've dipped deeper in docker and nodejs tiddlywiki as a result. And I can tell you that I've finally come to a successful setup but some problems are still there. But I can create an OK docker image and use it to launch it a suceesfull tiddlywiki and load stuff inside before really launching it as a server (I have not yet seen how to use apache as a proxy).
So for the sake of answering my question, here is my Dockerfile:
---------
# Dockerfile pour lancer le tiddlywiki proteva
# copiée et adaptée du modèle elasticdog/tiddlywiki disponible sur le docker hub
from node:16.9.0-alpine3.11
LABEL author="Jean-Pierre RIVIÈRE"
LABEL content="instance de nodejs avec le tiddliwki proteva"
env TIDDLYWIKI_VERSION=5.1.23
env PROTEVA_FEED=proteva-data.json
env WORKDIR=/usr/share/tiddlywiki/proteva-wiki
EXPOSE 8080
WORKDIR $WORKDIR
VOLUME $WORKDIR
run apk update && apk add --no-cache tini
run npm install -g tiddlywiki@$TIDDLYWIKI_VERSION && npm install clean --force
#ENTRYPOINT ["tiddlywiki", "proteva"]
#CMD ["--listen", "host=0.0.0.0"]
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["tiddlywiki", "proteva", "--listen", "host=0.0.0.0"]
------
and here is my proteva.sh script that I use to manage the wiki with ./proteva.sh init && ./proteva.sh start
--------
#!/bin/sh
# shell pour initialiser ou lancer proteva via docker
IMAGE=proteva
WIKI=$IMAGE
PROTEVA_FEED=proteva-data.json
PROTEVA_DIR=$PWD/proteva-data
WORKDIR=/usr/share/tiddlywiki/proteva-wiki
EDITION=rerver
case $1 in
init)
echo wiping $PROTEVA_DIR
[ -d $PROTEVA_DIR ] && sudo rm -rf $PROTEVA_DIR
mkdir $PROTEVA_DIR
echo building $IMAGE docker image
sudo docker build . -t $IMAGE
echo built
sudo docker run --rm -v $PROTEVA_DIR:$WORKDIR $IMAGE tiddlywiki $WIKI --init $EDITION
echo initialized
cp $PROTEVA_FEED $PROTEVA_DIR
sudo docker run --rm -v $PROTEVA_DIR:$WORKDIR $IMAGE tiddlywiki $WIKI --load $PROTEVA_FEED
rm $PROTEVA_DIR/$PROTEVA_FEED
echo import done
;;
start)
[ -d $PROTEVA_DIR ] || mkdir $PROTEVA_DIR
sudo docker run --rm -it -p 8080:8080 -v $PROTEVA_DIR:$WORKDIR --name $WIKI $IMAGE tiddlywiki $WIKI --listen host=0.0.0.0
;;
*) echo "usage : ${0##/} ORDER"
echo ' where ORDER is either "init" or "start"'
echo ' to initialize or launch proteva tiddlywiki nodejs via docker.'
;;
esac
----------------
Now for the remaining problem: the fr-FR-server edition seems at fault. If I use iti instead of server (as value of the EDITION variable in the script)' the --init and --listen part is OK (launching the "proteva" wiki), the --load part is wrong for the data are copied in the fr-FR sub-directory (instead of the proteva sub-directory). Besides, I can't see any French with that edition.
the real command I use is:
sudo docker run --rm -v /home/jnpr/big/workspace/accessibilite/dockerized/proteva-data:/usr/share/tiddlywiki/proteva-wiki proteva tiddlywiki proteva --load proteva-data.json
This commands create this strucure all of its own:
proteva-data
├── fr-FR
│ └── tiddlers
│ ├── $__StoryList.tid
│ └── TODO.tid
(proteva-data is created previously along proteva-data/proteva by --init)
Where can I get the fr-FR sources/fellows of this project to help sort out this mystery?