Now here is the interesting bit, especially pertaining to below
The names of the variables can contain ASCII letters, digits, and the underscore character. Variable names cannot be empty or start with a digit. In variable values, most characters are allowed, but non-printable characters are currently rejected.
the docker reference source for this app is as defined here
--label="org.nethserver.images=docker.io/2fauth/2fauth:${app_version}" \
Inside the app container service file we are supposed to define as such
${2FAUTH_IMAGE}
since we can not begin with the name, is there another way, we can re-define it and have it implemented within the context of the app?
maybe @stephdl and @davidep would be kind enough to help with this conundrum.
and i believe solving this problem, would enable me solve another similar challenge i have experiences in another app as well.
stephdl
(Stéphane de Labrusse)
March 10, 2024, 7:57pm
3
Your image name is not good should be 2FAUTH_IMAGE
dnutan
(Marc)
March 10, 2024, 9:18pm
4
stephdl:
2FAUTH_IMAGE
is that an environment variable or it isn’t?
that was my attempt to change it to somethign other than 2FAUTH_IMAGE
because the env begining with 2 is being rejected, and thus does nto work. any idea what should be done?
stephdl
(Stéphane de Labrusse)
March 11, 2024, 7:33am
7
When you have started the service check the environment file you might have some surprise inside I suppose
Else I have no clue you need to dive with the google link I posted
thank you @davidep path me up once resolution is in sight.
EDIT: is there a card to track this issue?
davidep
(Davide Principi)
March 20, 2024, 5:36pm
9
Hello @davidep How hard is it to solve this based on your assessment from your end, and would it be possible to kindly have this on schedule for me?
davidep
(Davide Principi)
May 30, 2024, 8:29am
11
Well, we’re starting some works around the Software Center: I’d fix this issue by building the variable name with a letter prefix, for example in your case it would be I2FAUTH_IMAGE
. Do you accept it as solution?
Unless i build my own docker image to implement that kind of naming, all other options i have tired seemed to fail, since the original image has that given name, and referencing it in any way, would still break.
davidep
(Davide Principi)
May 30, 2024, 11:58am
13
I know it is something out of your control and there’s no other choice than a fix on the core side.
ok, ill be expecting a core fix kindly.
Goten myself into a situation whereby i need a TOTP available on the web for multiple users…
and the alternative solution thats secure is abit more complex to implement on NS8.
hello @davidep were getting the following error
ignoring invalid environment assignment '2FAUTH_IMAGE=docker.io/2fauth/2fauth:5.1.0': /home/2fauth7/.config/state/environment
was this implemented?..
cc @kemboielvis22
davidep
(Davide Principi)
August 2, 2024, 7:48am
16
Hi Martin,
no it wasn’t, it’s still in the TODO list hopefully I’ll work on it soon.
Ok Noted, We have made a workaround on the same
Seems to work so far, however we would prefer the correct way, to maintain standards
1 Like
pike
(Michael Kicks)
August 2, 2024, 11:35am
18
Question is: how to sort containers without renaming and without… using numbers as starting characters?
Am not sure about that, but the method shown above seems to work, though i have noticed a weired error that arises from the application, if you click on clear cache from the application, it crashes… i assume due to the container being loaded suring configure as opposed to during build
davidep
(Davide Principi)
Split this topic
August 5, 2024, 6:25am
20
A post was split to a new topic: Run scripts in Systemd