From 94d3a9d1006dd3ad50ae3cf31c636d4ca97d067a Mon Sep 17 00:00:00 2001
From: Branden Cobb <cobb_branden@bah.com>
Date: Fri, 25 Feb 2022 17:19:26 +0000
Subject: [PATCH] Move Synker Images

---
 renovate.json               |  9 +++++-
 scripts/package/synker.yaml | 58 -------------------------------------
 tests/images.txt            | 11 +++++++
 3 files changed, 19 insertions(+), 59 deletions(-)
 delete mode 100644 scripts/package/synker.yaml
 create mode 100644 tests/images.txt

diff --git a/renovate.json b/renovate.json
index e0cd06f606..8a89c15b32 100644
--- a/renovate.json
+++ b/renovate.json
@@ -27,7 +27,14 @@
                 "newName\\S*:\\s*(?<depName>\\S+).*\n\\s+newTag:\\s*(?<currentValue>.+)"
               ],
             "datasourceTemplate": "docker"
+        },
+        {
+            "fileMatch": ["^tests/images\\.txt$"],
+            "matchStrings": [
+              "s*(?<depName>.+):(?<currentValue>.+)"
+            ],
+            "datasourceTemplate": "docker"
         }
     ],
     "separateMajorMinor": false
-}
\ No newline at end of file
+}
diff --git a/scripts/package/synker.yaml b/scripts/package/synker.yaml
deleted file mode 100644
index 9b746a5b46..0000000000
--- a/scripts/package/synker.yaml
+++ /dev/null
@@ -1,58 +0,0 @@
-# Baseline synker CI configs
-# NOTE: THIS CONFIG IS PARTIAL (it is missing the `destination` component) AND ONLY USED FOR PULLING IN CI
-transport:
-  registry:
-    hostname: localhost
-    port: 25000
-    osChoice: linux
-    disablePolicyChecks: true
-options:
-  # TODO: Turn this off for now until parallel syncing is more "production" ready
-  # NOTE: Finding some bugs (even with retry) in pushing images to the airgapped registry that trace back to paralell syncing
-  parallelSync: false
-  quiet: false
-  debug: info
-# NOTE: destination configurations below are environment specific and should be modified to match your environment.
-destination:
-  registry:
-    # Hostname of the destination registry to push to
-    hostname: p1-registry
-    # Port of the destination registry to push to
-    port: 5000
-    #
-    osChoice: linux
-    disablePolicyChecks: true
-source:
-  authFile: /root/.docker/config.json
-  images:
-    # Include registry image
-    - registry:2
-
-    - registry1.dso.mil/ironbank/twistlock/defender/defender:22.01.840
-    - registry1.dso.mil/ironbank/anchore/enterprise/enterprise:3.2.1
-    - registry1.dso.mil/ironbank/anchore/enterpriseui/enterpriseui:3.2.1
-    - registry1.dso.mil/ironbank/big-bang/base:8.4
-    - registry1.dso.mil/ironbank/big-bang/base:1.0.0
-    - registry1.dso.mil/ironbank/gitlab/gitlab/kubectl:14.7.1
-    - registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-exporter:14.7.1
-    - registry1.dso.mil/ironbank/opensource/kubernetes-1.21/kubectl:v1.21.2
-    - registry1.dso.mil/ironbank/opensource/istio/install-cni:1.11.5
-    # NOTE: We use the velero AWS plugin in CI so it isn't listed here
-    - registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-csi:v0.1.2
-    - registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-microsoft-azure:v1.3.1
-    # Images used by pipeline-templates
-    # NOTE: These are __not__ fully inclusive yet, see this issue for updates: https://repo1.dso.mil/platform-one/big-bang/bigbang/-/issues/145
-    - registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/sonar-scanner-dotnet31:4.10
-    - registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/sonar-scanner:4.5.0.2216
-    - registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/git-kustomize203-skopeo12:8.2.276.test
-    - registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/kaniko-project-executor:debug-v1.3.0
-    - registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/skopeo-bash-git-lfs-kustomize:1.0
-    - registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/anchore:0.8.2
-    - registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/test:gcc
-    # Following line removed with 1.10.0 release due to failure to fetch image.  Image not found.
-    # - registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/dependency-check616-sonar-scanner45-dotnet-31:052421
-    # gitlab-runner-helper image: This image does not get captured from the release deployment
-    # the gitlab-runner-helper image only gets pulled when a pipeline runs. So it must be listed here
-    - registry1.dso.mil/ironbank/gitlab/gitlab-runner/gitlab-runner-helper:v14.7.0
-    # Don't include until fortify is supported
-    #- registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/dotnet-fortify:20.2.0
diff --git a/tests/images.txt b/tests/images.txt
new file mode 100644
index 0000000000..5fa8fd9f5a
--- /dev/null
+++ b/tests/images.txt
@@ -0,0 +1,11 @@
+registry:2
+registry1.dso.mil/ironbank/big-bang/base:8.4
+registry1.dso.mil/ironbank/big-bang/base:1.0.0
+registry1.dso.mil/ironbank/opensource/kubernetes-1.21/kubectl:v1.21.2
+registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/sonar-scanner-dotnet31:4.10
+registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/sonar-scanner:4.5.0.2216
+registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/git-kustomize203-skopeo12:8.2.276.test
+registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/kaniko-project-executor:debug-v1.3.0
+registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/skopeo-bash-git-lfs-kustomize:1.0
+registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/anchore:0.8.2
+registry.il2.dso.mil/platform-one/devops/pipeline-templates/pipeline-job/test:gcc
-- 
GitLab