Skip to content
Snippets Groups Projects
Commit e3dec26f authored by Zsombor Welker's avatar Zsombor Welker
Browse files

Cleanup README and RPM spec

parent 1c0c7b69
No related branches found
No related tags found
No related merge requests found
/dist /dist
/*.egg-info *.egg-info
/rpm/*.rpm
/rpm/*.tar.gz
__pycache__ __pycache__
...@@ -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 services 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.
......
%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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment