Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
systemd-resolved-docker
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
flaktack
systemd-resolved-docker
Commits
e3dec26f
Commit
e3dec26f
authored
4 years ago
by
Zsombor Welker
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup README and RPM spec
parent
1c0c7b69
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-3
1 addition, 3 deletions
.gitignore
README.md
+3
-3
3 additions, 3 deletions
README.md
systemd-resolved-docker.spec
+16
-15
16 additions, 15 deletions
systemd-resolved-docker.spec
with
20 additions
and
21 deletions
.gitignore
+
1
−
3
View file @
e3dec26f
/dist
/dist
/*.egg-info
*.egg-info
/rpm/*.rpm
/rpm/*.tar.gz
__pycache__
__pycache__
This diff is collapsed.
Click to expand it.
README.md
+
3
−
3
View file @
e3dec26f
...
@@ -23,12 +23,12 @@ For Fedora and RPM based systems [COPR](https://copr.fedorainfracloud.org/coprs/
...
@@ -23,12 +23,12 @@ For Fedora and RPM based systems [COPR](https://copr.fedorainfracloud.org/coprs/
dnf install systemd-resolved-docker
dnf install systemd-resolved-docker
1.
Start and optionally enable the service
s
1.
Start and optionally enable the service
systemctl start systemd-resolved-docker
systemctl start systemd-resolved-docker
systemctl enable systemd-resolved-docker
systemctl enable systemd-resolved-docker
1.
Docker should be updated to use the DNS server provided by
`systemd-docker-resolved
.
`
This may be done
1.
Docker should be updated to use the DNS server provided by
`systemd-docker-resolved`
.
This may be done
globally by editing the docker daemon's configuration (
`daemon.json`
) or per-container using the
`--dns`
globally by editing the docker daemon's configuration (
`daemon.json`
) or per-container using the
`--dns`
flag.
flag.
...
...
This diff is collapsed.
Click to expand it.
python-
systemd-resolved-docker.spec
→
systemd-resolved-docker.spec
+
16
−
15
View file @
e3dec26f
%global srcname systemd-resolved-docker
%global srcname systemd-resolved-docker
%global eggname systemd_resolved_docker
%global eggname systemd_resolved_docker
Name:
python-
%{srcname}
Name: %{srcname}
Version: 0.1.0
Version: 0.1.0
Release: 1%{?dist}
Release: 1%{?dist}
Summary: systemd-resolved and docker DNS integration
Summary: systemd-resolved and docker DNS integration
License: BSD
License: MIT
URL: https://pypi.python.org/pypi/systemd_resolved_docker
URL: https://github.com/flaktack/systemd-resolved-docker
#Source0: ${pypi_source}
# Sources can be obtained by
# git clone https://github.com/flaktack/systemd-resolved-docker
# cd systemd-resolved-docker
# tito build --tgz
Source0: %{srcname}-%{version}.tar.gz
Source0: %{srcname}-%{version}.tar.gz
Source1: %{srcname}.service
Source1: %{srcname}.service
Source2: %{srcname}.sysconfig
Source2: %{srcname}.sysconfig
BuildArch: noarch
BuildArch: noarch
%global _description %{expand:
systemd-resolved and docker DNS integration}
%description %_description
%package -n python3-%{srcname}
Summary: %{summary}
%if 0%{?el6}
%if 0%{?el6}
BuildRequires: python34-devel
BuildRequires: python34-devel
BuildRequires: python34-setuptools
BuildRequires: python34-setuptools
...
@@ -31,7 +27,14 @@ BuildRequires: python3-setuptools
...
@@ -31,7 +27,14 @@ BuildRequires: python3-setuptools
%endif
%endif
BuildRequires: systemd-rpm-macros
BuildRequires: systemd-rpm-macros
%description -n python3-%{srcname} %_description
%description
Provides systemd-resolved and docker DNS integration.
A DNS server is configured to listen on each docker interface's IP address. This is used to:
1. expose the systemd-resolved DNS service (127.0.0.53) to docker containers by proxying DNS requests, since the systems
loopback IPs can't be accessed from containers.
2. adds the created DNS servers to the docker interface using systemd-resolved so that docker containers may be
referenced by hostname. This uses --hostname and --domainname, --network or a default of .docker to create the domains.
#-- PREP, BUILD & INSTALL -----------------------------------------------------#
#-- PREP, BUILD & INSTALL -----------------------------------------------------#
%prep
%prep
...
@@ -65,8 +68,7 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{srcname}
...
@@ -65,8 +68,7 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{srcname}
#-- FILES ---------------------------------------------------------------------#
#-- FILES ---------------------------------------------------------------------#
# Note that there is no %%files section for the unversioned python module
%files
%files -n python3-%{srcname}
%doc README.md
%doc README.md
%{python3_sitelib}/%{eggname}-*.egg-info/
%{python3_sitelib}/%{eggname}-*.egg-info/
%{python3_sitelib}/%{eggname}/
%{python3_sitelib}/%{eggname}/
...
@@ -79,4 +81,3 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{srcname}
...
@@ -79,4 +81,3 @@ install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{srcname}
%changelog
%changelog
* Fri Mar 19 2021 Zsombor Welker <fedora@zdeqb.com> 0.1.0-1
* Fri Mar 19 2021 Zsombor Welker <fedora@zdeqb.com> 0.1.0-1
- Initial Version
- Initial Version
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment