-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
samba-dc now uses j2 cli command to support DNS_FORWARDER #106
samba-dc now uses j2 cli command to support DNS_FORWARDER #106
Conversation
Thanks for the PR. I think image size can be reduced by removing py3-pip package after the install. (Still need py3-setuptools). Can you verify that this works, see how much image size it saves, and update the PR?
|
I'll see what I can do. I'm out of the office this week but should have
something next week.
…On Mon, Feb 13, 2023, 13:26 Rich Braun ***@***.***> wrote:
Thanks for the PR. I think image size can be reduced by removing py3-pip
package after the install. (Still need py3-setuptools). Can you verify that
this works, see how much image size it saves, and update the PR?
RUN apk add ...
bind bind-libs bind-tools libcrypto1.1 libxml2 tzdata py3-setuptools &&
apk add --no-cache --virtual .fetch-deps py3-pip &&
pip install j2cli &&
apk del .fetch-deps &&
...
—
Reply to this email directly, view it on GitHub
<#106 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADXEKYXMHYYJAZ45RZ6NPTDWXKDGTANCNFSM6AAAAAAUYKBKXQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Looks like putting test1 is with py3-pip, test2 is with it removed.
|
Hmm, that does appear to break it, however:
|
@bhechinger make sure |
Adding that package in does make it work, but we're no longer saving as much space. :(
I guess 9MB is better than none. 🤷♂️ Here's the RUN block in its entirety now:
|
I pushed an update that adds |
bbaaf41
to
563265f
Compare
@instantlinux PR has been rebased and updated. |
If there is a lighter weight templater that supports the conditional block I can switch to using that -- I just used j2 because it seems like that was what was originally intended. |
563265f
to
e3e8168
Compare
Moves from using sed to j2cli
e3e8168
to
ffe23c5
Compare
Signed commits as per policy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compressed image size was 52.02Mb on docker hub before merge; let's see where this ends up after merge. Thanks for the contribution!
This PR addresses issue #44 and enhances PR #96.
PR #96 introduces the DNS_FORWARDER variables but samba-dc doesn't actually use the jinja2 templating despite the .j2 file extension. This PR moves from using sed to j2cli for templating and completes support for DNS_FORWARDER.