Open cclauss opened 4 days ago
We do not have such an apt-get install inn2
script. The request should be asked to the Debian packager. A way to initialize the domain
parameter could be given (via preseeding for instance).
Form previous discussions about Docker, relaxing the check of a valid hostname in INN is not wanted because it can lead to unexpected and weird issues in Message-IDs or Path header fields.
Incidentally, Docker could provide a way for the end user to customize the hostname. It is insane to force other applications to adapt to their hard-coded hostname... and what if they also decide to change the hostame to another one in a future release? ...
Oh... It breaks even if I attempt to bring my own inn.conf
file by adding to the Dockerfile:
COPY inn.conf /etc/news/inn.conf
Dispite DEBIAN_FRONTEND=noninteractive
, the apt-get install inn2
process then asks
Setting up inn2-inews (2.7.2~20240212-1build3) ...
Configuration file '/etc/news/inn.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** inn.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package inn2-inews (--configure):
end of file on stdin at conffile prompt
Errors were encountered while processing:
inn2-inews
E: Sub-process /usr/bin/dpkg returned an error code (1)
Look at what I did to make the Debian autopkgtest work, which also runs in an environment without a proper hostname.
Thanks @rfc1036, but unfortunately, I do not know Purl. Please point me to which lines to focus on.
The
apt-get install inn2
script very helpfully creates a defaultinn.conf
file but that file causeshostname
errors at Docker built-time. Could that script be modified to succeed when thehostname
command returnsbuildkitsandbox
?Related to:
Using the
Dockerfile
%
docker build --no-cache --progress plain .
Following the example from #310, I have tried to add the following modifications without success:
@ewxrjk @rfc1036