Debian package from docker packager-result doesn't seem to install configuration files #350

Closed
opened 2023-05-10 10:10:50 +00:00 by voltagex · 6 comments
voltagex commented 2023-05-10 10:10:50 +00:00 (Migrated from gitlab.com)

Headline

Debian package from docker packager-result doesn't seem to have configuration files

Description

#23 [packager-result 1/1] COPY --from=packager /usr/src/conduit/target/debian/*.deb /conduit.deb
$ sudo dpkg -i conduit.deb
[sudo] password for voltagex:
Selecting previously unselected package matrix-conduit.
(Reading database ... 34900 files and directories currently installed.)
Preparing to unpack conduit.deb ...
Unpacking matrix-conduit (0.6.0-alpha) ...
Setting up matrix-conduit (0.6.0-alpha) ...

$ dpkg -L matrix-conduit
/usr
/usr/share
/usr/share/doc
/usr/share/doc/matrix-conduit
/usr/share/doc/matrix-conduit/copyright
/usr/share/doc/matrix-conduit/README.Debian
/usr/share/doc/matrix-conduit/README.md
/usr/sbin
/usr/sbin/matrix-conduit

https://gitlab.com/famedly/conduit/-/blob/next/debian/README.Debian#L7 says that /etc/matrix-conduit/conduit.toml should exist after installation, but this file is missing.

## Headline Debian package from docker packager-result doesn't seem to have configuration files ### Description ``` #23 [packager-result 1/1] COPY --from=packager /usr/src/conduit/target/debian/*.deb /conduit.deb $ sudo dpkg -i conduit.deb [sudo] password for voltagex: Selecting previously unselected package matrix-conduit. (Reading database ... 34900 files and directories currently installed.) Preparing to unpack conduit.deb ... Unpacking matrix-conduit (0.6.0-alpha) ... Setting up matrix-conduit (0.6.0-alpha) ... $ dpkg -L matrix-conduit /usr /usr/share /usr/share/doc /usr/share/doc/matrix-conduit /usr/share/doc/matrix-conduit/copyright /usr/share/doc/matrix-conduit/README.Debian /usr/share/doc/matrix-conduit/README.md /usr/sbin /usr/sbin/matrix-conduit ``` https://gitlab.com/famedly/conduit/-/blob/next/debian/README.Debian#L7 says that `/etc/matrix-conduit/conduit.toml` should exist after installation, but this file is missing.
timokoesters commented 2023-05-21 13:03:07 +00:00 (Migrated from gitlab.com)

cc @paulvt

cc @paulvt
paulvt commented 2023-05-21 15:09:21 +00:00 (Migrated from gitlab.com)

I have already encountered several reports of this. I actually wasn't aware the debs are build within Docker. That might explain why this differs from testing it with a local build.

I haven't gotten time to dive into this, but given that the Docker build uses some tricks with a build and packager phase. Does it perhaps forget to copy debian/ into the Docker container during build?

I have already encountered several reports of this. I actually wasn't aware the debs are build within Docker. That might explain why this differs from testing it with a local build. I haven't gotten time to dive into this, but given that the Docker build uses some tricks with a build and packager phase. Does it perhaps forget to copy `debian/` into the Docker container during build?
jfowl commented 2023-05-21 19:58:36 +00:00 (Migrated from gitlab.com)
created branch [`350-debian-package-from-docker-packager-result-doesn-t-seem-to-install-configuration-files`](/famedly/conduit/-/compare/next...350-debian-package-from-docker-packager-result-doesn-t-seem-to-install-configuration-files) to address this issue
jfowl commented 2023-05-21 19:59:14 +00:00 (Migrated from gitlab.com)

mentioned in merge request !474

mentioned in merge request !474
jfowl commented 2023-05-21 20:01:37 +00:00 (Migrated from gitlab.com)

You are just about spot-on. I only copied the Debian README, instead of the whole directory. Sorry for that :/
!474 should fix that.

You are just about spot-on. I only copied the Debian README, instead of the whole directory. Sorry for that :/ !474 should fix that.
jfowl commented 2023-05-21 20:41:09 +00:00 (Migrated from gitlab.com)

mentioned in commit 533bccad8f

mentioned in commit 533bccad8f181da2b9c8bd1e439a416f93c6d354
Sign in to join this conversation.
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Matthias/conduit#350
No description provided.