Thank you for your add on which is more recent docker than from mgodlewski. Before my question which is the title, I would like to describe what I did:
$ docker-compose build
WARN[0000] diacamma/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Building 79.6s (19/19) FINISHED docker:default
=> [app internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.58kB 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords casing do not match (line 1) 0.0s
=> [app internal] load metadata for docker.io/library/python:3.9-slim-bullseye 2.3s
=> [app internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [app 1/13] FROM docker.io/library/python:3.9-slim-bullseye@sha256:524cc46c29234231ba 9.5s
=> => resolve docker.io/library/python:3.9-slim-bullseye@sha256:524cc46c29234231ba3b7fa3 0.0s
=> => sha256:52786a0ae9ae277daeb55342d352a47d9a09233f17bcdf10558dfc77f32 1.75kB / 1.75kB 0.0s
=> => sha256:e9711ef338d653df33100481fc52f32a0b0b88855b193292f10a6ff330c 5.28kB / 5.28kB 0.0s
=> => sha256:89320e7119e225692d79aaeb4989a18d7f97daafdb2b3782f84a0a8de 30.25MB / 30.25MB 5.8s
=> => sha256:7acbab8b9daf716b5c9dddf8c179fc53523dc89b65138cada78d230 871.23kB / 871.23kB 2.3s
=> => sha256:d64b42dae4e0a91fe31d884d81298910395edc7476ebb5f1333678f75 14.13MB / 14.13MB 4.1s
=> => sha256:524cc46c29234231ba3b7fa3e516497ec0b10469d178641b2bf2153862c 5.25kB / 5.25kB 0.0s
=> => sha256:98dcd8de72233594d2f545dbd77ac76dfbc556343a4cae279f9146bce19ba35 250B / 250B 3.0s
=> => extracting sha256:89320e7119e225692d79aaeb4989a18d7f97daafdb2b3782f84a0a8de31a09de 2.2s
=> => extracting sha256:7acbab8b9daf716b5c9dddf8c179fc53523dc89b65138cada78d23065adb71bd 0.1s
=> => extracting sha256:d64b42dae4e0a91fe31d884d81298910395edc7476ebb5f1333678f7564a2b8b 1.1s
=> => extracting sha256:98dcd8de72233594d2f545dbd77ac76dfbc556343a4cae279f9146bce19ba35c 0.0s
=> [app internal] load build context 0.0s
=> => transferring context: 7.07kB 0.0s
=> [app 2/13] RUN set -x ; apt update ; apt-get install -y libxml2-dev libxslt-dev 21.5s
=> [app 3/13] RUN set -x ; python3 -m pip install -U $PIP_OPTION pip==21.3.* virtuale 3.9s
=> [app 4/13] WORKDIR /var/lucterios2 0.1s
=> [app 5/13] RUN set -x ; mkdir -p /var/lucterios2 0.2s
=> [app 6/13] RUN set -x ; rm -rf virtual_for_lucterios ; python3 -m virtualenv vir 1.0s
=> [app 7/13] RUN set -x ; . /var/lucterios2/virtual_for_lucterios/bin/activate ; 26.4s
=> [app 8/13] RUN set -x ; . /var/lucterios2/virtual_for_lucterios/bin/activate ; p 1.0s
=> [app 9/13] RUN set -x ; . /var/lucterios2/virtual_for_lucterios/bin/activate ; p 1.0s
=> [app 10/13] ADD launch_lucterios.sh /var/lucterios2 0.1s
=> [app 11/13] ADD env-lucterios.sh /var/lucterios2 0.0s
=> [app 12/13] ADD bin /usr/local/bin 0.1s
=> [app 13/13] ADD entrypoint.d /entrypoint.d 0.0s
=> [app] exporting to image 12.3s
=> => exporting layers 12.3s
=> => writing image sha256:bc1af28a37c42c01f18355113b5fabd20af6948ede9cfbaf1604bc1d0a282 0.0s
=> => naming to docker.io/local-build/diacamma/v01 0.0s
=> [app] resolving provenance for metadata file 0.0s
$ docker-compose up -d
WARN[0000] /home/brouard/Documents/Non-boulot/perso/copro/logiciels/diacamma/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 2/2
✔ Network diacamma_internal Created 0.2s
✔ Container diacamma-app-1 Started
$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6dcbd790129d local-build/diacamma/v01 "/bin/sh -c '/entryp…" 37 minutes ago Up 37 minutes 127.0.0.1:8100->8100/tcp diacamma-app-1
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
local-build/diacamma/v01 latest bc1af28a37c4 23 minutes ago 1.37GB
ubuntu latest b1d9df8ab815 8 weeks ago 78.1MB
hello-world latest d2c94e258dcb 20 months ago 13.3kB
$ docker exec diacamma-app-1 ls
env-lucterios.sh
error.log
launch_lucterios.sh
manage_mon-syndic.py
mon-syndic
virtual_for_lucterios
diacamma]$ docker exec diacamma-app-1 backup.sh
Instance mon-syndic:
path /var/lucterios2/mon-syndic
appli Diacamma Syndic
database sqlite
modules Contacts Lucterios, Documents Lucterios , Courrier Lucterios, Comptabilité Diacamma, Règlement Diacamma, Copropriété Diacamma
extra
mode=Connexion toujours nécessaire
Instance 'mon-syndic' saved as '/backups/backup_20250115_11_48_19.lbkf'.
diacamma]$ docker exec diacamma-app-1 restore.sh backup_20250115_11_48_19.lbkf
Installed 47539 object(s) from 1 fixture(s)
Operations to perform:
Apply all migrations: CORE, accounting, admin, auth, condominium, contacts, contenttypes, documents, framework, mailing, payoff, sessions, syndic
Running migrations:
No migrations to apply.
Your models in app(s): 'condominium' have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
instance restored with '/backups/backup_20250115_11_48_19.lbkf'
Instance mon-syndic:
path /var/lucterios2/mon-syndic
appli Diacamma Syndic
database sqlite
modules Contacts Lucterios, Documents Lucterios , Courrier Lucterios, Comptabilité Diacamma, Règlement Diacamma, Copropriété Diacamma
extra
mode=Connexion toujours nécessaire
Instance 'mon-syndic' refreshed.
Therefore there are few differences that I remarked during the installation and mentioned above like the name given by the standard installation which is diacamma-app-1 as well as the name of the backup and restore script which are backup.sh and restore.sh
But, and here I am stuck with the Alias and passwd which are supposed to be empty at the first launch at 127.0.0.1:8100 but they are not and the message is Alias ou mot de passe incorrect !
And I don't know how to get them from the database at
$ docker exec diacamma-app-1 ls -l /var/lucterios2/mon-syndic/db.sqlite3
-rw-r--r--. 1 root root 4456448 Jan 15 17:15 /var/lucterios2/mon-syndic/db.sqlite3
Many thanks for your potential help.
Thank you for your add on which is more recent docker than from mgodlewski. Before my question which is the title, I would like to describe what I did:
$ docker-compose buildWARN[0000] diacamma/docker-compose.yml: the attribute
versionis obsolete, it will be ignored, please remove it to avoid potential confusion[+] Building 79.6s (19/19) FINISHED docker:default
=> [app internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.58kB 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords casing do not match (line 1) 0.0s
=> [app internal] load metadata for docker.io/library/python:3.9-slim-bullseye 2.3s
=> [app internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [app 1/13] FROM docker.io/library/python:3.9-slim-bullseye@sha256:524cc46c29234231ba 9.5s
=> => resolve docker.io/library/python:3.9-slim-bullseye@sha256:524cc46c29234231ba3b7fa3 0.0s
=> => sha256:52786a0ae9ae277daeb55342d352a47d9a09233f17bcdf10558dfc77f32 1.75kB / 1.75kB 0.0s
=> => sha256:e9711ef338d653df33100481fc52f32a0b0b88855b193292f10a6ff330c 5.28kB / 5.28kB 0.0s
=> => sha256:89320e7119e225692d79aaeb4989a18d7f97daafdb2b3782f84a0a8de 30.25MB / 30.25MB 5.8s
=> => sha256:7acbab8b9daf716b5c9dddf8c179fc53523dc89b65138cada78d230 871.23kB / 871.23kB 2.3s
=> => sha256:d64b42dae4e0a91fe31d884d81298910395edc7476ebb5f1333678f75 14.13MB / 14.13MB 4.1s
=> => sha256:524cc46c29234231ba3b7fa3e516497ec0b10469d178641b2bf2153862c 5.25kB / 5.25kB 0.0s
=> => sha256:98dcd8de72233594d2f545dbd77ac76dfbc556343a4cae279f9146bce19ba35 250B / 250B 3.0s
=> => extracting sha256:89320e7119e225692d79aaeb4989a18d7f97daafdb2b3782f84a0a8de31a09de 2.2s
=> => extracting sha256:7acbab8b9daf716b5c9dddf8c179fc53523dc89b65138cada78d23065adb71bd 0.1s
=> => extracting sha256:d64b42dae4e0a91fe31d884d81298910395edc7476ebb5f1333678f7564a2b8b 1.1s
=> => extracting sha256:98dcd8de72233594d2f545dbd77ac76dfbc556343a4cae279f9146bce19ba35c 0.0s
=> [app internal] load build context 0.0s
=> => transferring context: 7.07kB 0.0s
=> [app 2/13] RUN set -x ; apt update ; apt-get install -y libxml2-dev libxslt-dev 21.5s
=> [app 3/13] RUN set -x ; python3 -m pip install -U $PIP_OPTION pip==21.3.* virtuale 3.9s
=> [app 4/13] WORKDIR /var/lucterios2 0.1s
=> [app 5/13] RUN set -x ; mkdir -p /var/lucterios2 0.2s
=> [app 6/13] RUN set -x ; rm -rf virtual_for_lucterios ; python3 -m virtualenv vir 1.0s
=> [app 7/13] RUN set -x ; . /var/lucterios2/virtual_for_lucterios/bin/activate ; 26.4s
=> [app 8/13] RUN set -x ; . /var/lucterios2/virtual_for_lucterios/bin/activate ; p 1.0s
=> [app 9/13] RUN set -x ; . /var/lucterios2/virtual_for_lucterios/bin/activate ; p 1.0s
=> [app 10/13] ADD launch_lucterios.sh /var/lucterios2 0.1s
=> [app 11/13] ADD env-lucterios.sh /var/lucterios2 0.0s
=> [app 12/13] ADD bin /usr/local/bin 0.1s
=> [app 13/13] ADD entrypoint.d /entrypoint.d 0.0s
=> [app] exporting to image 12.3s
=> => exporting layers 12.3s
=> => writing image sha256:bc1af28a37c42c01f18355113b5fabd20af6948ede9cfbaf1604bc1d0a282 0.0s
=> => naming to docker.io/local-build/diacamma/v01 0.0s
=> [app] resolving provenance for metadata file 0.0s
$ docker-compose up -dWARN[0000] /home/brouard/Documents/Non-boulot/perso/copro/logiciels/diacamma/docker-compose.yml: the attribute
versionis obsolete, it will be ignored, please remove it to avoid potential confusion[+] Running 2/2
✔ Network diacamma_internal Created 0.2s
✔ Container diacamma-app-1 Started
$ docker container lsCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6dcbd790129d local-build/diacamma/v01 "/bin/sh -c '/entryp…" 37 minutes ago Up 37 minutes 127.0.0.1:8100->8100/tcp diacamma-app-1
$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZE
local-build/diacamma/v01 latest bc1af28a37c4 23 minutes ago 1.37GB
ubuntu latest b1d9df8ab815 8 weeks ago 78.1MB
hello-world latest d2c94e258dcb 20 months ago 13.3kB
$ docker exec diacamma-app-1 lsenv-lucterios.sh
error.log
launch_lucterios.sh
manage_mon-syndic.py
mon-syndic
virtual_for_lucterios
diacamma]$ docker exec diacamma-app-1 backup.shInstance mon-syndic:
path /var/lucterios2/mon-syndic
appli Diacamma Syndic
database sqlite
modules Contacts Lucterios, Documents Lucterios , Courrier Lucterios, Comptabilité Diacamma, Règlement Diacamma, Copropriété Diacamma
extra
mode=Connexion toujours nécessaire
Instance 'mon-syndic' saved as '/backups/backup_20250115_11_48_19.lbkf'.
diacamma]$ docker exec diacamma-app-1 restore.sh backup_20250115_11_48_19.lbkfInstalled 47539 object(s) from 1 fixture(s)
Operations to perform:
Apply all migrations: CORE, accounting, admin, auth, condominium, contacts, contenttypes, documents, framework, mailing, payoff, sessions, syndic
Running migrations:
No migrations to apply.
Your models in app(s): 'condominium' have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
instance restored with '/backups/backup_20250115_11_48_19.lbkf'
Instance mon-syndic:
path /var/lucterios2/mon-syndic
appli Diacamma Syndic
database sqlite
modules Contacts Lucterios, Documents Lucterios , Courrier Lucterios, Comptabilité Diacamma, Règlement Diacamma, Copropriété Diacamma
extra
mode=Connexion toujours nécessaire
Instance 'mon-syndic' refreshed.
Therefore there are few differences that I remarked during the installation and mentioned above like the name given by the standard installation which is diacamma-app-1 as well as the name of the backup and restore script which are backup.sh and restore.sh
But, and here I am stuck with the Alias and passwd which are supposed to be empty at the first launch at 127.0.0.1:8100 but they are not and the message is Alias ou mot de passe incorrect !
And I don't know how to get them from the database at
$ docker exec diacamma-app-1 ls -l /var/lucterios2/mon-syndic/db.sqlite3-rw-r--r--. 1 root root 4456448 Jan 15 17:15 /var/lucterios2/mon-syndic/db.sqlite3Many thanks for your potential help.