From 2f60c21fc26dd790c4cb032671a59b477d0197e1 Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Mon, 17 May 2021 13:49:05 +0200 Subject: [PATCH 01/19] fix(config): replace URLs to bintray.com by github.com --- docker/defaults.yaml | 4 ++-- docker/osfamilymap.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/defaults.yaml b/docker/defaults.yaml index c81856b2..30de942b 100644 --- a/docker/defaults.yaml +++ b/docker/defaults.yaml @@ -79,8 +79,8 @@ docker: binary: options: '' # yamllint disable-line rule:line-length - source: 'https://dl.bintray.com/docker-compose/master/docker-compose-Linux-x86_64' - source_hash: '3c96b57ea8e0027aee7e1a3023f7599bcecae54e77bcfd5f4e65a59672637e54' + source: 'https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64' + source_hash: 'f3f10cf3dbb8107e9ba2ea5f23c1d2159ff7321d16f0a23051d68d8e2547b323' networks: {} containers: diff --git a/docker/osfamilymap.yaml b/docker/osfamilymap.yaml index f9f7e127..a1ebabf9 100644 --- a/docker/osfamilymap.yaml +++ b/docker/osfamilymap.yaml @@ -95,8 +95,8 @@ MacOS: name: docker-compose # homebrew use_upstream: package # Docker Desktop archive: - source: 'https://dl.bintray.com/docker-compose/master/docker-compose-Darwin-x86_64' - source_hash: 'c5e326611efa45cbaf5b338bf352cbf27e9eb7dff0619f77639cae1158f6571f' + source: 'https://github.com/docker/compose/releases/download/v1.29.2/docker-compose-Darwin-x86_64' + source_hash: '21924dff117140a8c4b599c502829a8b75d1ba942e4cf5734a2a27f9d82d16f6' Windows: div: '\' From 4cc1e706e4778e1aabef0023da668eaafef8afff Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Mon, 17 May 2021 18:40:00 +0100 Subject: [PATCH 02/19] docs: remove files which aren't formula-specific [skip ci] Further reason is to avoid issues with `rst-lint`: ``` ERROR docs/CONTRIBUTING_DOCS.rst:29 Unknown interpreted text role "ref". WARNING docs/CONTRIBUTING_DOCS.rst:40 malformed hyperlink target. ERROR docs/index.rst:10 Unknown directive type "toctree". ``` --- docs/CONTRIBUTING_DOCS.rst | 96 -------------------------------------- docs/index.rst | 20 -------- 2 files changed, 116 deletions(-) delete mode 100644 docs/CONTRIBUTING_DOCS.rst delete mode 100644 docs/index.rst diff --git a/docs/CONTRIBUTING_DOCS.rst b/docs/CONTRIBUTING_DOCS.rst deleted file mode 100644 index 5b59b298..00000000 --- a/docs/CONTRIBUTING_DOCS.rst +++ /dev/null @@ -1,96 +0,0 @@ -.. _contributing_docs: - -Contributing documentation -========================== - -|docs| - -.. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest - :alt: Documentation Status - :scale: 100% - :target: https://template-formula.readthedocs.io/en/latest/?badge=latest - -Toolchain -^^^^^^^^^ - -The documentation for this formula is written in -`reStructuredText `_ -(also known as RST, ReST, or reST). -It is built by -`Sphinx `_ -and hosted on -`Read the Docs `_. - -Adding a new page -^^^^^^^^^^^^^^^^^ - -Adding a new page involves two steps: - -#. Use the - :ref:`provided page template ` - to create a new page. -#. Add the page name under the ``toctree`` list in ``index.rst``. - - a. Do not just append it to the list. - #. Select the best place where it fits within the overall documentation. - -SaltStack-Formulas' RST page template -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -.. _saltstack_formulas_rst_page_template - -Use the following template when creating a new page. -This ensures consistency across the documentation for this formula. -The heading symbols have been selected in accordance to the output rendered by the -`Markdown to reStructuredText converter `_ -we are using for some of the pages of this documentation. - -.. code-block:: rst - - .. _template: - - [Page title] - ============ - - [Introductory paragraph] - - .. contents:: **Table of Contents** - - [Heading 2] - ----------- - - [Heading 3] - ^^^^^^^^^^^ - - [Heading 4] - ~~~~~~~~~~~ - - [Heading 5] - """"""""""" - - [Heading 6] - ########### - -#. The first line is an anchor that can be used to link back to (the top of) - this file. - - a. Change this to be the lowercase version of the file name. - #. Do not include the ``.rst`` file extension. - #. Use hyphens (``-``) instead of spaces or non-letter characters. - -#. Change the ``[Page title]`` accordingly, matching the same number of equals - signs (``=``) underneath. -#. Change the ``[Introductory paragraph]`` to be a short summary of the page - content. - Use no more than three paragraphs for this. -#. Leave the ``..contents:: **Table of Contents**`` line as it is. -#. Use the remaining headings as required to break up the page content. - - a. You will rarely need to use beyond ``[Heading 4]``. - #. Again, no single heading should have more than about three paragraphs of - content before the next heading or sub-heading is used. - -Obviously, it is not necessary to follow the steps in the order above. -For example, it is usually easier to write the ``[Introductory paragraph]`` -at the end. - diff --git a/docs/index.rst b/docs/index.rst deleted file mode 100644 index a49c0c3f..00000000 --- a/docs/index.rst +++ /dev/null @@ -1,20 +0,0 @@ -.. _index: - -.. ``template-formula`` documentation master file. - You can adapt this file completely to your liking, but it should at least - contain the root `toctree` directive. - -Welcome to template-formula's documentation! -============================================ - -.. toctree:: - :maxdepth: 2 - :caption: Contents - :numbered: - :glob: - - README - CONTRIBUTING - TOFS_pattern - AUTHORS - CHANGELOG From d434e2570dbf775b34e2c98d835f9c0378709a63 Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Wed, 19 May 2021 11:00:31 +0200 Subject: [PATCH 03/19] fix(config): use 'latest' docker-compose versions from github --- docker/defaults.yaml | 4 ++-- docker/map.jinja | 1 + docker/osfamilymap.yaml | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docker/defaults.yaml b/docker/defaults.yaml index 30de942b..e7965f52 100644 --- a/docker/defaults.yaml +++ b/docker/defaults.yaml @@ -79,8 +79,8 @@ docker: binary: options: '' # yamllint disable-line rule:line-length - source: 'https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64' - source_hash: 'f3f10cf3dbb8107e9ba2ea5f23c1d2159ff7321d16f0a23051d68d8e2547b323' + source: 'https://github.com/docker/compose/releases/latest/download/docker-compose-Linux-x86_64' + source_hash: null networks: {} containers: diff --git a/docker/map.jinja b/docker/map.jinja index 037d03cd..f1ea9baa 100644 --- a/docker/map.jinja +++ b/docker/map.jinja @@ -62,6 +62,7 @@ {%- if 'source_hash' in p.binary and p.binary.source_hash %} {%- do p.binary.update({'name': p.path, 'source_hash': p.binary.source_hash}) %} {%- else %} + {%- set url = p.binary.source %} {%- do p.binary.update({'name': p.path, 'source_hash': url ~ '.sha256'}) %} {%- endif %} diff --git a/docker/osfamilymap.yaml b/docker/osfamilymap.yaml index a1ebabf9..aa970854 100644 --- a/docker/osfamilymap.yaml +++ b/docker/osfamilymap.yaml @@ -95,8 +95,8 @@ MacOS: name: docker-compose # homebrew use_upstream: package # Docker Desktop archive: - source: 'https://github.com/docker/compose/releases/download/v1.29.2/docker-compose-Darwin-x86_64' - source_hash: '21924dff117140a8c4b599c502829a8b75d1ba942e4cf5734a2a27f9d82d16f6' + source: 'https://github.com/docker/compose/releases/latest/download/docker-compose-Darwin-x86_64' + source_hash: null Windows: div: '\' From 64727cb0b25894dddcb86955ac9a5639660605d0 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 19 May 2021 14:52:45 +0000 Subject: [PATCH 04/19] chore(release): 2.0.4 [skip ci] ## [2.0.4](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.3...v2.0.4) (2021-05-19) ### Bug Fixes * **config:** replace URLs to bintray.com by github.com ([2f60c21](https://github.com/saltstack-formulas/docker-formula/commit/2f60c21fc26dd790c4cb032671a59b477d0197e1)) * **config:** use 'latest' docker-compose versions from github ([d434e25](https://github.com/saltstack-formulas/docker-formula/commit/d434e2570dbf775b34e2c98d835f9c0378709a63)) ### Continuous Integration * add `arch-master` to matrix and update `.travis.yml` [skip ci] ([cec557a](https://github.com/saltstack-formulas/docker-formula/commit/cec557abc7dc77a5227852c216047855ab726c57)) ### Documentation * remove files which aren't formula-specific [skip ci] ([4cc1e70](https://github.com/saltstack-formulas/docker-formula/commit/4cc1e706e4778e1aabef0023da668eaafef8afff)) * **readme:** fix headings and links [skip ci] ([b0021eb](https://github.com/saltstack-formulas/docker-formula/commit/b0021eb3a379fe8db7bed584fb6ae5d1f060a581)) --- AUTHORS.md | 5 +++-- CHANGELOG.md | 19 +++++++++++++++++++ FORMULA | 2 +- docs/AUTHORS.rst | 7 +++++-- docs/CHANGELOG.rst | 23 +++++++++++++++++++++++ 5 files changed, 51 insertions(+), 5 deletions(-) diff --git a/AUTHORS.md b/AUTHORS.md index 1deee98b..b72d2f65 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -5,7 +5,7 @@ This list is sorted by the number of commits per contributor in _descending_ ord Avatar|Contributor|Contributions :-:|---|:-: @noelmcloughlin|[@noelmcloughlin](https://github.com/noelmcloughlin)|115 -@myii|[@myii](https://github.com/myii)|67 +@myii|[@myii](https://github.com/myii)|71 @cdarwin|[@cdarwin](https://github.com/cdarwin)|25 @gravyboat|[@gravyboat](https://github.com/gravyboat)|22 @aboe76|[@aboe76](https://github.com/aboe76)|21 @@ -23,6 +23,7 @@ Avatar|Contributor|Contributions @japtain-cack|[@japtain-cack](https://github.com/japtain-cack)|3 @babilen5|[@babilen5](https://github.com/babilen5)|3 @solarchad|[@solarchad](https://github.com/solarchad)|2 +@danny-smit|[@danny-smit](https://github.com/danny-smit)|2 @techhat|[@techhat](https://github.com/techhat)|2 @msciciel|[@msciciel](https://github.com/msciciel)|2 @mingfang|[@mingfang](https://github.com/mingfang)|2 @@ -61,4 +62,4 @@ Avatar|Contributor|Contributions --- -Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2021-04-23. +Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2021-05-19. diff --git a/CHANGELOG.md b/CHANGELOG.md index 530e8c17..5b46c346 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.0.4](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.3...v2.0.4) (2021-05-19) + + +### Bug Fixes + +* **config:** replace URLs to bintray.com by github.com ([2f60c21](https://github.com/saltstack-formulas/docker-formula/commit/2f60c21fc26dd790c4cb032671a59b477d0197e1)) +* **config:** use 'latest' docker-compose versions from github ([d434e25](https://github.com/saltstack-formulas/docker-formula/commit/d434e2570dbf775b34e2c98d835f9c0378709a63)) + + +### Continuous Integration + +* add `arch-master` to matrix and update `.travis.yml` [skip ci] ([cec557a](https://github.com/saltstack-formulas/docker-formula/commit/cec557abc7dc77a5227852c216047855ab726c57)) + + +### Documentation + +* remove files which aren't formula-specific [skip ci] ([4cc1e70](https://github.com/saltstack-formulas/docker-formula/commit/4cc1e706e4778e1aabef0023da668eaafef8afff)) +* **readme:** fix headings and links [skip ci] ([b0021eb](https://github.com/saltstack-formulas/docker-formula/commit/b0021eb3a379fe8db7bed584fb6ae5d1f060a581)) + ## [2.0.3](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.2...v2.0.3) (2021-04-23) diff --git a/FORMULA b/FORMULA index a6949c5b..26ee228a 100644 --- a/FORMULA +++ b/FORMULA @@ -1,7 +1,7 @@ name: docker os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS -version: 2.0.3 +version: 2.0.4 release: 1 minimum_version: 2017.7 summary: docker formula diff --git a/docs/AUTHORS.rst b/docs/AUTHORS.rst index e97970e9..a82b1bbd 100644 --- a/docs/AUTHORS.rst +++ b/docs/AUTHORS.rst @@ -18,7 +18,7 @@ This list is sorted by the number of commits per contributor in *descending* ord - 115 * - :raw-html-m2r:`@myii` - `@myii `_ - - 67 + - 71 * - :raw-html-m2r:`@cdarwin` - `@cdarwin `_ - 25 @@ -70,6 +70,9 @@ This list is sorted by the number of commits per contributor in *descending* ord * - :raw-html-m2r:`@solarchad` - `@solarchad `_ - 2 + * - :raw-html-m2r:`@danny-smit` + - `@danny-smit `_ + - 2 * - :raw-html-m2r:`@techhat` - `@techhat `_ - 2 @@ -179,4 +182,4 @@ This list is sorted by the number of commits per contributor in *descending* ord ---- -Auto-generated by a `forked version `_ of `gaocegege/maintainer `_ on 2021-04-23. +Auto-generated by a `forked version `_ of `gaocegege/maintainer `_ on 2021-05-19. diff --git a/docs/CHANGELOG.rst b/docs/CHANGELOG.rst index 0575b8c5..63d99305 100644 --- a/docs/CHANGELOG.rst +++ b/docs/CHANGELOG.rst @@ -2,6 +2,29 @@ Changelog ========= +`2.0.4 `_ (2021-05-19) +-------------------------------------------------------------------------------------------------------- + +Bug Fixes +^^^^^^^^^ + + +* **config:** replace URLs to bintray.com by github.com (\ `2f60c21 `_\ ) +* **config:** use 'latest' docker-compose versions from github (\ `d434e25 `_\ ) + +Continuous Integration +^^^^^^^^^^^^^^^^^^^^^^ + + +* add ``arch-master`` to matrix and update ``.travis.yml`` [skip ci] (\ `cec557a `_\ ) + +Documentation +^^^^^^^^^^^^^ + + +* remove files which aren't formula-specific [skip ci] (\ `4cc1e70 `_\ ) +* **readme:** fix headings and links [skip ci] (\ `b0021eb `_\ ) + `2.0.3 `_ (2021-04-23) -------------------------------------------------------------------------------------------------------- From b34f434a5ae35ee1fb54b7c542a59d5ba4ab32da Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Mon, 17 May 2021 14:06:16 +0200 Subject: [PATCH 05/19] fix(service): reload the docker service when daemon.json has changed --- docker/software/service/running.sls | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docker/software/service/running.sls b/docker/software/service/running.sls index a647c9ea..2823a4d7 100644 --- a/docker/software/service/running.sls +++ b/docker/software/service/running.sls @@ -6,6 +6,7 @@ {%- set formula = d.formula %} {%- if 'service' in d.pkg.docker and d.pkg.docker.service and grains.os != 'Windows' %} + {%- set sls_config_daemon = tplroot ~ '.software.config.daemon' %} {%- set sls_config_file = tplroot ~ '.software.config.file' %} {%- set sls_archive = tplroot ~ '.software.archive.install' %} {%- set sls_desktop = tplroot ~ '.software.desktop.install' %} @@ -14,6 +15,7 @@ include: - {{ sls_archive if d.pkg.docker.use_upstream == 'archive' else sls_desktop if d.pkg.docker.use_upstream == 'desktop' else sls_package }} - {{ sls_config_file }} + - {{ sls_config_daemon }} {%- if grains.kernel|lower == 'linux' %} @@ -23,8 +25,9 @@ include: - onlyif: systemctl list-unit-files | grep {{ d.pkg.docker.service.name }} >/dev/null 2>&1 - require_in: - service: {{ formula }}-software-service-running-docker - {%- if 'config' in d.pkg.docker and d.pkg.docker.config %} - require: + - sls: {{ sls_config_daemon }} + {%- if 'config' in d.pkg.docker and d.pkg.docker.config %} - sls: {{ sls_config_file }} {%- endif %} {%- if d.misc.firewall %} @@ -38,11 +41,15 @@ include: {{ formula }}-software-service-running-docker: service.running: - name: {{ d.pkg.docker.service.name }} - {%- if 'config' in d.pkg.docker and d.pkg.docker.config %} - require: + - sls: {{ sls_config_daemon }} + {%- if 'config' in d.pkg.docker and d.pkg.docker.config %} - sls: {{ sls_config_file }} {%- endif %} - enable: True + - watch: + - file: {{ formula }}-software-daemon-file-managed-daemon_file + {%- if grains.kernel|lower == 'linux' %} {{ formula }}-software-service-running-docker-fail-notify: From 428dccdf15c119c32847db0374ff71152157c8a9 Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Fri, 23 Apr 2021 17:58:21 +0200 Subject: [PATCH 06/19] fix(clean): fix syntax error with use_upstream repo With use_upstream: repo, several errors occur: - An invalid state id is used to require the repo state - An incorrect path to include the repo state is used - A dictionary with conifguration is incorrectly passed to the onlyif statement, which is already checked by the if-statement around it. --- docker/software/package/clean.sls | 4 ++-- docker/software/package/repo/install.sls | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docker/software/package/clean.sls b/docker/software/package/clean.sls index f4829d20..d9c3d543 100644 --- a/docker/software/package/clean.sls +++ b/docker/software/package/clean.sls @@ -9,7 +9,7 @@ {%- if grains.kernel|lower in ('linux',) %} {%- if d.pkg.docker.use_upstream == 'repo' %} include: - - .package.repo.clean + - .repo.clean {%- endif %} {{ formula }}-software-package-clean-pkg: @@ -18,7 +18,7 @@ include: - reload_modules: {{ d.misc.reload|default(true, true) }} {%- if d.pkg.docker.use_upstream == 'repo' %} - require: - - pkgrepo: {{ formula }}-package-repo-absent + - pkgrepo: {{ formula }}-software-package-repo-absent {%- endif %} {%- elif grains.os_family == 'MacOS' %} diff --git a/docker/software/package/repo/install.sls b/docker/software/package/repo/install.sls index c792721e..422b274e 100644 --- a/docker/software/package/repo/install.sls +++ b/docker/software/package/repo/install.sls @@ -13,7 +13,5 @@ {{- format_kwargs(d.pkg.docker.repo) }} - humanname: {{ grains["os"] }} {{ grains["oscodename"]|capitalize }} Docker Package Repository - refresh: {{ d.misc.refresh }} - - onlyif: - - {{ d.pkg.docker.repo }} {%- endif %} From 4730a725c773430674199be99fb8fffe65febfdf Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Mon, 26 Apr 2021 09:47:35 +0200 Subject: [PATCH 07/19] fix(clean): fix clean of repo for the RedHat family The clean failed due to a mismatch of the name of the repo that was installed. --- docker/osfamilymap.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/osfamilymap.yaml b/docker/osfamilymap.yaml index aa970854..eedb872c 100644 --- a/docker/osfamilymap.yaml +++ b/docker/osfamilymap.yaml @@ -59,6 +59,7 @@ RedHat: docker: # environ_file: /etc/sysconfig/docker repo: + name: docker-ce baseurl: 'https://download.docker.com/linux/{{ grains.os|lower }}/$releasever/$basearch/stable' file: '/etc/yum.repos.d/docker-ce.repo' gpgkey: 'https://download.docker.com/linux/{{ grains.os|lower }}/gpg' From 5a62de91f8afeed3656d939951739c6da3907b9d Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Mon, 26 Apr 2021 09:49:31 +0200 Subject: [PATCH 08/19] fix(test): add missing tests to verify installation from repo --- kitchen.yml | 19 ++++- test/salt/pillar/repo.sls | 166 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 test/salt/pillar/repo.sls diff --git a/kitchen.yml b/kitchen.yml index 7929640b..21217215 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -632,6 +632,23 @@ suites: verifier: inspec_tests: - path: test/integration/package + - name: repo + provisioner: + state_top: + base: + '*': + - docker._mapdata + - docker + pillars: + top.sls: + base: + '*': + - docker + pillars_from_files: + docker.sls: test/salt/pillar/repo.sls + verifier: + inspec_tests: + - path: test/integration/package - name: clean provisioner: state_top: @@ -645,7 +662,7 @@ suites: '*': - docker pillars_from_files: - docker.sls: test/salt/pillar/archive.sls + docker.sls: test/salt/pillar/repo.sls verifier: inspec_tests: - path: test/integration/clean diff --git a/test/salt/pillar/repo.sls b/test/salt/pillar/repo.sls new file mode 100644 index 00000000..dd721dd3 --- /dev/null +++ b/test/salt/pillar/repo.sls @@ -0,0 +1,166 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +--- +# example docker registry container +# if you want to your own docker registry, use this +docker: + wanted: + - docker + - compose + + pkg: + docker: + use_upstream: repo + config: + # yamllint disable-line rule:line-length + - OPTIONS='-s devicemapper --storage-opt dm.fs=xfs --exec-opt native.cgroupdriver=cgroupfs --selinux-enabled' + # yamllint disable-line rule:line-length + - DOCKER_OPTS="-s btrfs --dns 8.8.8.8" + - export http_proxy="http://172.17.42.1:3128" + daemon_config: + insecure-registries: [] + + containers: + running: + - nginx + - prometheus + + nginx: + image: "nginx:latest" + + prometheus: + image: "prom/prometheus:v1.7.1" + env: + - a=b + - ping=pong + - ding=dong + command: + - ls + - ls -l + auto_remove: true + blkio_weight: 1000 + cap_add: ["SYS_ADMIN", "MKNOD"] + dns: + - 8.8.8.8 + - 8.8.4.4 + dns_search: + - EXAMPLE.COM + domainname: + - EXAMPLE.COM + entrypoint: + - ls + - ls -l + - ls -last + - sleep 100 + init: false + labels: + - label1 + - label2 + - label3 + mem_limit: 1g + mem_swappiness: 50 + name: prometheus + network_disabled: false + network_mode: host # bridge or none or container:netcontainer or host + oom_kill_disable: true + oom_score_adj: 100 + pid_mode: host + pids_limit: -1 + privileged: false + publish_all_ports: true + read_only: false + stdin_open: false + tty: true + volume_driver: local + + registry: + image: "registry:latest" + env: + - REGISTRY_LOG_LEVEL=warn + - REGISTRY_STORAGE=s3 + - REGISTRY_STORAGE_S3_REGION=us-west-1 + - REGISTRY_STORAGE_S3_BUCKET=my-bucket + - REGISTRY_STORAGE_S3_ROOTDIRECTORY=/registry + command: + - "--log-driver=syslog" + - "-p 5000:5000" + - "--rm" + + compose: + ## salt dockercompose module ## + applications: + - composetest + composetest: + path: /srv/salt/docker/files/composetest/docker-compose.yml + + ## formerly compose-ng state ## + ng: + registry-datastore: + dvc: true + # image: ®istry_image 'docker.io/registry:latest' ## Fedora + image: ®istry_image 'registry:latest' + container_name: &dvc 'registry-datastore' + command: echo *dvc data volume container + volumes: + - &datapath '/registry' + registry-service: + image: *registry_image + container_name: 'registry-service' + volumes_from: + - *dvc + environment: + SETTINGS_FLAVOR: 'local' + STORAGE_PATH: *datapath + SEARCH_BACKEND: 'sqlalchemy' + REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: '/registry' + ports: + - 127.0.0.1:5000:5000 + # restart: 'always' # compose v1.9 + deploy: # compose v3 + restart_policy: + condition: on-failure + delay: 5s + max_attempts: 3 + window: 120s + nginx-latest: + # image: 'docker.io/nginx:latest' ##Fedora + image: 'nginx:latest' + container_name: 'nginx-latest' + links: + - 'registry-service:registry' + ports: + - '80:80' + - '443:443' + volumes: + - /srv/docker-registry/nginx/:/etc/nginx/conf.d + - /srv/docker-registry/auth/:/etc/nginx/conf.d/auth + - /srv/docker-registry/certs/:/etc/nginx/conf.d/certs + working_dir: '/var/www/html' + volume_driver: 'local' + userns_mode: 'host' + user: 'nginx' + # restart: 'always' # compose v1.9 + deploy: # compose v3 + restart_policy: + condition: on-failure + delay: 5s + max_attempts: 3 + window: 120s + + swarm: + # Per https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.swarm.html + joinswarm: {} + leave_swarm: false + node_ls: {} + remove_node: {} + remove_service: {} + service_create: {} + swarm_init: {} + service_info: {} + swarm_tokens: true + update_node: {} + + misc: + skip_translate: ports + force_present: false + force_running: true From af16bb7781da5653c50375c8e197591a2b7d7c09 Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Mon, 26 Apr 2021 19:20:53 +0200 Subject: [PATCH 09/19] fix(clean): make repo install and clean states consistent --- docker/software/package/clean.sls | 12 +++++++----- docker/software/package/install.sls | 7 ++++--- docker/software/package/repo/clean.sls | 4 ++++ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/docker/software/package/clean.sls b/docker/software/package/clean.sls index d9c3d543..b82770e3 100644 --- a/docker/software/package/clean.sls +++ b/docker/software/package/clean.sls @@ -6,17 +6,19 @@ {%- set formula = d.formula %} {%- if d.pkg.docker.use_upstream in ('package', 'repo') %} - {%- if grains.kernel|lower in ('linux',) %} - {%- if d.pkg.docker.use_upstream == 'repo' %} + {%- set enable_repo = d.pkg.docker.use_upstream == 'repo' and grains.os_family in ('RedHat', 'Debian') %} + {%- if enable_repo %} + {%- set sls_repo_clean = tplroot ~ '.software.package.repo.clean' %} include: - - .repo.clean - {%- endif %} + - {{ sls_repo_clean }} + {%- endif %} + {%- if grains.kernel|lower in ('linux', 'darwin') %} {{ formula }}-software-package-clean-pkg: pkg.removed: - name: {{ d.pkg.docker.name }} - reload_modules: {{ d.misc.reload|default(true, true) }} - {%- if d.pkg.docker.use_upstream == 'repo' %} + {%- if enable_repo %} - require: - pkgrepo: {{ formula }}-software-package-repo-absent {%- endif %} diff --git a/docker/software/package/install.sls b/docker/software/package/install.sls index 6e232a7f..245003e4 100644 --- a/docker/software/package/install.sls +++ b/docker/software/package/install.sls @@ -6,13 +6,14 @@ {%- set formula = d.formula %} {%- if d.pkg.docker.use_upstream in ('package', 'repo') %} + {%- set enable_repo = d.pkg.docker.use_upstream == 'repo' and grains.os_family in ('RedHat', 'Debian') %} {%- set docker_pkg_version = d.version | default(d.pkg.version, true) %} - {%- if grains.os_family in ('RedHat', 'Debian') %} + {%- if enable_repo %} {%- set sls_repo_install = tplroot ~ '.software.package.repo.install' %} - include: - {{ sls_repo_install }} {%- endif %} + {%- if grains.kernel|lower in ('linux', 'darwin') %} {%- if 'deps' in d.pkg and d.pkg.deps %} @@ -43,7 +44,7 @@ include: {%- if grains.os|lower not in ('suse',) %} - hold: {{ d.misc.hold|default(false, true) }} {%- endif %} - {%- if grains.os_family in ('RedHat', 'Debian') %} + {%- if enable_repo %} - require: - pkgrepo: {{ formula }}-software-package-repo-managed {%- endif %} diff --git a/docker/software/package/repo/clean.sls b/docker/software/package/repo/clean.sls index 253d8293..af5877d5 100644 --- a/docker/software/package/repo/clean.sls +++ b/docker/software/package/repo/clean.sls @@ -5,8 +5,12 @@ {%- from tplroot ~ "/map.jinja" import data as d with context %} {%- set formula = d.formula %} + {%- if 'repo' in d.pkg.docker and d.pkg.docker.repo %} + {{ formula }}-software-package-repo-absent: pkgrepo.absent: - name: {{ d.pkg.docker.repo.name }} - onlyif: - {{ d.pkg.docker.repo }} + + {%- endif %} From 1f5190b20c77cfc5be0e9150cce09b46917f7fdd Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Tue, 27 Apr 2021 11:07:31 +0200 Subject: [PATCH 10/19] fix(clean): update condition that enables the repo --- docker/software/package/clean.sls | 2 +- docker/software/package/install.sls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/software/package/clean.sls b/docker/software/package/clean.sls index b82770e3..1006cbab 100644 --- a/docker/software/package/clean.sls +++ b/docker/software/package/clean.sls @@ -6,7 +6,7 @@ {%- set formula = d.formula %} {%- if d.pkg.docker.use_upstream in ('package', 'repo') %} - {%- set enable_repo = d.pkg.docker.use_upstream == 'repo' and grains.os_family in ('RedHat', 'Debian') %} + {%- set enable_repo = grains.os_family in ('RedHat', 'Debian') %} {%- if enable_repo %} {%- set sls_repo_clean = tplroot ~ '.software.package.repo.clean' %} include: diff --git a/docker/software/package/install.sls b/docker/software/package/install.sls index 245003e4..92649cb6 100644 --- a/docker/software/package/install.sls +++ b/docker/software/package/install.sls @@ -6,7 +6,7 @@ {%- set formula = d.formula %} {%- if d.pkg.docker.use_upstream in ('package', 'repo') %} - {%- set enable_repo = d.pkg.docker.use_upstream == 'repo' and grains.os_family in ('RedHat', 'Debian') %} + {%- set enable_repo = grains.os_family in ('RedHat', 'Debian') %} {%- set docker_pkg_version = d.version | default(d.pkg.version, true) %} {%- if enable_repo %} {%- set sls_repo_install = tplroot ~ '.software.package.repo.install' %} From b3c56cb9e1784d217eb4cba71caf2a75b0c3a0d4 Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Tue, 4 May 2021 12:25:02 +0200 Subject: [PATCH 11/19] fix(clean): remove invalid 'onlyif' statement from repo.clean A dictionary is passed to the salt 'onlyif' condition. This is invalid syntax and the condition is already checked by in the jinja around it. --- docker/software/package/repo/clean.sls | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker/software/package/repo/clean.sls b/docker/software/package/repo/clean.sls index af5877d5..53c03245 100644 --- a/docker/software/package/repo/clean.sls +++ b/docker/software/package/repo/clean.sls @@ -10,7 +10,5 @@ {{ formula }}-software-package-repo-absent: pkgrepo.absent: - name: {{ d.pkg.docker.repo.name }} - - onlyif: - - {{ d.pkg.docker.repo }} {%- endif %} From 53db7ad8ef775f725b5c339402473d15075174bc Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Tue, 4 May 2021 12:41:51 +0200 Subject: [PATCH 12/19] fix(clean): fix syntax error in networks.clean state file --- docker/networks/clean.sls | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/networks/clean.sls b/docker/networks/clean.sls index e507f5fc..09015605 100644 --- a/docker/networks/clean.sls +++ b/docker/networks/clean.sls @@ -20,3 +20,4 @@ include: - name: {{ name }} {%- endfor %} + {%- endif %} From a7f382f3f511b7006f0980efae3db7164ae2a95d Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Tue, 4 May 2021 17:15:20 +0200 Subject: [PATCH 13/19] fix(clean): update enable_repo condition to be more robust --- docker/software/package/clean.sls | 2 +- docker/software/package/install.sls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/software/package/clean.sls b/docker/software/package/clean.sls index 1006cbab..3183637b 100644 --- a/docker/software/package/clean.sls +++ b/docker/software/package/clean.sls @@ -6,7 +6,7 @@ {%- set formula = d.formula %} {%- if d.pkg.docker.use_upstream in ('package', 'repo') %} - {%- set enable_repo = grains.os_family in ('RedHat', 'Debian') %} + {%- set enable_repo = grains.os_family in ('RedHat', 'Debian') and d.pkg.docker.get('repo') %} {%- if enable_repo %} {%- set sls_repo_clean = tplroot ~ '.software.package.repo.clean' %} include: diff --git a/docker/software/package/install.sls b/docker/software/package/install.sls index 92649cb6..cf43eb91 100644 --- a/docker/software/package/install.sls +++ b/docker/software/package/install.sls @@ -6,7 +6,7 @@ {%- set formula = d.formula %} {%- if d.pkg.docker.use_upstream in ('package', 'repo') %} - {%- set enable_repo = grains.os_family in ('RedHat', 'Debian') %} + {%- set enable_repo = grains.os_family in ('RedHat', 'Debian') and d.pkg.docker.get('repo') %} {%- set docker_pkg_version = d.version | default(d.pkg.version, true) %} {%- if enable_repo %} {%- set sls_repo_install = tplroot ~ '.software.package.repo.install' %} From 161d8cc691eb3dd389cdbce4f3cd54013c3093ed Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Wed, 19 May 2021 22:23:12 +0100 Subject: [PATCH 14/19] ci(kitchen): use `master` as default instance for Arch Linux [skip ci] * Automated using https://github.com/myii/ssf-formula/pull/323 --- .github/workflows/kitchen.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml index e2e961c3..7320c7a5 100644 --- a/.github/workflows/kitchen.yml +++ b/.github/workflows/kitchen.yml @@ -87,6 +87,10 @@ jobs: # - package-oraclelinux-7-master-py3 # - clean-oraclelinux-7-master-py3 # - oraclelinux-7-master-py3 + # - archive-arch-base-latest-master-py3 + # - package-arch-base-latest-master-py3 + # - clean-arch-base-latest-master-py3 + - arch-base-latest-master-py3 # - archive-gentoo-stage3-latest-master-py3 # - package-gentoo-stage3-latest-master-py3 # - clean-gentoo-stage3-latest-master-py3 @@ -108,9 +112,6 @@ jobs: # - archive-oraclelinux-8-3003-0-py3 # - archive-oraclelinux-7-3003-0-py3 # - archive-arch-base-latest-3003-0-py3 - # - package-arch-base-latest-3003-0-py3 - # - clean-arch-base-latest-3003-0-py3 - - arch-base-latest-3003-0-py3 # - archive-gentoo-stage3-latest-3003-0-py3 # - archive-gentoo-stage3-systemd-3003-0-py3 # - archive-debian-10-3002-6-py3 From 7d62daed81622480385b79faef85ab010b4e123e Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Thu, 20 May 2021 14:05:12 +0100 Subject: [PATCH 15/19] chore(pre-commit): use `info` report level for `rstcheck` [skip ci] * Automated using https://github.com/myii/ssf-formula/pull/325 --- .pre-commit-config.yaml | 1 - .rstcheck.cfg | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ea8271b9..9bc41097 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,4 +52,3 @@ repos: - id: rstcheck name: Check reST files using rstcheck exclude: 'docs/CHANGELOG.rst' - args: [--report=warning] diff --git a/.rstcheck.cfg b/.rstcheck.cfg index 05856dc7..5383623e 100644 --- a/.rstcheck.cfg +++ b/.rstcheck.cfg @@ -1,3 +1,4 @@ [rstcheck] -report=error +report=info ignore_language=rst +ignore_messages=(Duplicate (ex|im)plicit target.*|Hyperlink target ".*" is not referenced\.$) From 0f31a12c9d02cab0441a28700cab8235443b0696 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 20 May 2021 16:08:23 +0000 Subject: [PATCH 16/19] chore(release): 2.0.5 [skip ci] ## [2.0.5](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.4...v2.0.5) (2021-05-20) ### Bug Fixes * **clean:** fix clean of repo for the RedHat family ([4730a72](https://github.com/saltstack-formulas/docker-formula/commit/4730a725c773430674199be99fb8fffe65febfdf)) * **clean:** fix syntax error in networks.clean state file ([53db7ad](https://github.com/saltstack-formulas/docker-formula/commit/53db7ad8ef775f725b5c339402473d15075174bc)) * **clean:** fix syntax error with use_upstream repo ([428dccd](https://github.com/saltstack-formulas/docker-formula/commit/428dccdf15c119c32847db0374ff71152157c8a9)) * **clean:** make repo install and clean states consistent ([af16bb7](https://github.com/saltstack-formulas/docker-formula/commit/af16bb7781da5653c50375c8e197591a2b7d7c09)) * **clean:** remove invalid 'onlyif' statement from repo.clean ([b3c56cb](https://github.com/saltstack-formulas/docker-formula/commit/b3c56cb9e1784d217eb4cba71caf2a75b0c3a0d4)) * **clean:** update condition that enables the repo ([1f5190b](https://github.com/saltstack-formulas/docker-formula/commit/1f5190b20c77cfc5be0e9150cce09b46917f7fdd)) * **clean:** update enable_repo condition to be more robust ([a7f382f](https://github.com/saltstack-formulas/docker-formula/commit/a7f382f3f511b7006f0980efae3db7164ae2a95d)) * **test:** add missing tests to verify installation from repo ([5a62de9](https://github.com/saltstack-formulas/docker-formula/commit/5a62de91f8afeed3656d939951739c6da3907b9d)) ### Continuous Integration * **kitchen:** use `master` as default instance for Arch Linux [skip ci] ([161d8cc](https://github.com/saltstack-formulas/docker-formula/commit/161d8cc691eb3dd389cdbce4f3cd54013c3093ed)) --- AUTHORS.md | 8 ++++---- CHANGELOG.md | 19 +++++++++++++++++++ FORMULA | 2 +- docs/AUTHORS.rst | 12 ++++++------ docs/CHANGELOG.rst | 22 ++++++++++++++++++++++ 5 files changed, 52 insertions(+), 11 deletions(-) diff --git a/AUTHORS.md b/AUTHORS.md index b72d2f65..8875861b 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -4,8 +4,8 @@ This list is sorted by the number of commits per contributor in _descending_ ord Avatar|Contributor|Contributions :-:|---|:-: -@noelmcloughlin|[@noelmcloughlin](https://github.com/noelmcloughlin)|115 -@myii|[@myii](https://github.com/myii)|71 +@noelmcloughlin|[@noelmcloughlin](https://github.com/noelmcloughlin)|116 +@myii|[@myii](https://github.com/myii)|73 @cdarwin|[@cdarwin](https://github.com/cdarwin)|25 @gravyboat|[@gravyboat](https://github.com/gravyboat)|22 @aboe76|[@aboe76](https://github.com/aboe76)|21 @@ -13,6 +13,7 @@ Avatar|Contributor|Contributions @puneetk|[@puneetk](https://github.com/puneetk)|15 @vladvasiliu|[@vladvasiliu](https://github.com/vladvasiliu)|12 @nmadhok|[@nmadhok](https://github.com/nmadhok)|9 +@danny-smit|[@danny-smit](https://github.com/danny-smit)|7 @ticosax|[@ticosax](https://github.com/ticosax)|7 @alexproca|[@alexproca](https://github.com/alexproca)|6 @blbradley|[@blbradley](https://github.com/blbradley)|6 @@ -23,7 +24,6 @@ Avatar|Contributor|Contributions @japtain-cack|[@japtain-cack](https://github.com/japtain-cack)|3 @babilen5|[@babilen5](https://github.com/babilen5)|3 @solarchad|[@solarchad](https://github.com/solarchad)|2 -@danny-smit|[@danny-smit](https://github.com/danny-smit)|2 @techhat|[@techhat](https://github.com/techhat)|2 @msciciel|[@msciciel](https://github.com/msciciel)|2 @mingfang|[@mingfang](https://github.com/mingfang)|2 @@ -62,4 +62,4 @@ Avatar|Contributor|Contributions --- -Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2021-05-19. +Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2021-05-20. diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b46c346..8250d287 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.0.5](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.4...v2.0.5) (2021-05-20) + + +### Bug Fixes + +* **clean:** fix clean of repo for the RedHat family ([4730a72](https://github.com/saltstack-formulas/docker-formula/commit/4730a725c773430674199be99fb8fffe65febfdf)) +* **clean:** fix syntax error in networks.clean state file ([53db7ad](https://github.com/saltstack-formulas/docker-formula/commit/53db7ad8ef775f725b5c339402473d15075174bc)) +* **clean:** fix syntax error with use_upstream repo ([428dccd](https://github.com/saltstack-formulas/docker-formula/commit/428dccdf15c119c32847db0374ff71152157c8a9)) +* **clean:** make repo install and clean states consistent ([af16bb7](https://github.com/saltstack-formulas/docker-formula/commit/af16bb7781da5653c50375c8e197591a2b7d7c09)) +* **clean:** remove invalid 'onlyif' statement from repo.clean ([b3c56cb](https://github.com/saltstack-formulas/docker-formula/commit/b3c56cb9e1784d217eb4cba71caf2a75b0c3a0d4)) +* **clean:** update condition that enables the repo ([1f5190b](https://github.com/saltstack-formulas/docker-formula/commit/1f5190b20c77cfc5be0e9150cce09b46917f7fdd)) +* **clean:** update enable_repo condition to be more robust ([a7f382f](https://github.com/saltstack-formulas/docker-formula/commit/a7f382f3f511b7006f0980efae3db7164ae2a95d)) +* **test:** add missing tests to verify installation from repo ([5a62de9](https://github.com/saltstack-formulas/docker-formula/commit/5a62de91f8afeed3656d939951739c6da3907b9d)) + + +### Continuous Integration + +* **kitchen:** use `master` as default instance for Arch Linux [skip ci] ([161d8cc](https://github.com/saltstack-formulas/docker-formula/commit/161d8cc691eb3dd389cdbce4f3cd54013c3093ed)) + ## [2.0.4](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.3...v2.0.4) (2021-05-19) diff --git a/FORMULA b/FORMULA index 26ee228a..48dcda4e 100644 --- a/FORMULA +++ b/FORMULA @@ -1,7 +1,7 @@ name: docker os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS -version: 2.0.4 +version: 2.0.5 release: 1 minimum_version: 2017.7 summary: docker formula diff --git a/docs/AUTHORS.rst b/docs/AUTHORS.rst index a82b1bbd..80f6f643 100644 --- a/docs/AUTHORS.rst +++ b/docs/AUTHORS.rst @@ -15,10 +15,10 @@ This list is sorted by the number of commits per contributor in *descending* ord - Contributions * - :raw-html-m2r:`@noelmcloughlin` - `@noelmcloughlin `_ - - 115 + - 116 * - :raw-html-m2r:`@myii` - `@myii `_ - - 71 + - 73 * - :raw-html-m2r:`@cdarwin` - `@cdarwin `_ - 25 @@ -40,6 +40,9 @@ This list is sorted by the number of commits per contributor in *descending* ord * - :raw-html-m2r:`@nmadhok` - `@nmadhok `_ - 9 + * - :raw-html-m2r:`@danny-smit` + - `@danny-smit `_ + - 7 * - :raw-html-m2r:`@ticosax` - `@ticosax `_ - 7 @@ -70,9 +73,6 @@ This list is sorted by the number of commits per contributor in *descending* ord * - :raw-html-m2r:`@solarchad` - `@solarchad `_ - 2 - * - :raw-html-m2r:`@danny-smit` - - `@danny-smit `_ - - 2 * - :raw-html-m2r:`@techhat` - `@techhat `_ - 2 @@ -182,4 +182,4 @@ This list is sorted by the number of commits per contributor in *descending* ord ---- -Auto-generated by a `forked version `_ of `gaocegege/maintainer `_ on 2021-05-19. +Auto-generated by a `forked version `_ of `gaocegege/maintainer `_ on 2021-05-20. diff --git a/docs/CHANGELOG.rst b/docs/CHANGELOG.rst index 63d99305..b770dce4 100644 --- a/docs/CHANGELOG.rst +++ b/docs/CHANGELOG.rst @@ -2,6 +2,28 @@ Changelog ========= +`2.0.5 `_ (2021-05-20) +-------------------------------------------------------------------------------------------------------- + +Bug Fixes +^^^^^^^^^ + + +* **clean:** fix clean of repo for the RedHat family (\ `4730a72 `_\ ) +* **clean:** fix syntax error in networks.clean state file (\ `53db7ad `_\ ) +* **clean:** fix syntax error with use_upstream repo (\ `428dccd `_\ ) +* **clean:** make repo install and clean states consistent (\ `af16bb7 `_\ ) +* **clean:** remove invalid 'onlyif' statement from repo.clean (\ `b3c56cb `_\ ) +* **clean:** update condition that enables the repo (\ `1f5190b `_\ ) +* **clean:** update enable_repo condition to be more robust (\ `a7f382f `_\ ) +* **test:** add missing tests to verify installation from repo (\ `5a62de9 `_\ ) + +Continuous Integration +^^^^^^^^^^^^^^^^^^^^^^ + + +* **kitchen:** use ``master`` as default instance for Arch Linux [skip ci] (\ `161d8cc `_\ ) + `2.0.4 `_ (2021-05-19) -------------------------------------------------------------------------------------------------------- From 8c012bb1fbff531721728d8c2d36a63eb48a7132 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 21 May 2021 15:14:20 +0000 Subject: [PATCH 17/19] chore(release): 2.0.6 [skip ci] ## [2.0.6](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.5...v2.0.6) (2021-05-21) ### Bug Fixes * **service:** reload the docker service when daemon.json has changed ([b34f434](https://github.com/saltstack-formulas/docker-formula/commit/b34f434a5ae35ee1fb54b7c542a59d5ba4ab32da)) --- AUTHORS.md | 6 +++--- CHANGELOG.md | 7 +++++++ FORMULA | 2 +- docs/AUTHORS.rst | 6 +++--- docs/CHANGELOG.rst | 9 +++++++++ 5 files changed, 23 insertions(+), 7 deletions(-) diff --git a/AUTHORS.md b/AUTHORS.md index 8875861b..ede88b1d 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -4,7 +4,7 @@ This list is sorted by the number of commits per contributor in _descending_ ord Avatar|Contributor|Contributions :-:|---|:-: -@noelmcloughlin|[@noelmcloughlin](https://github.com/noelmcloughlin)|116 +@noelmcloughlin|[@noelmcloughlin](https://github.com/noelmcloughlin)|117 @myii|[@myii](https://github.com/myii)|73 @cdarwin|[@cdarwin](https://github.com/cdarwin)|25 @gravyboat|[@gravyboat](https://github.com/gravyboat)|22 @@ -13,7 +13,7 @@ Avatar|Contributor|Contributions @puneetk|[@puneetk](https://github.com/puneetk)|15 @vladvasiliu|[@vladvasiliu](https://github.com/vladvasiliu)|12 @nmadhok|[@nmadhok](https://github.com/nmadhok)|9 -@danny-smit|[@danny-smit](https://github.com/danny-smit)|7 +@danny-smit|[@danny-smit](https://github.com/danny-smit)|8 @ticosax|[@ticosax](https://github.com/ticosax)|7 @alexproca|[@alexproca](https://github.com/alexproca)|6 @blbradley|[@blbradley](https://github.com/blbradley)|6 @@ -62,4 +62,4 @@ Avatar|Contributor|Contributions --- -Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2021-05-20. +Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2021-05-21. diff --git a/CHANGELOG.md b/CHANGELOG.md index 8250d287..6f78e2f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.0.6](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.5...v2.0.6) (2021-05-21) + + +### Bug Fixes + +* **service:** reload the docker service when daemon.json has changed ([b34f434](https://github.com/saltstack-formulas/docker-formula/commit/b34f434a5ae35ee1fb54b7c542a59d5ba4ab32da)) + ## [2.0.5](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.4...v2.0.5) (2021-05-20) diff --git a/FORMULA b/FORMULA index 48dcda4e..804130ab 100644 --- a/FORMULA +++ b/FORMULA @@ -1,7 +1,7 @@ name: docker os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS -version: 2.0.5 +version: 2.0.6 release: 1 minimum_version: 2017.7 summary: docker formula diff --git a/docs/AUTHORS.rst b/docs/AUTHORS.rst index 80f6f643..36c439d8 100644 --- a/docs/AUTHORS.rst +++ b/docs/AUTHORS.rst @@ -15,7 +15,7 @@ This list is sorted by the number of commits per contributor in *descending* ord - Contributions * - :raw-html-m2r:`@noelmcloughlin` - `@noelmcloughlin `_ - - 116 + - 117 * - :raw-html-m2r:`@myii` - `@myii `_ - 73 @@ -42,7 +42,7 @@ This list is sorted by the number of commits per contributor in *descending* ord - 9 * - :raw-html-m2r:`@danny-smit` - `@danny-smit `_ - - 7 + - 8 * - :raw-html-m2r:`@ticosax` - `@ticosax `_ - 7 @@ -182,4 +182,4 @@ This list is sorted by the number of commits per contributor in *descending* ord ---- -Auto-generated by a `forked version `_ of `gaocegege/maintainer `_ on 2021-05-20. +Auto-generated by a `forked version `_ of `gaocegege/maintainer `_ on 2021-05-21. diff --git a/docs/CHANGELOG.rst b/docs/CHANGELOG.rst index b770dce4..997b6937 100644 --- a/docs/CHANGELOG.rst +++ b/docs/CHANGELOG.rst @@ -2,6 +2,15 @@ Changelog ========= +`2.0.6 `_ (2021-05-21) +-------------------------------------------------------------------------------------------------------- + +Bug Fixes +^^^^^^^^^ + + +* **service:** reload the docker service when daemon.json has changed (\ `b34f434 `_\ ) + `2.0.5 `_ (2021-05-20) -------------------------------------------------------------------------------------------------------- From 89cd4fccf0109fb37a33a4de762b6a2c5c02bbc2 Mon Sep 17 00:00:00 2001 From: Danny Smit Date: Wed, 2 Jun 2021 18:13:57 +0200 Subject: [PATCH 18/19] fix(clean): fix syntax error in networks.clean --- docker/networks/clean.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/networks/clean.sls b/docker/networks/clean.sls index 09015605..f9949f8e 100644 --- a/docker/networks/clean.sls +++ b/docker/networks/clean.sls @@ -13,7 +13,7 @@ include: - {{ sls_archive if d.pkg.docker.use_upstream == 'archive' else sls_desktop if d.pkg.docker.use_upstream == 'desktop' else sls_package }} - {%- for name in docker.networks %} + {%- for name in d.networks %} {{ formula }}-network-{{ name }}-absent: docker_network.absent: From 049a740be149886f5cbb486c1b4504158c4ba6fe Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 2 Jun 2021 17:02:06 +0000 Subject: [PATCH 19/19] chore(release): 2.0.7 [skip ci] ## [2.0.7](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.6...v2.0.7) (2021-06-02) ### Bug Fixes * **clean:** fix syntax error in networks.clean ([89cd4fc](https://github.com/saltstack-formulas/docker-formula/commit/89cd4fccf0109fb37a33a4de762b6a2c5c02bbc2)) --- AUTHORS.md | 6 +++--- CHANGELOG.md | 7 +++++++ FORMULA | 2 +- docs/AUTHORS.rst | 10 +++++----- docs/CHANGELOG.rst | 9 +++++++++ 5 files changed, 25 insertions(+), 9 deletions(-) diff --git a/AUTHORS.md b/AUTHORS.md index ede88b1d..3476fea7 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -5,15 +5,15 @@ This list is sorted by the number of commits per contributor in _descending_ ord Avatar|Contributor|Contributions :-:|---|:-: @noelmcloughlin|[@noelmcloughlin](https://github.com/noelmcloughlin)|117 -@myii|[@myii](https://github.com/myii)|73 +@myii|[@myii](https://github.com/myii)|74 @cdarwin|[@cdarwin](https://github.com/cdarwin)|25 @gravyboat|[@gravyboat](https://github.com/gravyboat)|22 @aboe76|[@aboe76](https://github.com/aboe76)|21 @javierbertoli|[@javierbertoli](https://github.com/javierbertoli)|18 @puneetk|[@puneetk](https://github.com/puneetk)|15 @vladvasiliu|[@vladvasiliu](https://github.com/vladvasiliu)|12 +@danny-smit|[@danny-smit](https://github.com/danny-smit)|9 @nmadhok|[@nmadhok](https://github.com/nmadhok)|9 -@danny-smit|[@danny-smit](https://github.com/danny-smit)|8 @ticosax|[@ticosax](https://github.com/ticosax)|7 @alexproca|[@alexproca](https://github.com/alexproca)|6 @blbradley|[@blbradley](https://github.com/blbradley)|6 @@ -62,4 +62,4 @@ Avatar|Contributor|Contributions --- -Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2021-05-21. +Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2021-06-02. diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f78e2f2..8ef1ece6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.0.7](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.6...v2.0.7) (2021-06-02) + + +### Bug Fixes + +* **clean:** fix syntax error in networks.clean ([89cd4fc](https://github.com/saltstack-formulas/docker-formula/commit/89cd4fccf0109fb37a33a4de762b6a2c5c02bbc2)) + ## [2.0.6](https://github.com/saltstack-formulas/docker-formula/compare/v2.0.5...v2.0.6) (2021-05-21) diff --git a/FORMULA b/FORMULA index 804130ab..d60a308d 100644 --- a/FORMULA +++ b/FORMULA @@ -1,7 +1,7 @@ name: docker os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS -version: 2.0.6 +version: 2.0.7 release: 1 minimum_version: 2017.7 summary: docker formula diff --git a/docs/AUTHORS.rst b/docs/AUTHORS.rst index 36c439d8..baa727bb 100644 --- a/docs/AUTHORS.rst +++ b/docs/AUTHORS.rst @@ -18,7 +18,7 @@ This list is sorted by the number of commits per contributor in *descending* ord - 117 * - :raw-html-m2r:`@myii` - `@myii `_ - - 73 + - 74 * - :raw-html-m2r:`@cdarwin` - `@cdarwin `_ - 25 @@ -37,12 +37,12 @@ This list is sorted by the number of commits per contributor in *descending* ord * - :raw-html-m2r:`@vladvasiliu` - `@vladvasiliu `_ - 12 + * - :raw-html-m2r:`@danny-smit` + - `@danny-smit `_ + - 9 * - :raw-html-m2r:`@nmadhok` - `@nmadhok `_ - 9 - * - :raw-html-m2r:`@danny-smit` - - `@danny-smit `_ - - 8 * - :raw-html-m2r:`@ticosax` - `@ticosax `_ - 7 @@ -182,4 +182,4 @@ This list is sorted by the number of commits per contributor in *descending* ord ---- -Auto-generated by a `forked version `_ of `gaocegege/maintainer `_ on 2021-05-21. +Auto-generated by a `forked version `_ of `gaocegege/maintainer `_ on 2021-06-02. diff --git a/docs/CHANGELOG.rst b/docs/CHANGELOG.rst index 997b6937..e08b69d6 100644 --- a/docs/CHANGELOG.rst +++ b/docs/CHANGELOG.rst @@ -2,6 +2,15 @@ Changelog ========= +`2.0.7 `_ (2021-06-02) +-------------------------------------------------------------------------------------------------------- + +Bug Fixes +^^^^^^^^^ + + +* **clean:** fix syntax error in networks.clean (\ `89cd4fc `_\ ) + `2.0.6 `_ (2021-05-21) --------------------------------------------------------------------------------------------------------