diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 93648b57e..3e935baba 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -5,11 +5,5 @@ Uses [image-packer](https://github.com/kmodules/image-packer) ```bash -image-packer list --root-dir=charts --output-dir=catalog - -image-packer generate-scripts --insecure --allow-nondistributable-artifacts \ - --output-dir=catalog \ - --src=catalog/imagelist.yaml - -make add-license fmt +./hack/scripts/generate-catalog.sh ``` diff --git a/catalog/scripts/cassandra/copy-images.sh b/catalog/scripts/cassandra/copy-images.sh new file mode 100755 index 000000000..d2fed61d8 --- /dev/null +++ b/catalog/scripts/cassandra/copy-images.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/cassandra-exporter:2.3.8 $IMAGE_REGISTRY/appscode-images/cassandra-exporter:2.3.8 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/cassandra:4.1.6 $IMAGE_REGISTRY/appscode-images/cassandra:4.1.6 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/cassandra:5.0.0 $IMAGE_REGISTRY/appscode-images/cassandra:5.0.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/cassandra-init:4.1.6 $IMAGE_REGISTRY/kubedb/cassandra-init:4.1.6 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/cassandra-init:5.0.0 $IMAGE_REGISTRY/kubedb/cassandra-init:5.0.0 diff --git a/catalog/scripts/cassandra/export-images.sh b/catalog/scripts/cassandra/export-images.sh new file mode 100755 index 000000000..e42802932 --- /dev/null +++ b/catalog/scripts/cassandra/export-images.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/cassandra-exporter:2.3.8 images/appscode-images-cassandra-exporter-2.3.8.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/cassandra:4.1.6 images/appscode-images-cassandra-4.1.6.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/cassandra:5.0.0 images/appscode-images-cassandra-5.0.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/cassandra-init:4.1.6 images/kubedb-cassandra-init-4.1.6.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/cassandra-init:5.0.0 images/kubedb-cassandra-init-5.0.0.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/cassandraversions.yaml b/catalog/scripts/cassandra/imagelist.yaml similarity index 100% rename from catalog/scripts/cassandraversions.yaml rename to catalog/scripts/cassandra/imagelist.yaml diff --git a/catalog/scripts/cassandra/import-images.sh b/catalog/scripts/cassandra/import-images.sh new file mode 100755 index 000000000..9b84a85c1 --- /dev/null +++ b/catalog/scripts/cassandra/import-images.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-cassandra-exporter-2.3.8.tar $IMAGE_REGISTRY/appscode-images/cassandra-exporter:2.3.8 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-cassandra-4.1.6.tar $IMAGE_REGISTRY/appscode-images/cassandra:4.1.6 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-cassandra-5.0.0.tar $IMAGE_REGISTRY/appscode-images/cassandra:5.0.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-cassandra-init-4.1.6.tar $IMAGE_REGISTRY/kubedb/cassandra-init:4.1.6 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-cassandra-init-5.0.0.tar $IMAGE_REGISTRY/kubedb/cassandra-init:5.0.0 diff --git a/catalog/scripts/cassandra/import-into-k3s.sh b/catalog/scripts/cassandra/import-into-k3s.sh new file mode 100755 index 000000000..edd607b11 --- /dev/null +++ b/catalog/scripts/cassandra/import-into-k3s.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-cassandra-exporter-2.3.8.tar +k3s ctr images import images/appscode-images-cassandra-4.1.6.tar +k3s ctr images import images/appscode-images-cassandra-5.0.0.tar +k3s ctr images import images/kubedb-cassandra-init-4.1.6.tar +k3s ctr images import images/kubedb-cassandra-init-5.0.0.tar diff --git a/catalog/scripts/clickhouse/copy-images.sh b/catalog/scripts/clickhouse/copy-images.sh new file mode 100755 index 000000000..8f317f063 --- /dev/null +++ b/catalog/scripts/clickhouse/copy-images.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure clickhouse/clickhouse-keeper:24.4.1 $IMAGE_REGISTRY/clickhouse/clickhouse-keeper:24.4.1 +$CMD cp --allow-nondistributable-artifacts --insecure clickhouse/clickhouse-server:24.4.1 $IMAGE_REGISTRY/clickhouse/clickhouse-server:24.4.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/clickhouse-init:24.4.1 $IMAGE_REGISTRY/kubedb/clickhouse-init:24.4.1 diff --git a/catalog/scripts/clickhouse/export-images.sh b/catalog/scripts/clickhouse/export-images.sh new file mode 100755 index 000000000..6fc0a40f7 --- /dev/null +++ b/catalog/scripts/clickhouse/export-images.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure clickhouse/clickhouse-keeper:24.4.1 images/clickhouse-clickhouse-keeper-24.4.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure clickhouse/clickhouse-server:24.4.1 images/clickhouse-clickhouse-server-24.4.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/clickhouse-init:24.4.1 images/kubedb-clickhouse-init-24.4.1.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/clickhouseversions.yaml b/catalog/scripts/clickhouse/imagelist.yaml similarity index 100% rename from catalog/scripts/clickhouseversions.yaml rename to catalog/scripts/clickhouse/imagelist.yaml diff --git a/catalog/scripts/clickhouse/import-images.sh b/catalog/scripts/clickhouse/import-images.sh new file mode 100755 index 000000000..7fda614fa --- /dev/null +++ b/catalog/scripts/clickhouse/import-images.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/clickhouse-clickhouse-keeper-24.4.1.tar $IMAGE_REGISTRY/clickhouse/clickhouse-keeper:24.4.1 +$CMD push --allow-nondistributable-artifacts --insecure images/clickhouse-clickhouse-server-24.4.1.tar $IMAGE_REGISTRY/clickhouse/clickhouse-server:24.4.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-clickhouse-init-24.4.1.tar $IMAGE_REGISTRY/kubedb/clickhouse-init:24.4.1 diff --git a/catalog/scripts/clickhouse/import-into-k3s.sh b/catalog/scripts/clickhouse/import-into-k3s.sh new file mode 100755 index 000000000..af26054a5 --- /dev/null +++ b/catalog/scripts/clickhouse/import-into-k3s.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/clickhouse-clickhouse-keeper-24.4.1.tar +k3s ctr images import images/clickhouse-clickhouse-server-24.4.1.tar +k3s ctr images import images/kubedb-clickhouse-init-24.4.1.tar diff --git a/catalog/scripts/druid/copy-images.sh b/catalog/scripts/druid/copy-images.sh new file mode 100755 index 000000000..9dda47fb2 --- /dev/null +++ b/catalog/scripts/druid/copy-images.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/druid:28.0.1 $IMAGE_REGISTRY/appscode-images/druid:28.0.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/druid:30.0.1 $IMAGE_REGISTRY/appscode-images/druid:30.0.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/druid-init:28.0.1 $IMAGE_REGISTRY/kubedb/druid-init:28.0.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/druid-init:30.0.1 $IMAGE_REGISTRY/kubedb/druid-init:30.0.1 diff --git a/catalog/scripts/druid/export-images.sh b/catalog/scripts/druid/export-images.sh new file mode 100755 index 000000000..a5e86f5b3 --- /dev/null +++ b/catalog/scripts/druid/export-images.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/druid:28.0.1 images/appscode-images-druid-28.0.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/druid:30.0.1 images/appscode-images-druid-30.0.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/druid-init:28.0.1 images/kubedb-druid-init-28.0.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/druid-init:30.0.1 images/kubedb-druid-init-30.0.1.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/druidversions.yaml b/catalog/scripts/druid/imagelist.yaml similarity index 100% rename from catalog/scripts/druidversions.yaml rename to catalog/scripts/druid/imagelist.yaml diff --git a/catalog/scripts/druid/import-images.sh b/catalog/scripts/druid/import-images.sh new file mode 100755 index 000000000..19819d3a8 --- /dev/null +++ b/catalog/scripts/druid/import-images.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-druid-28.0.1.tar $IMAGE_REGISTRY/appscode-images/druid:28.0.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-druid-30.0.1.tar $IMAGE_REGISTRY/appscode-images/druid:30.0.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-druid-init-28.0.1.tar $IMAGE_REGISTRY/kubedb/druid-init:28.0.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-druid-init-30.0.1.tar $IMAGE_REGISTRY/kubedb/druid-init:30.0.1 diff --git a/catalog/scripts/druid/import-into-k3s.sh b/catalog/scripts/druid/import-into-k3s.sh new file mode 100755 index 000000000..f3604c384 --- /dev/null +++ b/catalog/scripts/druid/import-into-k3s.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-druid-28.0.1.tar +k3s ctr images import images/appscode-images-druid-30.0.1.tar +k3s ctr images import images/kubedb-druid-init-28.0.1.tar +k3s ctr images import images/kubedb-druid-init-30.0.1.tar diff --git a/catalog/scripts/elasticsearch/copy-images.sh b/catalog/scripts/elasticsearch/copy-images.sh new file mode 100755 index 000000000..eeaf45930 --- /dev/null +++ b/catalog/scripts/elasticsearch/copy-images.sh @@ -0,0 +1,91 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure floragunncom/sg-elasticsearch:7.9.3-oss-47.1.0 $IMAGE_REGISTRY/floragunncom/sg-elasticsearch:7.9.3-oss-47.1.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:6.8.23 $IMAGE_REGISTRY/appscode-images/elastic:6.8.23 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.13.4 $IMAGE_REGISTRY/appscode-images/elastic:7.13.4 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.14.2 $IMAGE_REGISTRY/appscode-images/elastic:7.14.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.16.3 $IMAGE_REGISTRY/appscode-images/elastic:7.16.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.17.15 $IMAGE_REGISTRY/appscode-images/elastic:7.17.15 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.17.23 $IMAGE_REGISTRY/appscode-images/elastic:7.17.23 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.11.1 $IMAGE_REGISTRY/appscode-images/elastic:8.11.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.11.4 $IMAGE_REGISTRY/appscode-images/elastic:8.11.4 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.13.4 $IMAGE_REGISTRY/appscode-images/elastic:8.13.4 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.14.1 $IMAGE_REGISTRY/appscode-images/elastic:8.14.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.14.3 $IMAGE_REGISTRY/appscode-images/elastic:8.14.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.15.0 $IMAGE_REGISTRY/appscode-images/elastic:8.15.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.2.3 $IMAGE_REGISTRY/appscode-images/elastic:8.2.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.5.3 $IMAGE_REGISTRY/appscode-images/elastic:8.5.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.6.2 $IMAGE_REGISTRY/appscode-images/elastic:8.6.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.8.2 $IMAGE_REGISTRY/appscode-images/elastic:8.8.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:6.8.23 $IMAGE_REGISTRY/appscode-images/kibana:6.8.23 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.13.4 $IMAGE_REGISTRY/appscode-images/kibana:7.13.4 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.14.2 $IMAGE_REGISTRY/appscode-images/kibana:7.14.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.16.3 $IMAGE_REGISTRY/appscode-images/kibana:7.16.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.17.15 $IMAGE_REGISTRY/appscode-images/kibana:7.17.15 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.17.23 $IMAGE_REGISTRY/appscode-images/kibana:7.17.23 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.11.1 $IMAGE_REGISTRY/appscode-images/kibana:8.11.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.11.4 $IMAGE_REGISTRY/appscode-images/kibana:8.11.4 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.13.4 $IMAGE_REGISTRY/appscode-images/kibana:8.13.4 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.14.1 $IMAGE_REGISTRY/appscode-images/kibana:8.14.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.14.3 $IMAGE_REGISTRY/appscode-images/kibana:8.14.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.15.0 $IMAGE_REGISTRY/appscode-images/kibana:8.15.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.2.3 $IMAGE_REGISTRY/appscode-images/kibana:8.2.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.5.3 $IMAGE_REGISTRY/appscode-images/kibana:8.5.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.6.2 $IMAGE_REGISTRY/appscode-images/kibana:8.6.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.8.2 $IMAGE_REGISTRY/appscode-images/kibana:8.8.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:1.1.0 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:1.1.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:1.2.0 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:1.2.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:1.3.13 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:1.3.13 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:1.3.18 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:1.3.18 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.0.1 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.0.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.11.1 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.11.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.14.0 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.14.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.16.0 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.16.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.5.0 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.5.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.8.0 $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.8.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:1.1.0 $IMAGE_REGISTRY/appscode-images/opensearch:1.1.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:1.2.4 $IMAGE_REGISTRY/appscode-images/opensearch:1.2.4 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:1.3.13 $IMAGE_REGISTRY/appscode-images/opensearch:1.3.13 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:1.3.18 $IMAGE_REGISTRY/appscode-images/opensearch:1.3.18 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.0.1 $IMAGE_REGISTRY/appscode-images/opensearch:2.0.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.11.1 $IMAGE_REGISTRY/appscode-images/opensearch:2.11.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.14.0 $IMAGE_REGISTRY/appscode-images/opensearch:2.14.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.16.0 $IMAGE_REGISTRY/appscode-images/opensearch:2.16.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.5.0 $IMAGE_REGISTRY/appscode-images/opensearch:2.5.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.8.0 $IMAGE_REGISTRY/appscode-images/opensearch:2.8.0 +$CMD cp --allow-nondistributable-artifacts --insecure prometheuscommunity/elasticsearch-exporter:v1.7.0 $IMAGE_REGISTRY/prometheuscommunity/elasticsearch-exporter:v1.7.0 diff --git a/catalog/scripts/elasticsearch/export-images.sh b/catalog/scripts/elasticsearch/export-images.sh new file mode 100755 index 000000000..fe01e946a --- /dev/null +++ b/catalog/scripts/elasticsearch/export-images.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure floragunncom/sg-elasticsearch:7.9.3-oss-47.1.0 images/floragunncom-sg-elasticsearch-7.9.3-oss-47.1.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:6.8.23 images/appscode-images-elastic-6.8.23.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.13.4 images/appscode-images-elastic-7.13.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.14.2 images/appscode-images-elastic-7.14.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.16.3 images/appscode-images-elastic-7.16.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.17.15 images/appscode-images-elastic-7.17.15.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:7.17.23 images/appscode-images-elastic-7.17.23.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.11.1 images/appscode-images-elastic-8.11.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.11.4 images/appscode-images-elastic-8.11.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.13.4 images/appscode-images-elastic-8.13.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.14.1 images/appscode-images-elastic-8.14.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.14.3 images/appscode-images-elastic-8.14.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.15.0 images/appscode-images-elastic-8.15.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.2.3 images/appscode-images-elastic-8.2.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.5.3 images/appscode-images-elastic-8.5.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.6.2 images/appscode-images-elastic-8.6.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/elastic:8.8.2 images/appscode-images-elastic-8.8.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:6.8.23 images/appscode-images-kibana-6.8.23.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.13.4 images/appscode-images-kibana-7.13.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.14.2 images/appscode-images-kibana-7.14.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.16.3 images/appscode-images-kibana-7.16.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.17.15 images/appscode-images-kibana-7.17.15.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:7.17.23 images/appscode-images-kibana-7.17.23.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.11.1 images/appscode-images-kibana-8.11.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.11.4 images/appscode-images-kibana-8.11.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.13.4 images/appscode-images-kibana-8.13.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.14.1 images/appscode-images-kibana-8.14.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.14.3 images/appscode-images-kibana-8.14.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.15.0 images/appscode-images-kibana-8.15.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.2.3 images/appscode-images-kibana-8.2.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.5.3 images/appscode-images-kibana-8.5.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.6.2 images/appscode-images-kibana-8.6.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kibana:8.8.2 images/appscode-images-kibana-8.8.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:1.1.0 images/appscode-images-opensearch-dashboards-1.1.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:1.2.0 images/appscode-images-opensearch-dashboards-1.2.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:1.3.13 images/appscode-images-opensearch-dashboards-1.3.13.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:1.3.18 images/appscode-images-opensearch-dashboards-1.3.18.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.0.1 images/appscode-images-opensearch-dashboards-2.0.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.11.1 images/appscode-images-opensearch-dashboards-2.11.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.14.0 images/appscode-images-opensearch-dashboards-2.14.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.16.0 images/appscode-images-opensearch-dashboards-2.16.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.5.0 images/appscode-images-opensearch-dashboards-2.5.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch-dashboards:2.8.0 images/appscode-images-opensearch-dashboards-2.8.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:1.1.0 images/appscode-images-opensearch-1.1.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:1.2.4 images/appscode-images-opensearch-1.2.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:1.3.13 images/appscode-images-opensearch-1.3.13.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:1.3.18 images/appscode-images-opensearch-1.3.18.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.0.1 images/appscode-images-opensearch-2.0.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.11.1 images/appscode-images-opensearch-2.11.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.14.0 images/appscode-images-opensearch-2.14.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.16.0 images/appscode-images-opensearch-2.16.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.5.0 images/appscode-images-opensearch-2.5.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/opensearch:2.8.0 images/appscode-images-opensearch-2.8.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure prometheuscommunity/elasticsearch-exporter:v1.7.0 images/prometheuscommunity-elasticsearch-exporter-v1.7.0.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/elasticsearchversions.yaml b/catalog/scripts/elasticsearch/imagelist.yaml similarity index 100% rename from catalog/scripts/elasticsearchversions.yaml rename to catalog/scripts/elasticsearch/imagelist.yaml diff --git a/catalog/scripts/elasticsearch/import-images.sh b/catalog/scripts/elasticsearch/import-images.sh new file mode 100755 index 000000000..87cd4b077 --- /dev/null +++ b/catalog/scripts/elasticsearch/import-images.sh @@ -0,0 +1,82 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/floragunncom-sg-elasticsearch-7.9.3-oss-47.1.0.tar $IMAGE_REGISTRY/floragunncom/sg-elasticsearch:7.9.3-oss-47.1.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-6.8.23.tar $IMAGE_REGISTRY/appscode-images/elastic:6.8.23 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-7.13.4.tar $IMAGE_REGISTRY/appscode-images/elastic:7.13.4 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-7.14.2.tar $IMAGE_REGISTRY/appscode-images/elastic:7.14.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-7.16.3.tar $IMAGE_REGISTRY/appscode-images/elastic:7.16.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-7.17.15.tar $IMAGE_REGISTRY/appscode-images/elastic:7.17.15 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-7.17.23.tar $IMAGE_REGISTRY/appscode-images/elastic:7.17.23 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.11.1.tar $IMAGE_REGISTRY/appscode-images/elastic:8.11.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.11.4.tar $IMAGE_REGISTRY/appscode-images/elastic:8.11.4 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.13.4.tar $IMAGE_REGISTRY/appscode-images/elastic:8.13.4 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.14.1.tar $IMAGE_REGISTRY/appscode-images/elastic:8.14.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.14.3.tar $IMAGE_REGISTRY/appscode-images/elastic:8.14.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.15.0.tar $IMAGE_REGISTRY/appscode-images/elastic:8.15.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.2.3.tar $IMAGE_REGISTRY/appscode-images/elastic:8.2.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.5.3.tar $IMAGE_REGISTRY/appscode-images/elastic:8.5.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.6.2.tar $IMAGE_REGISTRY/appscode-images/elastic:8.6.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-elastic-8.8.2.tar $IMAGE_REGISTRY/appscode-images/elastic:8.8.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-6.8.23.tar $IMAGE_REGISTRY/appscode-images/kibana:6.8.23 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-7.13.4.tar $IMAGE_REGISTRY/appscode-images/kibana:7.13.4 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-7.14.2.tar $IMAGE_REGISTRY/appscode-images/kibana:7.14.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-7.16.3.tar $IMAGE_REGISTRY/appscode-images/kibana:7.16.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-7.17.15.tar $IMAGE_REGISTRY/appscode-images/kibana:7.17.15 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-7.17.23.tar $IMAGE_REGISTRY/appscode-images/kibana:7.17.23 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.11.1.tar $IMAGE_REGISTRY/appscode-images/kibana:8.11.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.11.4.tar $IMAGE_REGISTRY/appscode-images/kibana:8.11.4 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.13.4.tar $IMAGE_REGISTRY/appscode-images/kibana:8.13.4 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.14.1.tar $IMAGE_REGISTRY/appscode-images/kibana:8.14.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.14.3.tar $IMAGE_REGISTRY/appscode-images/kibana:8.14.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.15.0.tar $IMAGE_REGISTRY/appscode-images/kibana:8.15.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.2.3.tar $IMAGE_REGISTRY/appscode-images/kibana:8.2.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.5.3.tar $IMAGE_REGISTRY/appscode-images/kibana:8.5.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.6.2.tar $IMAGE_REGISTRY/appscode-images/kibana:8.6.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kibana-8.8.2.tar $IMAGE_REGISTRY/appscode-images/kibana:8.8.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-1.1.0.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:1.1.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-1.2.0.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:1.2.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-1.3.13.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:1.3.13 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-1.3.18.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:1.3.18 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-2.0.1.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.0.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-2.11.1.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.11.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-2.14.0.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.14.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-2.16.0.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.16.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-2.5.0.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.5.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-dashboards-2.8.0.tar $IMAGE_REGISTRY/appscode-images/opensearch-dashboards:2.8.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-1.1.0.tar $IMAGE_REGISTRY/appscode-images/opensearch:1.1.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-1.2.4.tar $IMAGE_REGISTRY/appscode-images/opensearch:1.2.4 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-1.3.13.tar $IMAGE_REGISTRY/appscode-images/opensearch:1.3.13 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-1.3.18.tar $IMAGE_REGISTRY/appscode-images/opensearch:1.3.18 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-2.0.1.tar $IMAGE_REGISTRY/appscode-images/opensearch:2.0.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-2.11.1.tar $IMAGE_REGISTRY/appscode-images/opensearch:2.11.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-2.14.0.tar $IMAGE_REGISTRY/appscode-images/opensearch:2.14.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-2.16.0.tar $IMAGE_REGISTRY/appscode-images/opensearch:2.16.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-2.5.0.tar $IMAGE_REGISTRY/appscode-images/opensearch:2.5.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-opensearch-2.8.0.tar $IMAGE_REGISTRY/appscode-images/opensearch:2.8.0 +$CMD push --allow-nondistributable-artifacts --insecure images/prometheuscommunity-elasticsearch-exporter-v1.7.0.tar $IMAGE_REGISTRY/prometheuscommunity/elasticsearch-exporter:v1.7.0 diff --git a/catalog/scripts/elasticsearch/import-into-k3s.sh b/catalog/scripts/elasticsearch/import-into-k3s.sh new file mode 100755 index 000000000..781d192d8 --- /dev/null +++ b/catalog/scripts/elasticsearch/import-into-k3s.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/floragunncom-sg-elasticsearch-7.9.3-oss-47.1.0.tar +k3s ctr images import images/appscode-images-elastic-6.8.23.tar +k3s ctr images import images/appscode-images-elastic-7.13.4.tar +k3s ctr images import images/appscode-images-elastic-7.14.2.tar +k3s ctr images import images/appscode-images-elastic-7.16.3.tar +k3s ctr images import images/appscode-images-elastic-7.17.15.tar +k3s ctr images import images/appscode-images-elastic-7.17.23.tar +k3s ctr images import images/appscode-images-elastic-8.11.1.tar +k3s ctr images import images/appscode-images-elastic-8.11.4.tar +k3s ctr images import images/appscode-images-elastic-8.13.4.tar +k3s ctr images import images/appscode-images-elastic-8.14.1.tar +k3s ctr images import images/appscode-images-elastic-8.14.3.tar +k3s ctr images import images/appscode-images-elastic-8.15.0.tar +k3s ctr images import images/appscode-images-elastic-8.2.3.tar +k3s ctr images import images/appscode-images-elastic-8.5.3.tar +k3s ctr images import images/appscode-images-elastic-8.6.2.tar +k3s ctr images import images/appscode-images-elastic-8.8.2.tar +k3s ctr images import images/appscode-images-kibana-6.8.23.tar +k3s ctr images import images/appscode-images-kibana-7.13.4.tar +k3s ctr images import images/appscode-images-kibana-7.14.2.tar +k3s ctr images import images/appscode-images-kibana-7.16.3.tar +k3s ctr images import images/appscode-images-kibana-7.17.15.tar +k3s ctr images import images/appscode-images-kibana-7.17.23.tar +k3s ctr images import images/appscode-images-kibana-8.11.1.tar +k3s ctr images import images/appscode-images-kibana-8.11.4.tar +k3s ctr images import images/appscode-images-kibana-8.13.4.tar +k3s ctr images import images/appscode-images-kibana-8.14.1.tar +k3s ctr images import images/appscode-images-kibana-8.14.3.tar +k3s ctr images import images/appscode-images-kibana-8.15.0.tar +k3s ctr images import images/appscode-images-kibana-8.2.3.tar +k3s ctr images import images/appscode-images-kibana-8.5.3.tar +k3s ctr images import images/appscode-images-kibana-8.6.2.tar +k3s ctr images import images/appscode-images-kibana-8.8.2.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-1.1.0.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-1.2.0.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-1.3.13.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-1.3.18.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-2.0.1.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-2.11.1.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-2.14.0.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-2.16.0.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-2.5.0.tar +k3s ctr images import images/appscode-images-opensearch-dashboards-2.8.0.tar +k3s ctr images import images/appscode-images-opensearch-1.1.0.tar +k3s ctr images import images/appscode-images-opensearch-1.2.4.tar +k3s ctr images import images/appscode-images-opensearch-1.3.13.tar +k3s ctr images import images/appscode-images-opensearch-1.3.18.tar +k3s ctr images import images/appscode-images-opensearch-2.0.1.tar +k3s ctr images import images/appscode-images-opensearch-2.11.1.tar +k3s ctr images import images/appscode-images-opensearch-2.14.0.tar +k3s ctr images import images/appscode-images-opensearch-2.16.0.tar +k3s ctr images import images/appscode-images-opensearch-2.5.0.tar +k3s ctr images import images/appscode-images-opensearch-2.8.0.tar +k3s ctr images import images/prometheuscommunity-elasticsearch-exporter-v1.7.0.tar diff --git a/catalog/scripts/ferretdb/copy-images.sh b/catalog/scripts/ferretdb/copy-images.sh new file mode 100755 index 000000000..de503fb88 --- /dev/null +++ b/catalog/scripts/ferretdb/copy-images.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/ferretdb:1.18.0 $IMAGE_REGISTRY/appscode-images/ferretdb:1.18.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/ferretdb:1.23.0 $IMAGE_REGISTRY/appscode-images/ferretdb:1.23.0 diff --git a/catalog/scripts/ferretdb/export-images.sh b/catalog/scripts/ferretdb/export-images.sh new file mode 100755 index 000000000..4741ba395 --- /dev/null +++ b/catalog/scripts/ferretdb/export-images.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/ferretdb:1.18.0 images/appscode-images-ferretdb-1.18.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/ferretdb:1.23.0 images/appscode-images-ferretdb-1.23.0.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/ferretdbversions.yaml b/catalog/scripts/ferretdb/imagelist.yaml similarity index 100% rename from catalog/scripts/ferretdbversions.yaml rename to catalog/scripts/ferretdb/imagelist.yaml diff --git a/catalog/scripts/ferretdb/import-images.sh b/catalog/scripts/ferretdb/import-images.sh new file mode 100755 index 000000000..661608f82 --- /dev/null +++ b/catalog/scripts/ferretdb/import-images.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-ferretdb-1.18.0.tar $IMAGE_REGISTRY/appscode-images/ferretdb:1.18.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-ferretdb-1.23.0.tar $IMAGE_REGISTRY/appscode-images/ferretdb:1.23.0 diff --git a/catalog/scripts/ferretdb/import-into-k3s.sh b/catalog/scripts/ferretdb/import-into-k3s.sh new file mode 100755 index 000000000..9dc960ee9 --- /dev/null +++ b/catalog/scripts/ferretdb/import-into-k3s.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-ferretdb-1.18.0.tar +k3s ctr images import images/appscode-images-ferretdb-1.23.0.tar diff --git a/catalog/scripts/kafka/copy-images.sh b/catalog/scripts/kafka/copy-images.sh new file mode 100755 index 000000000..14d0694c6 --- /dev/null +++ b/catalog/scripts/kafka/copy-images.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.3.2 $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.3.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.4.1 $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.4.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.5.1 $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.5.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.5.2 $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.5.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.6.0 $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.6.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.6.1 $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.6.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.3.2 $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.3.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.4.1 $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.4.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.5.1 $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.5.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.5.2 $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.5.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.6.0 $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.6.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.6.1 $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.6.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.3.2 $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.3.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.4.1 $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.4.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.5.1 $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.5.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.5.2 $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.5.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.6.0 $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.6.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.6.1 $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.6.1 diff --git a/catalog/scripts/kafka/export-images.sh b/catalog/scripts/kafka/export-images.sh new file mode 100755 index 000000000..fbb9621cd --- /dev/null +++ b/catalog/scripts/kafka/export-images.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.3.2 images/appscode-images-kafka-connect-cluster-3.3.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.4.1 images/appscode-images-kafka-connect-cluster-3.4.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.5.1 images/appscode-images-kafka-connect-cluster-3.5.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.5.2 images/appscode-images-kafka-connect-cluster-3.5.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.6.0 images/appscode-images-kafka-connect-cluster-3.6.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connect-cluster:3.6.1 images/appscode-images-kafka-connect-cluster-3.6.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.3.2 images/appscode-images-kafka-cruise-control-3.3.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.4.1 images/appscode-images-kafka-cruise-control-3.4.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.5.1 images/appscode-images-kafka-cruise-control-3.5.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.5.2 images/appscode-images-kafka-cruise-control-3.5.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.6.0 images/appscode-images-kafka-cruise-control-3.6.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-cruise-control:3.6.1 images/appscode-images-kafka-cruise-control-3.6.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.3.2 images/appscode-images-kafka-kraft-3.3.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.4.1 images/appscode-images-kafka-kraft-3.4.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.5.1 images/appscode-images-kafka-kraft-3.5.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.5.2 images/appscode-images-kafka-kraft-3.5.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.6.0 images/appscode-images-kafka-kraft-3.6.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-kraft:3.6.1 images/appscode-images-kafka-kraft-3.6.1.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/kafkaversions.yaml b/catalog/scripts/kafka/imagelist.yaml similarity index 100% rename from catalog/scripts/kafkaversions.yaml rename to catalog/scripts/kafka/imagelist.yaml diff --git a/catalog/scripts/kafka/import-images.sh b/catalog/scripts/kafka/import-images.sh new file mode 100755 index 000000000..03d7711e1 --- /dev/null +++ b/catalog/scripts/kafka/import-images.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connect-cluster-3.3.2.tar $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.3.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connect-cluster-3.4.1.tar $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.4.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connect-cluster-3.5.1.tar $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.5.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connect-cluster-3.5.2.tar $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.5.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connect-cluster-3.6.0.tar $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.6.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connect-cluster-3.6.1.tar $IMAGE_REGISTRY/appscode-images/kafka-connect-cluster:3.6.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-cruise-control-3.3.2.tar $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.3.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-cruise-control-3.4.1.tar $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.4.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-cruise-control-3.5.1.tar $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.5.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-cruise-control-3.5.2.tar $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.5.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-cruise-control-3.6.0.tar $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.6.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-cruise-control-3.6.1.tar $IMAGE_REGISTRY/appscode-images/kafka-cruise-control:3.6.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-kraft-3.3.2.tar $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.3.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-kraft-3.4.1.tar $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.4.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-kraft-3.5.1.tar $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.5.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-kraft-3.5.2.tar $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.5.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-kraft-3.6.0.tar $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.6.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-kraft-3.6.1.tar $IMAGE_REGISTRY/appscode-images/kafka-kraft:3.6.1 diff --git a/catalog/scripts/kafka/import-into-k3s.sh b/catalog/scripts/kafka/import-into-k3s.sh new file mode 100755 index 000000000..f9feb7c14 --- /dev/null +++ b/catalog/scripts/kafka/import-into-k3s.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-kafka-connect-cluster-3.3.2.tar +k3s ctr images import images/appscode-images-kafka-connect-cluster-3.4.1.tar +k3s ctr images import images/appscode-images-kafka-connect-cluster-3.5.1.tar +k3s ctr images import images/appscode-images-kafka-connect-cluster-3.5.2.tar +k3s ctr images import images/appscode-images-kafka-connect-cluster-3.6.0.tar +k3s ctr images import images/appscode-images-kafka-connect-cluster-3.6.1.tar +k3s ctr images import images/appscode-images-kafka-cruise-control-3.3.2.tar +k3s ctr images import images/appscode-images-kafka-cruise-control-3.4.1.tar +k3s ctr images import images/appscode-images-kafka-cruise-control-3.5.1.tar +k3s ctr images import images/appscode-images-kafka-cruise-control-3.5.2.tar +k3s ctr images import images/appscode-images-kafka-cruise-control-3.6.0.tar +k3s ctr images import images/appscode-images-kafka-cruise-control-3.6.1.tar +k3s ctr images import images/appscode-images-kafka-kraft-3.3.2.tar +k3s ctr images import images/appscode-images-kafka-kraft-3.4.1.tar +k3s ctr images import images/appscode-images-kafka-kraft-3.5.1.tar +k3s ctr images import images/appscode-images-kafka-kraft-3.5.2.tar +k3s ctr images import images/appscode-images-kafka-kraft-3.6.0.tar +k3s ctr images import images/appscode-images-kafka-kraft-3.6.1.tar diff --git a/catalog/scripts/kafkaconnector/copy-images.sh b/catalog/scripts/kafkaconnector/copy-images.sh new file mode 100755 index 000000000..05b871f0e --- /dev/null +++ b/catalog/scripts/kafkaconnector/copy-images.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-gcs:0.13.0 $IMAGE_REGISTRY/appscode-images/kafka-connector-gcs:0.13.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-jdbc:2.6.1.final $IMAGE_REGISTRY/appscode-images/kafka-connector-jdbc:2.6.1.final +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-mongodb:1.11.0 $IMAGE_REGISTRY/appscode-images/kafka-connector-mongodb:1.11.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-mysql:2.4.2.final $IMAGE_REGISTRY/appscode-images/kafka-connector-mysql:2.4.2.final +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-postgres:2.4.2.final $IMAGE_REGISTRY/appscode-images/kafka-connector-postgres:2.4.2.final +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-s3:2.15.0 $IMAGE_REGISTRY/appscode-images/kafka-connector-s3:2.15.0 diff --git a/catalog/scripts/kafkaconnector/export-images.sh b/catalog/scripts/kafkaconnector/export-images.sh new file mode 100755 index 000000000..1d4721f2d --- /dev/null +++ b/catalog/scripts/kafkaconnector/export-images.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-gcs:0.13.0 images/appscode-images-kafka-connector-gcs-0.13.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-jdbc:2.6.1.final images/appscode-images-kafka-connector-jdbc-2.6.1.final.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-mongodb:1.11.0 images/appscode-images-kafka-connector-mongodb-1.11.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-mysql:2.4.2.final images/appscode-images-kafka-connector-mysql-2.4.2.final.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-postgres:2.4.2.final images/appscode-images-kafka-connector-postgres-2.4.2.final.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/kafka-connector-s3:2.15.0 images/appscode-images-kafka-connector-s3-2.15.0.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/kafkaconnectorversions.yaml b/catalog/scripts/kafkaconnector/imagelist.yaml similarity index 100% rename from catalog/scripts/kafkaconnectorversions.yaml rename to catalog/scripts/kafkaconnector/imagelist.yaml diff --git a/catalog/scripts/kafkaconnector/import-images.sh b/catalog/scripts/kafkaconnector/import-images.sh new file mode 100755 index 000000000..6ad30d2e8 --- /dev/null +++ b/catalog/scripts/kafkaconnector/import-images.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connector-gcs-0.13.0.tar $IMAGE_REGISTRY/appscode-images/kafka-connector-gcs:0.13.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connector-jdbc-2.6.1.final.tar $IMAGE_REGISTRY/appscode-images/kafka-connector-jdbc:2.6.1.final +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connector-mongodb-1.11.0.tar $IMAGE_REGISTRY/appscode-images/kafka-connector-mongodb:1.11.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connector-mysql-2.4.2.final.tar $IMAGE_REGISTRY/appscode-images/kafka-connector-mysql:2.4.2.final +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connector-postgres-2.4.2.final.tar $IMAGE_REGISTRY/appscode-images/kafka-connector-postgres:2.4.2.final +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-kafka-connector-s3-2.15.0.tar $IMAGE_REGISTRY/appscode-images/kafka-connector-s3:2.15.0 diff --git a/catalog/scripts/kafkaconnector/import-into-k3s.sh b/catalog/scripts/kafkaconnector/import-into-k3s.sh new file mode 100755 index 000000000..5f2f8fdcb --- /dev/null +++ b/catalog/scripts/kafkaconnector/import-into-k3s.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-kafka-connector-gcs-0.13.0.tar +k3s ctr images import images/appscode-images-kafka-connector-jdbc-2.6.1.final.tar +k3s ctr images import images/appscode-images-kafka-connector-mongodb-1.11.0.tar +k3s ctr images import images/appscode-images-kafka-connector-mysql-2.4.2.final.tar +k3s ctr images import images/appscode-images-kafka-connector-postgres-2.4.2.final.tar +k3s ctr images import images/appscode-images-kafka-connector-s3-2.15.0.tar diff --git a/catalog/scripts/mariadb/copy-images.sh b/catalog/scripts/mariadb/copy-images.sh new file mode 100755 index 000000000..470447431 --- /dev/null +++ b/catalog/scripts/mariadb/copy-images.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.10.7-jammy $IMAGE_REGISTRY/appscode-images/mariadb:10.10.7-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.11.6-jammy $IMAGE_REGISTRY/appscode-images/mariadb:10.11.6-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.4.32-focal $IMAGE_REGISTRY/appscode-images/mariadb:10.4.32-focal +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.5.23-focal $IMAGE_REGISTRY/appscode-images/mariadb:10.5.23-focal +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.6.16-focal $IMAGE_REGISTRY/appscode-images/mariadb:10.6.16-focal +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.0.4-jammy $IMAGE_REGISTRY/appscode-images/mariadb:11.0.4-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.1.3-jammy $IMAGE_REGISTRY/appscode-images/mariadb:11.1.3-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.2.2-jammy $IMAGE_REGISTRY/appscode-images/mariadb:11.2.2-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.3.2-jammy $IMAGE_REGISTRY/appscode-images/mariadb:11.3.2-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.4.3-noble $IMAGE_REGISTRY/appscode-images/mariadb:11.4.3-noble +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.5.2-noble $IMAGE_REGISTRY/appscode-images/mariadb:11.5.2-noble +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.10.7-jammy $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.10.7-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.11.6-jammy $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.11.6-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.4.32-focal $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.4.32-focal +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.5.23-focal $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.5.23-focal +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.6.16-focal $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.6.16-focal +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_11.0.4-jammy $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_11.0.4-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_11.1.3-jammy $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_11.1.3-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_11.2.2-jammy $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_11.2.2-jammy +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-coordinator:v0.29.0 $IMAGE_REGISTRY/kubedb/mariadb-coordinator:v0.29.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-init:0.5.2 $IMAGE_REGISTRY/kubedb/mariadb-init:0.5.2 diff --git a/catalog/scripts/mariadb/export-images.sh b/catalog/scripts/mariadb/export-images.sh new file mode 100755 index 000000000..c1c85047e --- /dev/null +++ b/catalog/scripts/mariadb/export-images.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.10.7-jammy images/appscode-images-mariadb-10.10.7-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.11.6-jammy images/appscode-images-mariadb-10.11.6-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.4.32-focal images/appscode-images-mariadb-10.4.32-focal.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.5.23-focal images/appscode-images-mariadb-10.5.23-focal.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:10.6.16-focal images/appscode-images-mariadb-10.6.16-focal.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.0.4-jammy images/appscode-images-mariadb-11.0.4-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.1.3-jammy images/appscode-images-mariadb-11.1.3-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.2.2-jammy images/appscode-images-mariadb-11.2.2-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.3.2-jammy images/appscode-images-mariadb-11.3.2-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.4.3-noble images/appscode-images-mariadb-11.4.3-noble.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mariadb:11.5.2-noble images/appscode-images-mariadb-11.5.2-noble.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.10.7-jammy images/kubedb-mariadb-archiver-v0.9.0_10.10.7-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.11.6-jammy images/kubedb-mariadb-archiver-v0.9.0_10.11.6-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.4.32-focal images/kubedb-mariadb-archiver-v0.9.0_10.4.32-focal.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.5.23-focal images/kubedb-mariadb-archiver-v0.9.0_10.5.23-focal.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_10.6.16-focal images/kubedb-mariadb-archiver-v0.9.0_10.6.16-focal.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_11.0.4-jammy images/kubedb-mariadb-archiver-v0.9.0_11.0.4-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_11.1.3-jammy images/kubedb-mariadb-archiver-v0.9.0_11.1.3-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-archiver:v0.9.0_11.2.2-jammy images/kubedb-mariadb-archiver-v0.9.0_11.2.2-jammy.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-coordinator:v0.29.0 images/kubedb-mariadb-coordinator-v0.29.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-init:0.5.2 images/kubedb-mariadb-init-0.5.2.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/mariadbversions.yaml b/catalog/scripts/mariadb/imagelist.yaml similarity index 100% rename from catalog/scripts/mariadbversions.yaml rename to catalog/scripts/mariadb/imagelist.yaml diff --git a/catalog/scripts/mariadb/import-images.sh b/catalog/scripts/mariadb/import-images.sh new file mode 100755 index 000000000..3d253334a --- /dev/null +++ b/catalog/scripts/mariadb/import-images.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-10.10.7-jammy.tar $IMAGE_REGISTRY/appscode-images/mariadb:10.10.7-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-10.11.6-jammy.tar $IMAGE_REGISTRY/appscode-images/mariadb:10.11.6-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-10.4.32-focal.tar $IMAGE_REGISTRY/appscode-images/mariadb:10.4.32-focal +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-10.5.23-focal.tar $IMAGE_REGISTRY/appscode-images/mariadb:10.5.23-focal +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-10.6.16-focal.tar $IMAGE_REGISTRY/appscode-images/mariadb:10.6.16-focal +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-11.0.4-jammy.tar $IMAGE_REGISTRY/appscode-images/mariadb:11.0.4-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-11.1.3-jammy.tar $IMAGE_REGISTRY/appscode-images/mariadb:11.1.3-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-11.2.2-jammy.tar $IMAGE_REGISTRY/appscode-images/mariadb:11.2.2-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-11.3.2-jammy.tar $IMAGE_REGISTRY/appscode-images/mariadb:11.3.2-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-11.4.3-noble.tar $IMAGE_REGISTRY/appscode-images/mariadb:11.4.3-noble +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mariadb-11.5.2-noble.tar $IMAGE_REGISTRY/appscode-images/mariadb:11.5.2-noble +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-archiver-v0.9.0_10.10.7-jammy.tar $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.10.7-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-archiver-v0.9.0_10.11.6-jammy.tar $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.11.6-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-archiver-v0.9.0_10.4.32-focal.tar $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.4.32-focal +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-archiver-v0.9.0_10.5.23-focal.tar $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.5.23-focal +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-archiver-v0.9.0_10.6.16-focal.tar $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_10.6.16-focal +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-archiver-v0.9.0_11.0.4-jammy.tar $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_11.0.4-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-archiver-v0.9.0_11.1.3-jammy.tar $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_11.1.3-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-archiver-v0.9.0_11.2.2-jammy.tar $IMAGE_REGISTRY/kubedb/mariadb-archiver:v0.9.0_11.2.2-jammy +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-coordinator-v0.29.0.tar $IMAGE_REGISTRY/kubedb/mariadb-coordinator:v0.29.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-init-0.5.2.tar $IMAGE_REGISTRY/kubedb/mariadb-init:0.5.2 diff --git a/catalog/scripts/mariadb/import-into-k3s.sh b/catalog/scripts/mariadb/import-into-k3s.sh new file mode 100755 index 000000000..c9f9b2da6 --- /dev/null +++ b/catalog/scripts/mariadb/import-into-k3s.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-mariadb-10.10.7-jammy.tar +k3s ctr images import images/appscode-images-mariadb-10.11.6-jammy.tar +k3s ctr images import images/appscode-images-mariadb-10.4.32-focal.tar +k3s ctr images import images/appscode-images-mariadb-10.5.23-focal.tar +k3s ctr images import images/appscode-images-mariadb-10.6.16-focal.tar +k3s ctr images import images/appscode-images-mariadb-11.0.4-jammy.tar +k3s ctr images import images/appscode-images-mariadb-11.1.3-jammy.tar +k3s ctr images import images/appscode-images-mariadb-11.2.2-jammy.tar +k3s ctr images import images/appscode-images-mariadb-11.3.2-jammy.tar +k3s ctr images import images/appscode-images-mariadb-11.4.3-noble.tar +k3s ctr images import images/appscode-images-mariadb-11.5.2-noble.tar +k3s ctr images import images/kubedb-mariadb-archiver-v0.9.0_10.10.7-jammy.tar +k3s ctr images import images/kubedb-mariadb-archiver-v0.9.0_10.11.6-jammy.tar +k3s ctr images import images/kubedb-mariadb-archiver-v0.9.0_10.4.32-focal.tar +k3s ctr images import images/kubedb-mariadb-archiver-v0.9.0_10.5.23-focal.tar +k3s ctr images import images/kubedb-mariadb-archiver-v0.9.0_10.6.16-focal.tar +k3s ctr images import images/kubedb-mariadb-archiver-v0.9.0_11.0.4-jammy.tar +k3s ctr images import images/kubedb-mariadb-archiver-v0.9.0_11.1.3-jammy.tar +k3s ctr images import images/kubedb-mariadb-archiver-v0.9.0_11.2.2-jammy.tar +k3s ctr images import images/kubedb-mariadb-coordinator-v0.29.0.tar +k3s ctr images import images/kubedb-mariadb-init-0.5.2.tar diff --git a/catalog/scripts/memcached/copy-images.sh b/catalog/scripts/memcached/copy-images.sh new file mode 100755 index 000000000..3a8f6d685 --- /dev/null +++ b/catalog/scripts/memcached/copy-images.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/memcached:1.5.22-alpine $IMAGE_REGISTRY/appscode-images/memcached:1.5.22-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/memcached:1.6.22-alpine $IMAGE_REGISTRY/appscode-images/memcached:1.6.22-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/memcached:1.6.29-alpine $IMAGE_REGISTRY/appscode-images/memcached:1.6.29-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/memcached_exporter:v0.14.3-ac $IMAGE_REGISTRY/appscode-images/memcached_exporter:v0.14.3-ac +$CMD cp --allow-nondistributable-artifacts --insecure prom/memcached-exporter:v0.14.2 $IMAGE_REGISTRY/prom/memcached-exporter:v0.14.2 diff --git a/catalog/scripts/memcached/export-images.sh b/catalog/scripts/memcached/export-images.sh new file mode 100755 index 000000000..8d52cf216 --- /dev/null +++ b/catalog/scripts/memcached/export-images.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/memcached:1.5.22-alpine images/appscode-images-memcached-1.5.22-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/memcached:1.6.22-alpine images/appscode-images-memcached-1.6.22-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/memcached:1.6.29-alpine images/appscode-images-memcached-1.6.29-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/memcached_exporter:v0.14.3-ac images/appscode-images-memcached_exporter-v0.14.3-ac.tar +$CMD pull --allow-nondistributable-artifacts --insecure prom/memcached-exporter:v0.14.2 images/prom-memcached-exporter-v0.14.2.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/memcachedversions.yaml b/catalog/scripts/memcached/imagelist.yaml similarity index 100% rename from catalog/scripts/memcachedversions.yaml rename to catalog/scripts/memcached/imagelist.yaml diff --git a/catalog/scripts/memcached/import-images.sh b/catalog/scripts/memcached/import-images.sh new file mode 100755 index 000000000..f74d10695 --- /dev/null +++ b/catalog/scripts/memcached/import-images.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-memcached-1.5.22-alpine.tar $IMAGE_REGISTRY/appscode-images/memcached:1.5.22-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-memcached-1.6.22-alpine.tar $IMAGE_REGISTRY/appscode-images/memcached:1.6.22-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-memcached-1.6.29-alpine.tar $IMAGE_REGISTRY/appscode-images/memcached:1.6.29-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-memcached_exporter-v0.14.3-ac.tar $IMAGE_REGISTRY/appscode-images/memcached_exporter:v0.14.3-ac +$CMD push --allow-nondistributable-artifacts --insecure images/prom-memcached-exporter-v0.14.2.tar $IMAGE_REGISTRY/prom/memcached-exporter:v0.14.2 diff --git a/catalog/scripts/memcached/import-into-k3s.sh b/catalog/scripts/memcached/import-into-k3s.sh new file mode 100755 index 000000000..d67bc847a --- /dev/null +++ b/catalog/scripts/memcached/import-into-k3s.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-memcached-1.5.22-alpine.tar +k3s ctr images import images/appscode-images-memcached-1.6.22-alpine.tar +k3s ctr images import images/appscode-images-memcached-1.6.29-alpine.tar +k3s ctr images import images/appscode-images-memcached_exporter-v0.14.3-ac.tar +k3s ctr images import images/prom-memcached-exporter-v0.14.2.tar diff --git a/catalog/scripts/mongodb/copy-images.sh b/catalog/scripts/mongodb/copy-images.sh new file mode 100755 index 000000000..a5191db84 --- /dev/null +++ b/catalog/scripts/mongodb/copy-images.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:4.2.24 $IMAGE_REGISTRY/appscode-images/mongo:4.2.24 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:4.4.26 $IMAGE_REGISTRY/appscode-images/mongo:4.4.26 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:5.0.23 $IMAGE_REGISTRY/appscode-images/mongo:5.0.23 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:5.0.26 $IMAGE_REGISTRY/appscode-images/mongo:5.0.26 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:6.0.12 $IMAGE_REGISTRY/appscode-images/mongo:6.0.12 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:7.0.5 $IMAGE_REGISTRY/appscode-images/mongo:7.0.5 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:7.0.8 $IMAGE_REGISTRY/appscode-images/mongo:7.0.8 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:8.0.3 $IMAGE_REGISTRY/appscode-images/mongo:8.0.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mongodb-init:4.2-v9 $IMAGE_REGISTRY/kubedb/mongodb-init:4.2-v9 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mongodb-init:6.0-v10 $IMAGE_REGISTRY/kubedb/mongodb-init:6.0-v10 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mongodb_exporter:v0.40.0 $IMAGE_REGISTRY/kubedb/mongodb_exporter:v0.40.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/wal-g:v2024.5.24_mongo $IMAGE_REGISTRY/kubedb/wal-g:v2024.5.24_mongo +$CMD cp --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:4.2.24 $IMAGE_REGISTRY/percona/percona-server-mongodb:4.2.24 +$CMD cp --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:4.4.26 $IMAGE_REGISTRY/percona/percona-server-mongodb:4.4.26 +$CMD cp --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:5.0.23 $IMAGE_REGISTRY/percona/percona-server-mongodb:5.0.23 +$CMD cp --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:6.0.12 $IMAGE_REGISTRY/percona/percona-server-mongodb:6.0.12 +$CMD cp --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:7.0.4 $IMAGE_REGISTRY/percona/percona-server-mongodb:7.0.4 diff --git a/catalog/scripts/mongodb/export-images.sh b/catalog/scripts/mongodb/export-images.sh new file mode 100755 index 000000000..b4a16ab00 --- /dev/null +++ b/catalog/scripts/mongodb/export-images.sh @@ -0,0 +1,53 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:4.2.24 images/appscode-images-mongo-4.2.24.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:4.4.26 images/appscode-images-mongo-4.4.26.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:5.0.23 images/appscode-images-mongo-5.0.23.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:5.0.26 images/appscode-images-mongo-5.0.26.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:6.0.12 images/appscode-images-mongo-6.0.12.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:7.0.5 images/appscode-images-mongo-7.0.5.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:7.0.8 images/appscode-images-mongo-7.0.8.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mongo:8.0.3 images/appscode-images-mongo-8.0.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mongodb-init:4.2-v9 images/kubedb-mongodb-init-4.2-v9.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mongodb-init:6.0-v10 images/kubedb-mongodb-init-6.0-v10.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mongodb_exporter:v0.40.0 images/kubedb-mongodb_exporter-v0.40.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/wal-g:v2024.5.24_mongo images/kubedb-wal-g-v2024.5.24_mongo.tar +$CMD pull --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:4.2.24 images/percona-percona-server-mongodb-4.2.24.tar +$CMD pull --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:4.4.26 images/percona-percona-server-mongodb-4.4.26.tar +$CMD pull --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:5.0.23 images/percona-percona-server-mongodb-5.0.23.tar +$CMD pull --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:6.0.12 images/percona-percona-server-mongodb-6.0.12.tar +$CMD pull --allow-nondistributable-artifacts --insecure percona/percona-server-mongodb:7.0.4 images/percona-percona-server-mongodb-7.0.4.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/mongodbversions.yaml b/catalog/scripts/mongodb/imagelist.yaml similarity index 100% rename from catalog/scripts/mongodbversions.yaml rename to catalog/scripts/mongodb/imagelist.yaml diff --git a/catalog/scripts/mongodb/import-images.sh b/catalog/scripts/mongodb/import-images.sh new file mode 100755 index 000000000..6aea5140b --- /dev/null +++ b/catalog/scripts/mongodb/import-images.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mongo-4.2.24.tar $IMAGE_REGISTRY/appscode-images/mongo:4.2.24 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mongo-4.4.26.tar $IMAGE_REGISTRY/appscode-images/mongo:4.4.26 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mongo-5.0.23.tar $IMAGE_REGISTRY/appscode-images/mongo:5.0.23 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mongo-5.0.26.tar $IMAGE_REGISTRY/appscode-images/mongo:5.0.26 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mongo-6.0.12.tar $IMAGE_REGISTRY/appscode-images/mongo:6.0.12 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mongo-7.0.5.tar $IMAGE_REGISTRY/appscode-images/mongo:7.0.5 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mongo-7.0.8.tar $IMAGE_REGISTRY/appscode-images/mongo:7.0.8 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mongo-8.0.3.tar $IMAGE_REGISTRY/appscode-images/mongo:8.0.3 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mongodb-init-4.2-v9.tar $IMAGE_REGISTRY/kubedb/mongodb-init:4.2-v9 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mongodb-init-6.0-v10.tar $IMAGE_REGISTRY/kubedb/mongodb-init:6.0-v10 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mongodb_exporter-v0.40.0.tar $IMAGE_REGISTRY/kubedb/mongodb_exporter:v0.40.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-wal-g-v2024.5.24_mongo.tar $IMAGE_REGISTRY/kubedb/wal-g:v2024.5.24_mongo +$CMD push --allow-nondistributable-artifacts --insecure images/percona-percona-server-mongodb-4.2.24.tar $IMAGE_REGISTRY/percona/percona-server-mongodb:4.2.24 +$CMD push --allow-nondistributable-artifacts --insecure images/percona-percona-server-mongodb-4.4.26.tar $IMAGE_REGISTRY/percona/percona-server-mongodb:4.4.26 +$CMD push --allow-nondistributable-artifacts --insecure images/percona-percona-server-mongodb-5.0.23.tar $IMAGE_REGISTRY/percona/percona-server-mongodb:5.0.23 +$CMD push --allow-nondistributable-artifacts --insecure images/percona-percona-server-mongodb-6.0.12.tar $IMAGE_REGISTRY/percona/percona-server-mongodb:6.0.12 +$CMD push --allow-nondistributable-artifacts --insecure images/percona-percona-server-mongodb-7.0.4.tar $IMAGE_REGISTRY/percona/percona-server-mongodb:7.0.4 diff --git a/catalog/scripts/mongodb/import-into-k3s.sh b/catalog/scripts/mongodb/import-into-k3s.sh new file mode 100755 index 000000000..fd13a1281 --- /dev/null +++ b/catalog/scripts/mongodb/import-into-k3s.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-mongo-4.2.24.tar +k3s ctr images import images/appscode-images-mongo-4.4.26.tar +k3s ctr images import images/appscode-images-mongo-5.0.23.tar +k3s ctr images import images/appscode-images-mongo-5.0.26.tar +k3s ctr images import images/appscode-images-mongo-6.0.12.tar +k3s ctr images import images/appscode-images-mongo-7.0.5.tar +k3s ctr images import images/appscode-images-mongo-7.0.8.tar +k3s ctr images import images/appscode-images-mongo-8.0.3.tar +k3s ctr images import images/kubedb-mongodb-init-4.2-v9.tar +k3s ctr images import images/kubedb-mongodb-init-6.0-v10.tar +k3s ctr images import images/kubedb-mongodb_exporter-v0.40.0.tar +k3s ctr images import images/kubedb-wal-g-v2024.5.24_mongo.tar +k3s ctr images import images/percona-percona-server-mongodb-4.2.24.tar +k3s ctr images import images/percona-percona-server-mongodb-4.4.26.tar +k3s ctr images import images/percona-percona-server-mongodb-5.0.23.tar +k3s ctr images import images/percona-percona-server-mongodb-6.0.12.tar +k3s ctr images import images/percona-percona-server-mongodb-7.0.4.tar diff --git a/catalog/scripts/mssqlserver/copy-images.sh b/catalog/scripts/mssqlserver/copy-images.sh new file mode 100755 index 000000000..3190870a2 --- /dev/null +++ b/catalog/scripts/mssqlserver/copy-images.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssql-coordinator:v0.4.0 $IMAGE_REGISTRY/kubedb/mssql-coordinator:v0.4.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssql-exporter:1.1.0 $IMAGE_REGISTRY/kubedb/mssql-exporter:1.1.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssql-init:2022-ubuntu-22-v3 $IMAGE_REGISTRY/kubedb/mssql-init:2022-ubuntu-22-v3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssqlserver-archiver:v0.3.0 $IMAGE_REGISTRY/kubedb/mssqlserver-archiver:v0.3.0 +$CMD cp --allow-nondistributable-artifacts --insecure mcr.microsoft.com/mssql/server:2022-CU12-ubuntu-22.04 $IMAGE_REGISTRY/mssql/server:2022-CU12-ubuntu-22.04 +$CMD cp --allow-nondistributable-artifacts --insecure mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04 $IMAGE_REGISTRY/mssql/server:2022-CU14-ubuntu-22.04 diff --git a/catalog/scripts/mssqlserver/export-images.sh b/catalog/scripts/mssqlserver/export-images.sh new file mode 100755 index 000000000..968de2e7e --- /dev/null +++ b/catalog/scripts/mssqlserver/export-images.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssql-coordinator:v0.4.0 images/kubedb-mssql-coordinator-v0.4.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssql-exporter:1.1.0 images/kubedb-mssql-exporter-1.1.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssql-init:2022-ubuntu-22-v3 images/kubedb-mssql-init-2022-ubuntu-22-v3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssqlserver-archiver:v0.3.0 images/kubedb-mssqlserver-archiver-v0.3.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure mcr.microsoft.com/mssql/server:2022-CU12-ubuntu-22.04 images/mssql-server-2022-CU12-ubuntu-22.04.tar +$CMD pull --allow-nondistributable-artifacts --insecure mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04 images/mssql-server-2022-CU14-ubuntu-22.04.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/mssqlserverversions.yaml b/catalog/scripts/mssqlserver/imagelist.yaml similarity index 100% rename from catalog/scripts/mssqlserverversions.yaml rename to catalog/scripts/mssqlserver/imagelist.yaml diff --git a/catalog/scripts/mssqlserver/import-images.sh b/catalog/scripts/mssqlserver/import-images.sh new file mode 100755 index 000000000..dc9bb3945 --- /dev/null +++ b/catalog/scripts/mssqlserver/import-images.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mssql-coordinator-v0.4.0.tar $IMAGE_REGISTRY/kubedb/mssql-coordinator:v0.4.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mssql-exporter-1.1.0.tar $IMAGE_REGISTRY/kubedb/mssql-exporter:1.1.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mssql-init-2022-ubuntu-22-v3.tar $IMAGE_REGISTRY/kubedb/mssql-init:2022-ubuntu-22-v3 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mssqlserver-archiver-v0.3.0.tar $IMAGE_REGISTRY/kubedb/mssqlserver-archiver:v0.3.0 +$CMD push --allow-nondistributable-artifacts --insecure images/mssql-server-2022-CU12-ubuntu-22.04.tar $IMAGE_REGISTRY/mssql/server:2022-CU12-ubuntu-22.04 +$CMD push --allow-nondistributable-artifacts --insecure images/mssql-server-2022-CU14-ubuntu-22.04.tar $IMAGE_REGISTRY/mssql/server:2022-CU14-ubuntu-22.04 diff --git a/catalog/scripts/mssqlserver/import-into-k3s.sh b/catalog/scripts/mssqlserver/import-into-k3s.sh new file mode 100755 index 000000000..175b935f7 --- /dev/null +++ b/catalog/scripts/mssqlserver/import-into-k3s.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/kubedb-mssql-coordinator-v0.4.0.tar +k3s ctr images import images/kubedb-mssql-exporter-1.1.0.tar +k3s ctr images import images/kubedb-mssql-init-2022-ubuntu-22-v3.tar +k3s ctr images import images/kubedb-mssqlserver-archiver-v0.3.0.tar +k3s ctr images import images/mssql-server-2022-CU12-ubuntu-22.04.tar +k3s ctr images import images/mssql-server-2022-CU14-ubuntu-22.04.tar diff --git a/catalog/scripts/mysql/copy-images.sh b/catalog/scripts/mysql/copy-images.sh new file mode 100755 index 000000000..c98c6c95d --- /dev/null +++ b/catalog/scripts/mysql/copy-images.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:5.7.42-debian $IMAGE_REGISTRY/appscode-images/mysql:5.7.42-debian +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:5.7.44-oracle $IMAGE_REGISTRY/appscode-images/mysql:5.7.44-oracle +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.0.31-oracle $IMAGE_REGISTRY/appscode-images/mysql:8.0.31-oracle +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.0.35-oracle $IMAGE_REGISTRY/appscode-images/mysql:8.0.35-oracle +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.0.36-debian $IMAGE_REGISTRY/appscode-images/mysql:8.0.36-debian +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.1.0-oracle $IMAGE_REGISTRY/appscode-images/mysql:8.1.0-oracle +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.2.0-oracle $IMAGE_REGISTRY/appscode-images/mysql:8.2.0-oracle +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.4.2-oracle $IMAGE_REGISTRY/appscode-images/mysql:8.4.2-oracle +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-archiver:v0.10.0_5.7.44 $IMAGE_REGISTRY/kubedb/mysql-archiver:v0.10.0_5.7.44 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-archiver:v0.10.0_8.0.35 $IMAGE_REGISTRY/kubedb/mysql-archiver:v0.10.0_8.0.35 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-archiver:v0.10.0_8.1.0 $IMAGE_REGISTRY/kubedb/mysql-archiver:v0.10.0_8.1.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-archiver:v0.10.0_8.2.0 $IMAGE_REGISTRY/kubedb/mysql-archiver:v0.10.0_8.2.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-coordinator:v0.27.0 $IMAGE_REGISTRY/kubedb/mysql-coordinator:v0.27.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-init:5.7-v4 $IMAGE_REGISTRY/kubedb/mysql-init:5.7-v4 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-init:8.0.31-v3 $IMAGE_REGISTRY/kubedb/mysql-init:8.0.31-v3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-init:8.4.2-v2 $IMAGE_REGISTRY/kubedb/mysql-init:8.4.2-v2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-router-init:v0.27.0 $IMAGE_REGISTRY/kubedb/mysql-router-init:v0.27.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysqld-exporter:v0.13.1 $IMAGE_REGISTRY/kubedb/mysqld-exporter:v0.13.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/replication-mode-detector:v0.36.0 $IMAGE_REGISTRY/kubedb/replication-mode-detector:v0.36.0 +$CMD cp --allow-nondistributable-artifacts --insecure mysql/mysql-router:8.0.31 $IMAGE_REGISTRY/mysql/mysql-router:8.0.31 +$CMD cp --allow-nondistributable-artifacts --insecure registry.k8s.io/git-sync/git-sync:v4.2.1 $IMAGE_REGISTRY/git-sync/git-sync:v4.2.1 diff --git a/catalog/scripts/mysql/export-images.sh b/catalog/scripts/mysql/export-images.sh new file mode 100755 index 000000000..b08cba707 --- /dev/null +++ b/catalog/scripts/mysql/export-images.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:5.7.42-debian images/appscode-images-mysql-5.7.42-debian.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:5.7.44-oracle images/appscode-images-mysql-5.7.44-oracle.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.0.31-oracle images/appscode-images-mysql-8.0.31-oracle.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.0.35-oracle images/appscode-images-mysql-8.0.35-oracle.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.0.36-debian images/appscode-images-mysql-8.0.36-debian.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.1.0-oracle images/appscode-images-mysql-8.1.0-oracle.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.2.0-oracle images/appscode-images-mysql-8.2.0-oracle.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/mysql:8.4.2-oracle images/appscode-images-mysql-8.4.2-oracle.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-archiver:v0.10.0_5.7.44 images/kubedb-mysql-archiver-v0.10.0_5.7.44.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-archiver:v0.10.0_8.0.35 images/kubedb-mysql-archiver-v0.10.0_8.0.35.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-archiver:v0.10.0_8.1.0 images/kubedb-mysql-archiver-v0.10.0_8.1.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-archiver:v0.10.0_8.2.0 images/kubedb-mysql-archiver-v0.10.0_8.2.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-coordinator:v0.27.0 images/kubedb-mysql-coordinator-v0.27.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-init:5.7-v4 images/kubedb-mysql-init-5.7-v4.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-init:8.0.31-v3 images/kubedb-mysql-init-8.0.31-v3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-init:8.4.2-v2 images/kubedb-mysql-init-8.4.2-v2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-router-init:v0.27.0 images/kubedb-mysql-router-init-v0.27.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysqld-exporter:v0.13.1 images/kubedb-mysqld-exporter-v0.13.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/replication-mode-detector:v0.36.0 images/kubedb-replication-mode-detector-v0.36.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure mysql/mysql-router:8.0.31 images/mysql-mysql-router-8.0.31.tar +$CMD pull --allow-nondistributable-artifacts --insecure registry.k8s.io/git-sync/git-sync:v4.2.1 images/git-sync-git-sync-v4.2.1.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/mysqlversions.yaml b/catalog/scripts/mysql/imagelist.yaml similarity index 100% rename from catalog/scripts/mysqlversions.yaml rename to catalog/scripts/mysql/imagelist.yaml diff --git a/catalog/scripts/mysql/import-images.sh b/catalog/scripts/mysql/import-images.sh new file mode 100755 index 000000000..a261551e6 --- /dev/null +++ b/catalog/scripts/mysql/import-images.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mysql-5.7.42-debian.tar $IMAGE_REGISTRY/appscode-images/mysql:5.7.42-debian +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mysql-5.7.44-oracle.tar $IMAGE_REGISTRY/appscode-images/mysql:5.7.44-oracle +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mysql-8.0.31-oracle.tar $IMAGE_REGISTRY/appscode-images/mysql:8.0.31-oracle +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mysql-8.0.35-oracle.tar $IMAGE_REGISTRY/appscode-images/mysql:8.0.35-oracle +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mysql-8.0.36-debian.tar $IMAGE_REGISTRY/appscode-images/mysql:8.0.36-debian +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mysql-8.1.0-oracle.tar $IMAGE_REGISTRY/appscode-images/mysql:8.1.0-oracle +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mysql-8.2.0-oracle.tar $IMAGE_REGISTRY/appscode-images/mysql:8.2.0-oracle +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-mysql-8.4.2-oracle.tar $IMAGE_REGISTRY/appscode-images/mysql:8.4.2-oracle +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-archiver-v0.10.0_5.7.44.tar $IMAGE_REGISTRY/kubedb/mysql-archiver:v0.10.0_5.7.44 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-archiver-v0.10.0_8.0.35.tar $IMAGE_REGISTRY/kubedb/mysql-archiver:v0.10.0_8.0.35 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-archiver-v0.10.0_8.1.0.tar $IMAGE_REGISTRY/kubedb/mysql-archiver:v0.10.0_8.1.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-archiver-v0.10.0_8.2.0.tar $IMAGE_REGISTRY/kubedb/mysql-archiver:v0.10.0_8.2.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-coordinator-v0.27.0.tar $IMAGE_REGISTRY/kubedb/mysql-coordinator:v0.27.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-init-5.7-v4.tar $IMAGE_REGISTRY/kubedb/mysql-init:5.7-v4 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-init-8.0.31-v3.tar $IMAGE_REGISTRY/kubedb/mysql-init:8.0.31-v3 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-init-8.4.2-v2.tar $IMAGE_REGISTRY/kubedb/mysql-init:8.4.2-v2 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-router-init-v0.27.0.tar $IMAGE_REGISTRY/kubedb/mysql-router-init:v0.27.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysqld-exporter-v0.13.1.tar $IMAGE_REGISTRY/kubedb/mysqld-exporter:v0.13.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-replication-mode-detector-v0.36.0.tar $IMAGE_REGISTRY/kubedb/replication-mode-detector:v0.36.0 +$CMD push --allow-nondistributable-artifacts --insecure images/mysql-mysql-router-8.0.31.tar $IMAGE_REGISTRY/mysql/mysql-router:8.0.31 +$CMD push --allow-nondistributable-artifacts --insecure images/git-sync-git-sync-v4.2.1.tar $IMAGE_REGISTRY/git-sync/git-sync:v4.2.1 diff --git a/catalog/scripts/mysql/import-into-k3s.sh b/catalog/scripts/mysql/import-into-k3s.sh new file mode 100755 index 000000000..5af28e2e5 --- /dev/null +++ b/catalog/scripts/mysql/import-into-k3s.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-mysql-5.7.42-debian.tar +k3s ctr images import images/appscode-images-mysql-5.7.44-oracle.tar +k3s ctr images import images/appscode-images-mysql-8.0.31-oracle.tar +k3s ctr images import images/appscode-images-mysql-8.0.35-oracle.tar +k3s ctr images import images/appscode-images-mysql-8.0.36-debian.tar +k3s ctr images import images/appscode-images-mysql-8.1.0-oracle.tar +k3s ctr images import images/appscode-images-mysql-8.2.0-oracle.tar +k3s ctr images import images/appscode-images-mysql-8.4.2-oracle.tar +k3s ctr images import images/kubedb-mysql-archiver-v0.10.0_5.7.44.tar +k3s ctr images import images/kubedb-mysql-archiver-v0.10.0_8.0.35.tar +k3s ctr images import images/kubedb-mysql-archiver-v0.10.0_8.1.0.tar +k3s ctr images import images/kubedb-mysql-archiver-v0.10.0_8.2.0.tar +k3s ctr images import images/kubedb-mysql-coordinator-v0.27.0.tar +k3s ctr images import images/kubedb-mysql-init-5.7-v4.tar +k3s ctr images import images/kubedb-mysql-init-8.0.31-v3.tar +k3s ctr images import images/kubedb-mysql-init-8.4.2-v2.tar +k3s ctr images import images/kubedb-mysql-router-init-v0.27.0.tar +k3s ctr images import images/kubedb-mysqld-exporter-v0.13.1.tar +k3s ctr images import images/kubedb-replication-mode-detector-v0.36.0.tar +k3s ctr images import images/mysql-mysql-router-8.0.31.tar +k3s ctr images import images/git-sync-git-sync-v4.2.1.tar diff --git a/catalog/scripts/operator/copy-images.sh b/catalog/scripts/operator/copy-images.sh new file mode 100755 index 000000000..5708f4ee1 --- /dev/null +++ b/catalog/scripts/operator/copy-images.sh @@ -0,0 +1,66 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/kube-rbac-proxy:v0.15.0 $IMAGE_REGISTRY/appscode/kube-rbac-proxy:v0.15.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/kubectl-nonroot:1.31 $IMAGE_REGISTRY/appscode/kubectl-nonroot:1.31 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/petset:v0.0.7 $IMAGE_REGISTRY/appscode/petset:v0.0.7 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode/sidekick:v0.0.9 $IMAGE_REGISTRY/appscode/sidekick:v0.0.9 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/dashboard-restic-plugin:v0.1.0 $IMAGE_REGISTRY/kubedb/dashboard-restic-plugin:v0.1.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/dashboard-restic-plugin:v0.7.0 $IMAGE_REGISTRY/kubedb/dashboard-restic-plugin:v0.7.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/elasticsearch-restic-plugin:v0.12.0 $IMAGE_REGISTRY/kubedb/elasticsearch-restic-plugin:v0.12.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-autoscaler:v0.34.0 $IMAGE_REGISTRY/kubedb/kubedb-autoscaler:v0.34.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-crd-manager:v0.4.0 $IMAGE_REGISTRY/kubedb/kubedb-crd-manager:v0.4.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-kibana:v0.25.0 $IMAGE_REGISTRY/kubedb/kubedb-kibana:v0.25.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-manifest-plugin:v0.12.0 $IMAGE_REGISTRY/kubedb/kubedb-manifest-plugin:v0.12.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-ops-manager:v0.36.0 $IMAGE_REGISTRY/kubedb/kubedb-ops-manager:v0.36.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-provisioner:v0.49.0 $IMAGE_REGISTRY/kubedb/kubedb-provisioner:v0.49.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-schema-manager:v0.25.0 $IMAGE_REGISTRY/kubedb/kubedb-schema-manager:v0.25.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-ui-server:v0.25.0 $IMAGE_REGISTRY/kubedb/kubedb-ui-server:v0.25.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-webhook-server:v0.25.0 $IMAGE_REGISTRY/kubedb/kubedb-webhook-server:v0.25.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-csi-snapshotter-plugin:v0.9.0 $IMAGE_REGISTRY/kubedb/mariadb-csi-snapshotter-plugin:v0.9.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-restic-plugin:v0.7.0 $IMAGE_REGISTRY/kubedb/mariadb-restic-plugin:v0.7.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mongodb-csi-snapshotter-plugin:v0.10.0 $IMAGE_REGISTRY/kubedb/mongodb-csi-snapshotter-plugin:v0.10.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssqlserver-walg-plugin:v0.0.1 $IMAGE_REGISTRY/kubedb/mssqlserver-walg-plugin:v0.0.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-csi-snapshotter-plugin:v0.10.0 $IMAGE_REGISTRY/kubedb/mysql-csi-snapshotter-plugin:v0.10.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-csi-snapshotter-plugin:v0.10.0 $IMAGE_REGISTRY/kubedb/postgres-csi-snapshotter-plugin:v0.10.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-restic-plugin:v0.12.0_16.1 $IMAGE_REGISTRY/kubedb/postgres-restic-plugin:v0.12.0_16.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/provider-aws:v0.11.0 $IMAGE_REGISTRY/kubedb/provider-aws:v0.11.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/provider-azure:v0.11.0 $IMAGE_REGISTRY/kubedb/provider-azure:v0.11.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/provider-gcp:v0.11.0 $IMAGE_REGISTRY/kubedb/provider-gcp:v0.11.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis-restic-plugin:v0.12.0 $IMAGE_REGISTRY/kubedb/redis-restic-plugin:v0.12.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/zookeeper-restic-plugin:v0.5.0 $IMAGE_REGISTRY/kubedb/zookeeper-restic-plugin:v0.5.0 +$CMD cp --allow-nondistributable-artifacts --insecure tianon/toybox:0.8.4 $IMAGE_REGISTRY/tianon/toybox:0.8.4 diff --git a/catalog/scripts/operator/export-images.sh b/catalog/scripts/operator/export-images.sh new file mode 100755 index 000000000..8fa249a64 --- /dev/null +++ b/catalog/scripts/operator/export-images.sh @@ -0,0 +1,65 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode/kube-rbac-proxy:v0.15.0 images/appscode-kube-rbac-proxy-v0.15.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode/kubectl-nonroot:1.31 images/appscode-kubectl-nonroot-1.31.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode/petset:v0.0.7 images/appscode-petset-v0.0.7.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode/sidekick:v0.0.9 images/appscode-sidekick-v0.0.9.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/dashboard-restic-plugin:v0.1.0 images/kubedb-dashboard-restic-plugin-v0.1.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/dashboard-restic-plugin:v0.7.0 images/kubedb-dashboard-restic-plugin-v0.7.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/elasticsearch-restic-plugin:v0.12.0 images/kubedb-elasticsearch-restic-plugin-v0.12.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-autoscaler:v0.34.0 images/kubedb-kubedb-autoscaler-v0.34.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-crd-manager:v0.4.0 images/kubedb-kubedb-crd-manager-v0.4.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-kibana:v0.25.0 images/kubedb-kubedb-kibana-v0.25.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-manifest-plugin:v0.12.0 images/kubedb-kubedb-manifest-plugin-v0.12.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-ops-manager:v0.36.0 images/kubedb-kubedb-ops-manager-v0.36.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-provisioner:v0.49.0 images/kubedb-kubedb-provisioner-v0.49.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-schema-manager:v0.25.0 images/kubedb-kubedb-schema-manager-v0.25.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-ui-server:v0.25.0 images/kubedb-kubedb-ui-server-v0.25.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/kubedb-webhook-server:v0.25.0 images/kubedb-kubedb-webhook-server-v0.25.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-csi-snapshotter-plugin:v0.9.0 images/kubedb-mariadb-csi-snapshotter-plugin-v0.9.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mariadb-restic-plugin:v0.7.0 images/kubedb-mariadb-restic-plugin-v0.7.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mongodb-csi-snapshotter-plugin:v0.10.0 images/kubedb-mongodb-csi-snapshotter-plugin-v0.10.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mssqlserver-walg-plugin:v0.0.1 images/kubedb-mssqlserver-walg-plugin-v0.0.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/mysql-csi-snapshotter-plugin:v0.10.0 images/kubedb-mysql-csi-snapshotter-plugin-v0.10.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-csi-snapshotter-plugin:v0.10.0 images/kubedb-postgres-csi-snapshotter-plugin-v0.10.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-restic-plugin:v0.12.0_16.1 images/kubedb-postgres-restic-plugin-v0.12.0_16.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/provider-aws:v0.11.0 images/kubedb-provider-aws-v0.11.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/provider-azure:v0.11.0 images/kubedb-provider-azure-v0.11.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/provider-gcp:v0.11.0 images/kubedb-provider-gcp-v0.11.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis-restic-plugin:v0.12.0 images/kubedb-redis-restic-plugin-v0.12.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/zookeeper-restic-plugin:v0.5.0 images/kubedb-zookeeper-restic-plugin-v0.5.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure tianon/toybox:0.8.4 images/tianon-toybox-0.8.4.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/operator.yaml b/catalog/scripts/operator/imagelist.yaml similarity index 100% rename from catalog/scripts/operator.yaml rename to catalog/scripts/operator/imagelist.yaml diff --git a/catalog/scripts/operator/import-images.sh b/catalog/scripts/operator/import-images.sh new file mode 100755 index 000000000..50057019e --- /dev/null +++ b/catalog/scripts/operator/import-images.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-kube-rbac-proxy-v0.15.0.tar $IMAGE_REGISTRY/appscode/kube-rbac-proxy:v0.15.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-kubectl-nonroot-1.31.tar $IMAGE_REGISTRY/appscode/kubectl-nonroot:1.31 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-petset-v0.0.7.tar $IMAGE_REGISTRY/appscode/petset:v0.0.7 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-sidekick-v0.0.9.tar $IMAGE_REGISTRY/appscode/sidekick:v0.0.9 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-dashboard-restic-plugin-v0.1.0.tar $IMAGE_REGISTRY/kubedb/dashboard-restic-plugin:v0.1.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-dashboard-restic-plugin-v0.7.0.tar $IMAGE_REGISTRY/kubedb/dashboard-restic-plugin:v0.7.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-elasticsearch-restic-plugin-v0.12.0.tar $IMAGE_REGISTRY/kubedb/elasticsearch-restic-plugin:v0.12.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-kubedb-autoscaler-v0.34.0.tar $IMAGE_REGISTRY/kubedb/kubedb-autoscaler:v0.34.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-kubedb-crd-manager-v0.4.0.tar $IMAGE_REGISTRY/kubedb/kubedb-crd-manager:v0.4.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-kubedb-kibana-v0.25.0.tar $IMAGE_REGISTRY/kubedb/kubedb-kibana:v0.25.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-kubedb-manifest-plugin-v0.12.0.tar $IMAGE_REGISTRY/kubedb/kubedb-manifest-plugin:v0.12.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-kubedb-ops-manager-v0.36.0.tar $IMAGE_REGISTRY/kubedb/kubedb-ops-manager:v0.36.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-kubedb-provisioner-v0.49.0.tar $IMAGE_REGISTRY/kubedb/kubedb-provisioner:v0.49.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-kubedb-schema-manager-v0.25.0.tar $IMAGE_REGISTRY/kubedb/kubedb-schema-manager:v0.25.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-kubedb-ui-server-v0.25.0.tar $IMAGE_REGISTRY/kubedb/kubedb-ui-server:v0.25.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-kubedb-webhook-server-v0.25.0.tar $IMAGE_REGISTRY/kubedb/kubedb-webhook-server:v0.25.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-csi-snapshotter-plugin-v0.9.0.tar $IMAGE_REGISTRY/kubedb/mariadb-csi-snapshotter-plugin:v0.9.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mariadb-restic-plugin-v0.7.0.tar $IMAGE_REGISTRY/kubedb/mariadb-restic-plugin:v0.7.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mongodb-csi-snapshotter-plugin-v0.10.0.tar $IMAGE_REGISTRY/kubedb/mongodb-csi-snapshotter-plugin:v0.10.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mssqlserver-walg-plugin-v0.0.1.tar $IMAGE_REGISTRY/kubedb/mssqlserver-walg-plugin:v0.0.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-mysql-csi-snapshotter-plugin-v0.10.0.tar $IMAGE_REGISTRY/kubedb/mysql-csi-snapshotter-plugin:v0.10.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-csi-snapshotter-plugin-v0.10.0.tar $IMAGE_REGISTRY/kubedb/postgres-csi-snapshotter-plugin:v0.10.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-restic-plugin-v0.12.0_16.1.tar $IMAGE_REGISTRY/kubedb/postgres-restic-plugin:v0.12.0_16.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-provider-aws-v0.11.0.tar $IMAGE_REGISTRY/kubedb/provider-aws:v0.11.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-provider-azure-v0.11.0.tar $IMAGE_REGISTRY/kubedb/provider-azure:v0.11.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-provider-gcp-v0.11.0.tar $IMAGE_REGISTRY/kubedb/provider-gcp:v0.11.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-redis-restic-plugin-v0.12.0.tar $IMAGE_REGISTRY/kubedb/redis-restic-plugin:v0.12.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-zookeeper-restic-plugin-v0.5.0.tar $IMAGE_REGISTRY/kubedb/zookeeper-restic-plugin:v0.5.0 +$CMD push --allow-nondistributable-artifacts --insecure images/tianon-toybox-0.8.4.tar $IMAGE_REGISTRY/tianon/toybox:0.8.4 diff --git a/catalog/scripts/operator/import-into-k3s.sh b/catalog/scripts/operator/import-into-k3s.sh new file mode 100755 index 000000000..5cf26a5f2 --- /dev/null +++ b/catalog/scripts/operator/import-into-k3s.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-kube-rbac-proxy-v0.15.0.tar +k3s ctr images import images/appscode-kubectl-nonroot-1.31.tar +k3s ctr images import images/appscode-petset-v0.0.7.tar +k3s ctr images import images/appscode-sidekick-v0.0.9.tar +k3s ctr images import images/kubedb-dashboard-restic-plugin-v0.1.0.tar +k3s ctr images import images/kubedb-dashboard-restic-plugin-v0.7.0.tar +k3s ctr images import images/kubedb-elasticsearch-restic-plugin-v0.12.0.tar +k3s ctr images import images/kubedb-kubedb-autoscaler-v0.34.0.tar +k3s ctr images import images/kubedb-kubedb-crd-manager-v0.4.0.tar +k3s ctr images import images/kubedb-kubedb-kibana-v0.25.0.tar +k3s ctr images import images/kubedb-kubedb-manifest-plugin-v0.12.0.tar +k3s ctr images import images/kubedb-kubedb-ops-manager-v0.36.0.tar +k3s ctr images import images/kubedb-kubedb-provisioner-v0.49.0.tar +k3s ctr images import images/kubedb-kubedb-schema-manager-v0.25.0.tar +k3s ctr images import images/kubedb-kubedb-ui-server-v0.25.0.tar +k3s ctr images import images/kubedb-kubedb-webhook-server-v0.25.0.tar +k3s ctr images import images/kubedb-mariadb-csi-snapshotter-plugin-v0.9.0.tar +k3s ctr images import images/kubedb-mariadb-restic-plugin-v0.7.0.tar +k3s ctr images import images/kubedb-mongodb-csi-snapshotter-plugin-v0.10.0.tar +k3s ctr images import images/kubedb-mssqlserver-walg-plugin-v0.0.1.tar +k3s ctr images import images/kubedb-mysql-csi-snapshotter-plugin-v0.10.0.tar +k3s ctr images import images/kubedb-postgres-csi-snapshotter-plugin-v0.10.0.tar +k3s ctr images import images/kubedb-postgres-restic-plugin-v0.12.0_16.1.tar +k3s ctr images import images/kubedb-provider-aws-v0.11.0.tar +k3s ctr images import images/kubedb-provider-azure-v0.11.0.tar +k3s ctr images import images/kubedb-provider-gcp-v0.11.0.tar +k3s ctr images import images/kubedb-redis-restic-plugin-v0.12.0.tar +k3s ctr images import images/kubedb-zookeeper-restic-plugin-v0.5.0.tar +k3s ctr images import images/tianon-toybox-0.8.4.tar diff --git a/catalog/scripts/perconaxtradb/copy-images.sh b/catalog/scripts/perconaxtradb/copy-images.sh new file mode 100755 index 000000000..51e365129 --- /dev/null +++ b/catalog/scripts/perconaxtradb/copy-images.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/percona-xtradb-coordinator:v0.22.0 $IMAGE_REGISTRY/kubedb/percona-xtradb-coordinator:v0.22.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/percona-xtradb-init:0.2.1 $IMAGE_REGISTRY/kubedb/percona-xtradb-init:0.2.1 +$CMD cp --allow-nondistributable-artifacts --insecure percona/percona-xtradb-cluster:8.0.26 $IMAGE_REGISTRY/percona/percona-xtradb-cluster:8.0.26 +$CMD cp --allow-nondistributable-artifacts --insecure percona/percona-xtradb-cluster:8.0.28 $IMAGE_REGISTRY/percona/percona-xtradb-cluster:8.0.28 +$CMD cp --allow-nondistributable-artifacts --insecure percona/percona-xtradb-cluster:8.0.31 $IMAGE_REGISTRY/percona/percona-xtradb-cluster:8.0.31 +$CMD cp --allow-nondistributable-artifacts --insecure prom/mysqld-exporter:v0.13.0 $IMAGE_REGISTRY/prom/mysqld-exporter:v0.13.0 diff --git a/catalog/scripts/perconaxtradb/export-images.sh b/catalog/scripts/perconaxtradb/export-images.sh new file mode 100755 index 000000000..41515422c --- /dev/null +++ b/catalog/scripts/perconaxtradb/export-images.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/percona-xtradb-coordinator:v0.22.0 images/kubedb-percona-xtradb-coordinator-v0.22.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/percona-xtradb-init:0.2.1 images/kubedb-percona-xtradb-init-0.2.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure percona/percona-xtradb-cluster:8.0.26 images/percona-percona-xtradb-cluster-8.0.26.tar +$CMD pull --allow-nondistributable-artifacts --insecure percona/percona-xtradb-cluster:8.0.28 images/percona-percona-xtradb-cluster-8.0.28.tar +$CMD pull --allow-nondistributable-artifacts --insecure percona/percona-xtradb-cluster:8.0.31 images/percona-percona-xtradb-cluster-8.0.31.tar +$CMD pull --allow-nondistributable-artifacts --insecure prom/mysqld-exporter:v0.13.0 images/prom-mysqld-exporter-v0.13.0.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/perconaxtradbversions.yaml b/catalog/scripts/perconaxtradb/imagelist.yaml similarity index 100% rename from catalog/scripts/perconaxtradbversions.yaml rename to catalog/scripts/perconaxtradb/imagelist.yaml diff --git a/catalog/scripts/perconaxtradb/import-images.sh b/catalog/scripts/perconaxtradb/import-images.sh new file mode 100755 index 000000000..cb7b99083 --- /dev/null +++ b/catalog/scripts/perconaxtradb/import-images.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-percona-xtradb-coordinator-v0.22.0.tar $IMAGE_REGISTRY/kubedb/percona-xtradb-coordinator:v0.22.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-percona-xtradb-init-0.2.1.tar $IMAGE_REGISTRY/kubedb/percona-xtradb-init:0.2.1 +$CMD push --allow-nondistributable-artifacts --insecure images/percona-percona-xtradb-cluster-8.0.26.tar $IMAGE_REGISTRY/percona/percona-xtradb-cluster:8.0.26 +$CMD push --allow-nondistributable-artifacts --insecure images/percona-percona-xtradb-cluster-8.0.28.tar $IMAGE_REGISTRY/percona/percona-xtradb-cluster:8.0.28 +$CMD push --allow-nondistributable-artifacts --insecure images/percona-percona-xtradb-cluster-8.0.31.tar $IMAGE_REGISTRY/percona/percona-xtradb-cluster:8.0.31 +$CMD push --allow-nondistributable-artifacts --insecure images/prom-mysqld-exporter-v0.13.0.tar $IMAGE_REGISTRY/prom/mysqld-exporter:v0.13.0 diff --git a/catalog/scripts/perconaxtradb/import-into-k3s.sh b/catalog/scripts/perconaxtradb/import-into-k3s.sh new file mode 100755 index 000000000..d5324b27a --- /dev/null +++ b/catalog/scripts/perconaxtradb/import-into-k3s.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/kubedb-percona-xtradb-coordinator-v0.22.0.tar +k3s ctr images import images/kubedb-percona-xtradb-init-0.2.1.tar +k3s ctr images import images/percona-percona-xtradb-cluster-8.0.26.tar +k3s ctr images import images/percona-percona-xtradb-cluster-8.0.28.tar +k3s ctr images import images/percona-percona-xtradb-cluster-8.0.31.tar +k3s ctr images import images/prom-mysqld-exporter-v0.13.0.tar diff --git a/catalog/scripts/pgbouncer/copy-images.sh b/catalog/scripts/pgbouncer/copy-images.sh new file mode 100755 index 000000000..bef6b7844 --- /dev/null +++ b/catalog/scripts/pgbouncer/copy-images.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pgbouncer:1.17.0 $IMAGE_REGISTRY/kubedb/pgbouncer:1.17.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pgbouncer:1.18.0 $IMAGE_REGISTRY/kubedb/pgbouncer:1.18.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pgbouncer:1.23.1 $IMAGE_REGISTRY/kubedb/pgbouncer:1.23.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pgbouncer_exporter:v0.1.1 $IMAGE_REGISTRY/kubedb/pgbouncer_exporter:v0.1.1 diff --git a/catalog/scripts/pgbouncer/export-images.sh b/catalog/scripts/pgbouncer/export-images.sh new file mode 100755 index 000000000..ef6b3c7be --- /dev/null +++ b/catalog/scripts/pgbouncer/export-images.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pgbouncer:1.17.0 images/kubedb-pgbouncer-1.17.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pgbouncer:1.18.0 images/kubedb-pgbouncer-1.18.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pgbouncer:1.23.1 images/kubedb-pgbouncer-1.23.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pgbouncer_exporter:v0.1.1 images/kubedb-pgbouncer_exporter-v0.1.1.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/pgbouncerversions.yaml b/catalog/scripts/pgbouncer/imagelist.yaml similarity index 100% rename from catalog/scripts/pgbouncerversions.yaml rename to catalog/scripts/pgbouncer/imagelist.yaml diff --git a/catalog/scripts/pgbouncer/import-images.sh b/catalog/scripts/pgbouncer/import-images.sh new file mode 100755 index 000000000..f01c8eb34 --- /dev/null +++ b/catalog/scripts/pgbouncer/import-images.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-pgbouncer-1.17.0.tar $IMAGE_REGISTRY/kubedb/pgbouncer:1.17.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-pgbouncer-1.18.0.tar $IMAGE_REGISTRY/kubedb/pgbouncer:1.18.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-pgbouncer-1.23.1.tar $IMAGE_REGISTRY/kubedb/pgbouncer:1.23.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-pgbouncer_exporter-v0.1.1.tar $IMAGE_REGISTRY/kubedb/pgbouncer_exporter:v0.1.1 diff --git a/catalog/scripts/pgbouncer/import-into-k3s.sh b/catalog/scripts/pgbouncer/import-into-k3s.sh new file mode 100755 index 000000000..84ceff281 --- /dev/null +++ b/catalog/scripts/pgbouncer/import-into-k3s.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/kubedb-pgbouncer-1.17.0.tar +k3s ctr images import images/kubedb-pgbouncer-1.18.0.tar +k3s ctr images import images/kubedb-pgbouncer-1.23.1.tar +k3s ctr images import images/kubedb-pgbouncer_exporter-v0.1.1.tar diff --git a/catalog/scripts/pgpool/copy-images.sh b/catalog/scripts/pgpool/copy-images.sh new file mode 100755 index 000000000..ab14f6671 --- /dev/null +++ b/catalog/scripts/pgpool/copy-images.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2:4.4.5 $IMAGE_REGISTRY/appscode-images/pgpool2:4.4.5 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2:4.4.8 $IMAGE_REGISTRY/appscode-images/pgpool2:4.4.8 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2:4.5.0 $IMAGE_REGISTRY/appscode-images/pgpool2:4.5.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2:4.5.3 $IMAGE_REGISTRY/appscode-images/pgpool2:4.5.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2_exporter:v1.2.2 $IMAGE_REGISTRY/appscode-images/pgpool2_exporter:v1.2.2 diff --git a/catalog/scripts/pgpool/export-images.sh b/catalog/scripts/pgpool/export-images.sh new file mode 100755 index 000000000..2572d7378 --- /dev/null +++ b/catalog/scripts/pgpool/export-images.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2:4.4.5 images/appscode-images-pgpool2-4.4.5.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2:4.4.8 images/appscode-images-pgpool2-4.4.8.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2:4.5.0 images/appscode-images-pgpool2-4.5.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2:4.5.3 images/appscode-images-pgpool2-4.5.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/pgpool2_exporter:v1.2.2 images/appscode-images-pgpool2_exporter-v1.2.2.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/pgpoolversions.yaml b/catalog/scripts/pgpool/imagelist.yaml similarity index 100% rename from catalog/scripts/pgpoolversions.yaml rename to catalog/scripts/pgpool/imagelist.yaml diff --git a/catalog/scripts/pgpool/import-images.sh b/catalog/scripts/pgpool/import-images.sh new file mode 100755 index 000000000..15037f2b5 --- /dev/null +++ b/catalog/scripts/pgpool/import-images.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-pgpool2-4.4.5.tar $IMAGE_REGISTRY/appscode-images/pgpool2:4.4.5 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-pgpool2-4.4.8.tar $IMAGE_REGISTRY/appscode-images/pgpool2:4.4.8 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-pgpool2-4.5.0.tar $IMAGE_REGISTRY/appscode-images/pgpool2:4.5.0 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-pgpool2-4.5.3.tar $IMAGE_REGISTRY/appscode-images/pgpool2:4.5.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-pgpool2_exporter-v1.2.2.tar $IMAGE_REGISTRY/appscode-images/pgpool2_exporter:v1.2.2 diff --git a/catalog/scripts/pgpool/import-into-k3s.sh b/catalog/scripts/pgpool/import-into-k3s.sh new file mode 100755 index 000000000..4f31ad21d --- /dev/null +++ b/catalog/scripts/pgpool/import-into-k3s.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-pgpool2-4.4.5.tar +k3s ctr images import images/appscode-images-pgpool2-4.4.8.tar +k3s ctr images import images/appscode-images-pgpool2-4.5.0.tar +k3s ctr images import images/appscode-images-pgpool2-4.5.3.tar +k3s ctr images import images/appscode-images-pgpool2_exporter-v1.2.2.tar diff --git a/catalog/scripts/postgres/copy-images.sh b/catalog/scripts/postgres/copy-images.sh new file mode 100755 index 000000000..1ad1e0688 --- /dev/null +++ b/catalog/scripts/postgres/copy-images.sh @@ -0,0 +1,82 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:10.23-alpine $IMAGE_REGISTRY/appscode-images/postgres:10.23-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:10.23-bullseye $IMAGE_REGISTRY/appscode-images/postgres:10.23-bullseye +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:11.22-alpine $IMAGE_REGISTRY/appscode-images/postgres:11.22-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:11.22-bookworm $IMAGE_REGISTRY/appscode-images/postgres:11.22-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:12.17-alpine $IMAGE_REGISTRY/appscode-images/postgres:12.17-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:12.17-bookworm $IMAGE_REGISTRY/appscode-images/postgres:12.17-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:13.13-alpine $IMAGE_REGISTRY/appscode-images/postgres:13.13-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:13.13-bookworm $IMAGE_REGISTRY/appscode-images/postgres:13.13-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:14.10-alpine $IMAGE_REGISTRY/appscode-images/postgres:14.10-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:14.10-bookworm $IMAGE_REGISTRY/appscode-images/postgres:14.10-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:14.13-alpine $IMAGE_REGISTRY/appscode-images/postgres:14.13-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:14.13-bookworm $IMAGE_REGISTRY/appscode-images/postgres:14.13-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:15.5-alpine $IMAGE_REGISTRY/appscode-images/postgres:15.5-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:15.5-bookworm $IMAGE_REGISTRY/appscode-images/postgres:15.5-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:15.8-alpine $IMAGE_REGISTRY/appscode-images/postgres:15.8-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:15.8-bookworm $IMAGE_REGISTRY/appscode-images/postgres:15.8-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:16.1-alpine $IMAGE_REGISTRY/appscode-images/postgres:16.1-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:16.1-bookworm $IMAGE_REGISTRY/appscode-images/postgres:16.1-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:16.4-alpine $IMAGE_REGISTRY/appscode-images/postgres:16.4-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:16.4-bookworm $IMAGE_REGISTRY/appscode-images/postgres:16.4-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pg-coordinator:v0.33.0 $IMAGE_REGISTRY/kubedb/pg-coordinator:v0.33.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_11.22-alpine $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_11.22-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_11.22-bookworm $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_11.22-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_12.17-alpine $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_12.17-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_12.17-bookworm $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_12.17-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_13.13-alpine $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_13.13-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_13.13-bookworm $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_13.13-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_14.10-alpine $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_14.10-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_14.10-bookworm $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_14.10-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_15.5-alpine $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_15.5-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_15.5-bookworm $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_15.5-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_16.1-alpine $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_16.1-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_16.1-bookworm $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_16.1-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-init:0.16.0 $IMAGE_REGISTRY/kubedb/postgres-init:0.16.0 +$CMD cp --allow-nondistributable-artifacts --insecure postgis/postgis:11-3.3 $IMAGE_REGISTRY/postgis/postgis:11-3.3 +$CMD cp --allow-nondistributable-artifacts --insecure postgis/postgis:12-3.4 $IMAGE_REGISTRY/postgis/postgis:12-3.4 +$CMD cp --allow-nondistributable-artifacts --insecure postgis/postgis:13-3.4 $IMAGE_REGISTRY/postgis/postgis:13-3.4 +$CMD cp --allow-nondistributable-artifacts --insecure postgis/postgis:14-3.4 $IMAGE_REGISTRY/postgis/postgis:14-3.4 +$CMD cp --allow-nondistributable-artifacts --insecure postgis/postgis:15-3.4 $IMAGE_REGISTRY/postgis/postgis:15-3.4 +$CMD cp --allow-nondistributable-artifacts --insecure postgis/postgis:16-3.4 $IMAGE_REGISTRY/postgis/postgis:16-3.4 +$CMD cp --allow-nondistributable-artifacts --insecure prometheuscommunity/postgres-exporter:v0.15.0 $IMAGE_REGISTRY/prometheuscommunity/postgres-exporter:v0.15.0 +$CMD cp --allow-nondistributable-artifacts --insecure timescale/timescaledb:2.14.2-pg13-oss $IMAGE_REGISTRY/timescale/timescaledb:2.14.2-pg13-oss +$CMD cp --allow-nondistributable-artifacts --insecure timescale/timescaledb:2.14.2-pg14-oss $IMAGE_REGISTRY/timescale/timescaledb:2.14.2-pg14-oss +$CMD cp --allow-nondistributable-artifacts --insecure timescale/timescaledb:2.14.2-pg15-oss $IMAGE_REGISTRY/timescale/timescaledb:2.14.2-pg15-oss +$CMD cp --allow-nondistributable-artifacts --insecure timescale/timescaledb:2.14.2-pg16-oss $IMAGE_REGISTRY/timescale/timescaledb:2.14.2-pg16-oss diff --git a/catalog/scripts/postgres/export-images.sh b/catalog/scripts/postgres/export-images.sh new file mode 100755 index 000000000..073c7c248 --- /dev/null +++ b/catalog/scripts/postgres/export-images.sh @@ -0,0 +1,81 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:10.23-alpine images/appscode-images-postgres-10.23-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:10.23-bullseye images/appscode-images-postgres-10.23-bullseye.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:11.22-alpine images/appscode-images-postgres-11.22-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:11.22-bookworm images/appscode-images-postgres-11.22-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:12.17-alpine images/appscode-images-postgres-12.17-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:12.17-bookworm images/appscode-images-postgres-12.17-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:13.13-alpine images/appscode-images-postgres-13.13-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:13.13-bookworm images/appscode-images-postgres-13.13-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:14.10-alpine images/appscode-images-postgres-14.10-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:14.10-bookworm images/appscode-images-postgres-14.10-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:14.13-alpine images/appscode-images-postgres-14.13-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:14.13-bookworm images/appscode-images-postgres-14.13-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:15.5-alpine images/appscode-images-postgres-15.5-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:15.5-bookworm images/appscode-images-postgres-15.5-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:15.8-alpine images/appscode-images-postgres-15.8-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:15.8-bookworm images/appscode-images-postgres-15.8-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:16.1-alpine images/appscode-images-postgres-16.1-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:16.1-bookworm images/appscode-images-postgres-16.1-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:16.4-alpine images/appscode-images-postgres-16.4-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/postgres:16.4-bookworm images/appscode-images-postgres-16.4-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/pg-coordinator:v0.33.0 images/kubedb-pg-coordinator-v0.33.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_11.22-alpine images/kubedb-postgres-archiver-v0.10.0_11.22-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_11.22-bookworm images/kubedb-postgres-archiver-v0.10.0_11.22-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_12.17-alpine images/kubedb-postgres-archiver-v0.10.0_12.17-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_12.17-bookworm images/kubedb-postgres-archiver-v0.10.0_12.17-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_13.13-alpine images/kubedb-postgres-archiver-v0.10.0_13.13-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_13.13-bookworm images/kubedb-postgres-archiver-v0.10.0_13.13-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_14.10-alpine images/kubedb-postgres-archiver-v0.10.0_14.10-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_14.10-bookworm images/kubedb-postgres-archiver-v0.10.0_14.10-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_15.5-alpine images/kubedb-postgres-archiver-v0.10.0_15.5-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_15.5-bookworm images/kubedb-postgres-archiver-v0.10.0_15.5-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_16.1-alpine images/kubedb-postgres-archiver-v0.10.0_16.1-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-archiver:v0.10.0_16.1-bookworm images/kubedb-postgres-archiver-v0.10.0_16.1-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/postgres-init:0.16.0 images/kubedb-postgres-init-0.16.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure postgis/postgis:11-3.3 images/postgis-postgis-11-3.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure postgis/postgis:12-3.4 images/postgis-postgis-12-3.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure postgis/postgis:13-3.4 images/postgis-postgis-13-3.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure postgis/postgis:14-3.4 images/postgis-postgis-14-3.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure postgis/postgis:15-3.4 images/postgis-postgis-15-3.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure postgis/postgis:16-3.4 images/postgis-postgis-16-3.4.tar +$CMD pull --allow-nondistributable-artifacts --insecure prometheuscommunity/postgres-exporter:v0.15.0 images/prometheuscommunity-postgres-exporter-v0.15.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure timescale/timescaledb:2.14.2-pg13-oss images/timescale-timescaledb-2.14.2-pg13-oss.tar +$CMD pull --allow-nondistributable-artifacts --insecure timescale/timescaledb:2.14.2-pg14-oss images/timescale-timescaledb-2.14.2-pg14-oss.tar +$CMD pull --allow-nondistributable-artifacts --insecure timescale/timescaledb:2.14.2-pg15-oss images/timescale-timescaledb-2.14.2-pg15-oss.tar +$CMD pull --allow-nondistributable-artifacts --insecure timescale/timescaledb:2.14.2-pg16-oss images/timescale-timescaledb-2.14.2-pg16-oss.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/postgresversions.yaml b/catalog/scripts/postgres/imagelist.yaml similarity index 100% rename from catalog/scripts/postgresversions.yaml rename to catalog/scripts/postgres/imagelist.yaml diff --git a/catalog/scripts/postgres/import-images.sh b/catalog/scripts/postgres/import-images.sh new file mode 100755 index 000000000..4cdc5e248 --- /dev/null +++ b/catalog/scripts/postgres/import-images.sh @@ -0,0 +1,73 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-10.23-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:10.23-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-10.23-bullseye.tar $IMAGE_REGISTRY/appscode-images/postgres:10.23-bullseye +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-11.22-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:11.22-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-11.22-bookworm.tar $IMAGE_REGISTRY/appscode-images/postgres:11.22-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-12.17-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:12.17-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-12.17-bookworm.tar $IMAGE_REGISTRY/appscode-images/postgres:12.17-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-13.13-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:13.13-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-13.13-bookworm.tar $IMAGE_REGISTRY/appscode-images/postgres:13.13-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-14.10-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:14.10-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-14.10-bookworm.tar $IMAGE_REGISTRY/appscode-images/postgres:14.10-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-14.13-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:14.13-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-14.13-bookworm.tar $IMAGE_REGISTRY/appscode-images/postgres:14.13-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-15.5-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:15.5-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-15.5-bookworm.tar $IMAGE_REGISTRY/appscode-images/postgres:15.5-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-15.8-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:15.8-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-15.8-bookworm.tar $IMAGE_REGISTRY/appscode-images/postgres:15.8-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-16.1-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:16.1-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-16.1-bookworm.tar $IMAGE_REGISTRY/appscode-images/postgres:16.1-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-16.4-alpine.tar $IMAGE_REGISTRY/appscode-images/postgres:16.4-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-postgres-16.4-bookworm.tar $IMAGE_REGISTRY/appscode-images/postgres:16.4-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-pg-coordinator-v0.33.0.tar $IMAGE_REGISTRY/kubedb/pg-coordinator:v0.33.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_11.22-alpine.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_11.22-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_11.22-bookworm.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_11.22-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_12.17-alpine.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_12.17-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_12.17-bookworm.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_12.17-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_13.13-alpine.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_13.13-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_13.13-bookworm.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_13.13-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_14.10-alpine.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_14.10-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_14.10-bookworm.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_14.10-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_15.5-alpine.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_15.5-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_15.5-bookworm.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_15.5-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_16.1-alpine.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_16.1-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-archiver-v0.10.0_16.1-bookworm.tar $IMAGE_REGISTRY/kubedb/postgres-archiver:v0.10.0_16.1-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-postgres-init-0.16.0.tar $IMAGE_REGISTRY/kubedb/postgres-init:0.16.0 +$CMD push --allow-nondistributable-artifacts --insecure images/postgis-postgis-11-3.3.tar $IMAGE_REGISTRY/postgis/postgis:11-3.3 +$CMD push --allow-nondistributable-artifacts --insecure images/postgis-postgis-12-3.4.tar $IMAGE_REGISTRY/postgis/postgis:12-3.4 +$CMD push --allow-nondistributable-artifacts --insecure images/postgis-postgis-13-3.4.tar $IMAGE_REGISTRY/postgis/postgis:13-3.4 +$CMD push --allow-nondistributable-artifacts --insecure images/postgis-postgis-14-3.4.tar $IMAGE_REGISTRY/postgis/postgis:14-3.4 +$CMD push --allow-nondistributable-artifacts --insecure images/postgis-postgis-15-3.4.tar $IMAGE_REGISTRY/postgis/postgis:15-3.4 +$CMD push --allow-nondistributable-artifacts --insecure images/postgis-postgis-16-3.4.tar $IMAGE_REGISTRY/postgis/postgis:16-3.4 +$CMD push --allow-nondistributable-artifacts --insecure images/prometheuscommunity-postgres-exporter-v0.15.0.tar $IMAGE_REGISTRY/prometheuscommunity/postgres-exporter:v0.15.0 +$CMD push --allow-nondistributable-artifacts --insecure images/timescale-timescaledb-2.14.2-pg13-oss.tar $IMAGE_REGISTRY/timescale/timescaledb:2.14.2-pg13-oss +$CMD push --allow-nondistributable-artifacts --insecure images/timescale-timescaledb-2.14.2-pg14-oss.tar $IMAGE_REGISTRY/timescale/timescaledb:2.14.2-pg14-oss +$CMD push --allow-nondistributable-artifacts --insecure images/timescale-timescaledb-2.14.2-pg15-oss.tar $IMAGE_REGISTRY/timescale/timescaledb:2.14.2-pg15-oss +$CMD push --allow-nondistributable-artifacts --insecure images/timescale-timescaledb-2.14.2-pg16-oss.tar $IMAGE_REGISTRY/timescale/timescaledb:2.14.2-pg16-oss diff --git a/catalog/scripts/postgres/import-into-k3s.sh b/catalog/scripts/postgres/import-into-k3s.sh new file mode 100755 index 000000000..df35b4c27 --- /dev/null +++ b/catalog/scripts/postgres/import-into-k3s.sh @@ -0,0 +1,71 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-postgres-10.23-alpine.tar +k3s ctr images import images/appscode-images-postgres-10.23-bullseye.tar +k3s ctr images import images/appscode-images-postgres-11.22-alpine.tar +k3s ctr images import images/appscode-images-postgres-11.22-bookworm.tar +k3s ctr images import images/appscode-images-postgres-12.17-alpine.tar +k3s ctr images import images/appscode-images-postgres-12.17-bookworm.tar +k3s ctr images import images/appscode-images-postgres-13.13-alpine.tar +k3s ctr images import images/appscode-images-postgres-13.13-bookworm.tar +k3s ctr images import images/appscode-images-postgres-14.10-alpine.tar +k3s ctr images import images/appscode-images-postgres-14.10-bookworm.tar +k3s ctr images import images/appscode-images-postgres-14.13-alpine.tar +k3s ctr images import images/appscode-images-postgres-14.13-bookworm.tar +k3s ctr images import images/appscode-images-postgres-15.5-alpine.tar +k3s ctr images import images/appscode-images-postgres-15.5-bookworm.tar +k3s ctr images import images/appscode-images-postgres-15.8-alpine.tar +k3s ctr images import images/appscode-images-postgres-15.8-bookworm.tar +k3s ctr images import images/appscode-images-postgres-16.1-alpine.tar +k3s ctr images import images/appscode-images-postgres-16.1-bookworm.tar +k3s ctr images import images/appscode-images-postgres-16.4-alpine.tar +k3s ctr images import images/appscode-images-postgres-16.4-bookworm.tar +k3s ctr images import images/kubedb-pg-coordinator-v0.33.0.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_11.22-alpine.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_11.22-bookworm.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_12.17-alpine.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_12.17-bookworm.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_13.13-alpine.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_13.13-bookworm.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_14.10-alpine.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_14.10-bookworm.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_15.5-alpine.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_15.5-bookworm.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_16.1-alpine.tar +k3s ctr images import images/kubedb-postgres-archiver-v0.10.0_16.1-bookworm.tar +k3s ctr images import images/kubedb-postgres-init-0.16.0.tar +k3s ctr images import images/postgis-postgis-11-3.3.tar +k3s ctr images import images/postgis-postgis-12-3.4.tar +k3s ctr images import images/postgis-postgis-13-3.4.tar +k3s ctr images import images/postgis-postgis-14-3.4.tar +k3s ctr images import images/postgis-postgis-15-3.4.tar +k3s ctr images import images/postgis-postgis-16-3.4.tar +k3s ctr images import images/prometheuscommunity-postgres-exporter-v0.15.0.tar +k3s ctr images import images/timescale-timescaledb-2.14.2-pg13-oss.tar +k3s ctr images import images/timescale-timescaledb-2.14.2-pg14-oss.tar +k3s ctr images import images/timescale-timescaledb-2.14.2-pg15-oss.tar +k3s ctr images import images/timescale-timescaledb-2.14.2-pg16-oss.tar diff --git a/catalog/scripts/proxysql/copy-images.sh b/catalog/scripts/proxysql/copy-images.sh new file mode 100755 index 000000000..73f1da633 --- /dev/null +++ b/catalog/scripts/proxysql/copy-images.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql-exporter:v1.1.0 $IMAGE_REGISTRY/kubedb/proxysql-exporter:v1.1.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.3.2-centos-v2 $IMAGE_REGISTRY/kubedb/proxysql:2.3.2-centos-v2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.3.2-debian-v2 $IMAGE_REGISTRY/kubedb/proxysql:2.3.2-debian-v2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.4.4-centos $IMAGE_REGISTRY/kubedb/proxysql:2.4.4-centos +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.4.4-debian $IMAGE_REGISTRY/kubedb/proxysql:2.4.4-debian +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.6.3-debian $IMAGE_REGISTRY/kubedb/proxysql:2.6.3-debian diff --git a/catalog/scripts/proxysql/export-images.sh b/catalog/scripts/proxysql/export-images.sh new file mode 100755 index 000000000..d8ab48920 --- /dev/null +++ b/catalog/scripts/proxysql/export-images.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql-exporter:v1.1.0 images/kubedb-proxysql-exporter-v1.1.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.3.2-centos-v2 images/kubedb-proxysql-2.3.2-centos-v2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.3.2-debian-v2 images/kubedb-proxysql-2.3.2-debian-v2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.4.4-centos images/kubedb-proxysql-2.4.4-centos.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.4.4-debian images/kubedb-proxysql-2.4.4-debian.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/proxysql:2.6.3-debian images/kubedb-proxysql-2.6.3-debian.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/proxysqlversions.yaml b/catalog/scripts/proxysql/imagelist.yaml similarity index 100% rename from catalog/scripts/proxysqlversions.yaml rename to catalog/scripts/proxysql/imagelist.yaml diff --git a/catalog/scripts/proxysql/import-images.sh b/catalog/scripts/proxysql/import-images.sh new file mode 100755 index 000000000..11566d5e0 --- /dev/null +++ b/catalog/scripts/proxysql/import-images.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-proxysql-exporter-v1.1.0.tar $IMAGE_REGISTRY/kubedb/proxysql-exporter:v1.1.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-proxysql-2.3.2-centos-v2.tar $IMAGE_REGISTRY/kubedb/proxysql:2.3.2-centos-v2 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-proxysql-2.3.2-debian-v2.tar $IMAGE_REGISTRY/kubedb/proxysql:2.3.2-debian-v2 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-proxysql-2.4.4-centos.tar $IMAGE_REGISTRY/kubedb/proxysql:2.4.4-centos +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-proxysql-2.4.4-debian.tar $IMAGE_REGISTRY/kubedb/proxysql:2.4.4-debian +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-proxysql-2.6.3-debian.tar $IMAGE_REGISTRY/kubedb/proxysql:2.6.3-debian diff --git a/catalog/scripts/proxysql/import-into-k3s.sh b/catalog/scripts/proxysql/import-into-k3s.sh new file mode 100755 index 000000000..2bd1d169b --- /dev/null +++ b/catalog/scripts/proxysql/import-into-k3s.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/kubedb-proxysql-exporter-v1.1.0.tar +k3s ctr images import images/kubedb-proxysql-2.3.2-centos-v2.tar +k3s ctr images import images/kubedb-proxysql-2.3.2-debian-v2.tar +k3s ctr images import images/kubedb-proxysql-2.4.4-centos.tar +k3s ctr images import images/kubedb-proxysql-2.4.4-debian.tar +k3s ctr images import images/kubedb-proxysql-2.6.3-debian.tar diff --git a/catalog/scripts/rabbitmq/copy-images.sh b/catalog/scripts/rabbitmq/copy-images.sh new file mode 100755 index 000000000..8823edefd --- /dev/null +++ b/catalog/scripts/rabbitmq/copy-images.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/rabbitmq:3.12.12-management-alpine $IMAGE_REGISTRY/appscode-images/rabbitmq:3.12.12-management-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/rabbitmq:3.13.2-management-alpine $IMAGE_REGISTRY/appscode-images/rabbitmq:3.13.2-management-alpine +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/rabbitmq-init:3.12.12 $IMAGE_REGISTRY/kubedb/rabbitmq-init:3.12.12 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/rabbitmq-init:3.13.2 $IMAGE_REGISTRY/kubedb/rabbitmq-init:3.13.2 diff --git a/catalog/scripts/rabbitmq/export-images.sh b/catalog/scripts/rabbitmq/export-images.sh new file mode 100755 index 000000000..477b59995 --- /dev/null +++ b/catalog/scripts/rabbitmq/export-images.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/rabbitmq:3.12.12-management-alpine images/appscode-images-rabbitmq-3.12.12-management-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/rabbitmq:3.13.2-management-alpine images/appscode-images-rabbitmq-3.13.2-management-alpine.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/rabbitmq-init:3.12.12 images/kubedb-rabbitmq-init-3.12.12.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/rabbitmq-init:3.13.2 images/kubedb-rabbitmq-init-3.13.2.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/rabbitmqversions.yaml b/catalog/scripts/rabbitmq/imagelist.yaml similarity index 100% rename from catalog/scripts/rabbitmqversions.yaml rename to catalog/scripts/rabbitmq/imagelist.yaml diff --git a/catalog/scripts/rabbitmq/import-images.sh b/catalog/scripts/rabbitmq/import-images.sh new file mode 100755 index 000000000..5b48e6f7e --- /dev/null +++ b/catalog/scripts/rabbitmq/import-images.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-rabbitmq-3.12.12-management-alpine.tar $IMAGE_REGISTRY/appscode-images/rabbitmq:3.12.12-management-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-rabbitmq-3.13.2-management-alpine.tar $IMAGE_REGISTRY/appscode-images/rabbitmq:3.13.2-management-alpine +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-rabbitmq-init-3.12.12.tar $IMAGE_REGISTRY/kubedb/rabbitmq-init:3.12.12 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-rabbitmq-init-3.13.2.tar $IMAGE_REGISTRY/kubedb/rabbitmq-init:3.13.2 diff --git a/catalog/scripts/rabbitmq/import-into-k3s.sh b/catalog/scripts/rabbitmq/import-into-k3s.sh new file mode 100755 index 000000000..d2d65a380 --- /dev/null +++ b/catalog/scripts/rabbitmq/import-into-k3s.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-rabbitmq-3.12.12-management-alpine.tar +k3s ctr images import images/appscode-images-rabbitmq-3.13.2-management-alpine.tar +k3s ctr images import images/kubedb-rabbitmq-init-3.12.12.tar +k3s ctr images import images/kubedb-rabbitmq-init-3.13.2.tar diff --git a/catalog/scripts/redis/copy-images.sh b/catalog/scripts/redis/copy-images.sh new file mode 100755 index 000000000..26557d7b2 --- /dev/null +++ b/catalog/scripts/redis/copy-images.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:5.0.14-bullseye $IMAGE_REGISTRY/appscode-images/redis:5.0.14-bullseye +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:6.0.20-bookworm $IMAGE_REGISTRY/appscode-images/redis:6.0.20-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:6.2.14-bookworm $IMAGE_REGISTRY/appscode-images/redis:6.2.14-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.0.14-bookworm $IMAGE_REGISTRY/appscode-images/redis:7.0.14-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.0.15-bookworm $IMAGE_REGISTRY/appscode-images/redis:7.0.15-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.2.3-bookworm $IMAGE_REGISTRY/appscode-images/redis:7.2.3-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.2.4-bookworm $IMAGE_REGISTRY/appscode-images/redis:7.2.4-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.4.0-bookworm $IMAGE_REGISTRY/appscode-images/redis:7.4.0-bookworm +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis-coordinator:v0.28.0 $IMAGE_REGISTRY/kubedb/redis-coordinator:v0.28.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis-init:0.9.0 $IMAGE_REGISTRY/kubedb/redis-init:0.9.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis:4.0.11 $IMAGE_REGISTRY/kubedb/redis:4.0.11 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis_exporter:1.66.0 $IMAGE_REGISTRY/kubedb/redis_exporter:1.66.0 diff --git a/catalog/scripts/redis/export-images.sh b/catalog/scripts/redis/export-images.sh new file mode 100755 index 000000000..2c2a226cb --- /dev/null +++ b/catalog/scripts/redis/export-images.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:5.0.14-bullseye images/appscode-images-redis-5.0.14-bullseye.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:6.0.20-bookworm images/appscode-images-redis-6.0.20-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:6.2.14-bookworm images/appscode-images-redis-6.2.14-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.0.14-bookworm images/appscode-images-redis-7.0.14-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.0.15-bookworm images/appscode-images-redis-7.0.15-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.2.3-bookworm images/appscode-images-redis-7.2.3-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.2.4-bookworm images/appscode-images-redis-7.2.4-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/redis:7.4.0-bookworm images/appscode-images-redis-7.4.0-bookworm.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis-coordinator:v0.28.0 images/kubedb-redis-coordinator-v0.28.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis-init:0.9.0 images/kubedb-redis-init-0.9.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis:4.0.11 images/kubedb-redis-4.0.11.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/redis_exporter:1.66.0 images/kubedb-redis_exporter-1.66.0.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/redisversions.yaml b/catalog/scripts/redis/imagelist.yaml similarity index 100% rename from catalog/scripts/redisversions.yaml rename to catalog/scripts/redis/imagelist.yaml diff --git a/catalog/scripts/redis/import-images.sh b/catalog/scripts/redis/import-images.sh new file mode 100755 index 000000000..406c15a97 --- /dev/null +++ b/catalog/scripts/redis/import-images.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-redis-5.0.14-bullseye.tar $IMAGE_REGISTRY/appscode-images/redis:5.0.14-bullseye +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-redis-6.0.20-bookworm.tar $IMAGE_REGISTRY/appscode-images/redis:6.0.20-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-redis-6.2.14-bookworm.tar $IMAGE_REGISTRY/appscode-images/redis:6.2.14-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-redis-7.0.14-bookworm.tar $IMAGE_REGISTRY/appscode-images/redis:7.0.14-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-redis-7.0.15-bookworm.tar $IMAGE_REGISTRY/appscode-images/redis:7.0.15-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-redis-7.2.3-bookworm.tar $IMAGE_REGISTRY/appscode-images/redis:7.2.3-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-redis-7.2.4-bookworm.tar $IMAGE_REGISTRY/appscode-images/redis:7.2.4-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-redis-7.4.0-bookworm.tar $IMAGE_REGISTRY/appscode-images/redis:7.4.0-bookworm +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-redis-coordinator-v0.28.0.tar $IMAGE_REGISTRY/kubedb/redis-coordinator:v0.28.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-redis-init-0.9.0.tar $IMAGE_REGISTRY/kubedb/redis-init:0.9.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-redis-4.0.11.tar $IMAGE_REGISTRY/kubedb/redis:4.0.11 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-redis_exporter-1.66.0.tar $IMAGE_REGISTRY/kubedb/redis_exporter:1.66.0 diff --git a/catalog/scripts/redis/import-into-k3s.sh b/catalog/scripts/redis/import-into-k3s.sh new file mode 100755 index 000000000..469f0950b --- /dev/null +++ b/catalog/scripts/redis/import-into-k3s.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-redis-5.0.14-bullseye.tar +k3s ctr images import images/appscode-images-redis-6.0.20-bookworm.tar +k3s ctr images import images/appscode-images-redis-6.2.14-bookworm.tar +k3s ctr images import images/appscode-images-redis-7.0.14-bookworm.tar +k3s ctr images import images/appscode-images-redis-7.0.15-bookworm.tar +k3s ctr images import images/appscode-images-redis-7.2.3-bookworm.tar +k3s ctr images import images/appscode-images-redis-7.2.4-bookworm.tar +k3s ctr images import images/appscode-images-redis-7.4.0-bookworm.tar +k3s ctr images import images/kubedb-redis-coordinator-v0.28.0.tar +k3s ctr images import images/kubedb-redis-init-0.9.0.tar +k3s ctr images import images/kubedb-redis-4.0.11.tar +k3s ctr images import images/kubedb-redis_exporter-1.66.0.tar diff --git a/catalog/scripts/schemaregistry/copy-images.sh b/catalog/scripts/schemaregistry/copy-images.sh new file mode 100755 index 000000000..c8e57156a --- /dev/null +++ b/catalog/scripts/schemaregistry/copy-images.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure apicurio/apicurio-registry-kafkasql:2.5.11.Final $IMAGE_REGISTRY/apicurio/apicurio-registry-kafkasql:2.5.11.Final +$CMD cp --allow-nondistributable-artifacts --insecure apicurio/apicurio-registry-mem:2.5.11.Final $IMAGE_REGISTRY/apicurio/apicurio-registry-mem:2.5.11.Final +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/aiven-open/karapace:3.15.0 $IMAGE_REGISTRY/aiven-open/karapace:3.15.0 diff --git a/catalog/scripts/schemaregistry/export-images.sh b/catalog/scripts/schemaregistry/export-images.sh new file mode 100755 index 000000000..d81735099 --- /dev/null +++ b/catalog/scripts/schemaregistry/export-images.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure apicurio/apicurio-registry-kafkasql:2.5.11.Final images/apicurio-apicurio-registry-kafkasql-2.5.11.Final.tar +$CMD pull --allow-nondistributable-artifacts --insecure apicurio/apicurio-registry-mem:2.5.11.Final images/apicurio-apicurio-registry-mem-2.5.11.Final.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/aiven-open/karapace:3.15.0 images/aiven-open-karapace-3.15.0.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/schemaregistryversions.yaml b/catalog/scripts/schemaregistry/imagelist.yaml similarity index 100% rename from catalog/scripts/schemaregistryversions.yaml rename to catalog/scripts/schemaregistry/imagelist.yaml diff --git a/catalog/scripts/schemaregistry/import-images.sh b/catalog/scripts/schemaregistry/import-images.sh new file mode 100755 index 000000000..b1b365696 --- /dev/null +++ b/catalog/scripts/schemaregistry/import-images.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/apicurio-apicurio-registry-kafkasql-2.5.11.Final.tar $IMAGE_REGISTRY/apicurio/apicurio-registry-kafkasql:2.5.11.Final +$CMD push --allow-nondistributable-artifacts --insecure images/apicurio-apicurio-registry-mem-2.5.11.Final.tar $IMAGE_REGISTRY/apicurio/apicurio-registry-mem:2.5.11.Final +$CMD push --allow-nondistributable-artifacts --insecure images/aiven-open-karapace-3.15.0.tar $IMAGE_REGISTRY/aiven-open/karapace:3.15.0 diff --git a/catalog/scripts/schemaregistry/import-into-k3s.sh b/catalog/scripts/schemaregistry/import-into-k3s.sh new file mode 100755 index 000000000..9ad96938c --- /dev/null +++ b/catalog/scripts/schemaregistry/import-into-k3s.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/apicurio-apicurio-registry-kafkasql-2.5.11.Final.tar +k3s ctr images import images/apicurio-apicurio-registry-mem-2.5.11.Final.tar +k3s ctr images import images/aiven-open-karapace-3.15.0.tar diff --git a/catalog/scripts/singlestore/copy-images.sh b/catalog/scripts/singlestore/copy-images.sh new file mode 100755 index 000000000..1be8724b9 --- /dev/null +++ b/catalog/scripts/singlestore/copy-images.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/singlestore-node:alma-8.1.32-e3d3cde6da $IMAGE_REGISTRY/appscode-images/singlestore-node:alma-8.1.32-e3d3cde6da +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/singlestore-node:alma-8.5.30-4f46ab16a5 $IMAGE_REGISTRY/appscode-images/singlestore-node:alma-8.5.30-4f46ab16a5 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/singlestore-node:alma-8.5.7-bf633c1a54 $IMAGE_REGISTRY/appscode-images/singlestore-node:alma-8.5.7-bf633c1a54 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/singlestore-node:alma-8.7.10-95e2357384 $IMAGE_REGISTRY/appscode-images/singlestore-node:alma-8.7.10-95e2357384 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/singlestore-coordinator:v0.4.0 $IMAGE_REGISTRY/kubedb/singlestore-coordinator:v0.4.0 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/singlestore-init:8.1-v2 $IMAGE_REGISTRY/kubedb/singlestore-init:8.1-v2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/singlestore-init:8.5-v2 $IMAGE_REGISTRY/kubedb/singlestore-init:8.5-v2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/singlestore-init:8.7.10-v1 $IMAGE_REGISTRY/kubedb/singlestore-init:8.7.10-v1 +$CMD cp --allow-nondistributable-artifacts --insecure singlestore/cluster-in-a-box:alma-8.1.32-e3d3cde6da-4.0.16-1.17.6 $IMAGE_REGISTRY/singlestore/cluster-in-a-box:alma-8.1.32-e3d3cde6da-4.0.16-1.17.6 +$CMD cp --allow-nondistributable-artifacts --insecure singlestore/cluster-in-a-box:alma-8.5.22-fe61f40cd1-4.1.0-1.17.11 $IMAGE_REGISTRY/singlestore/cluster-in-a-box:alma-8.5.22-fe61f40cd1-4.1.0-1.17.11 +$CMD cp --allow-nondistributable-artifacts --insecure singlestore/cluster-in-a-box:alma-8.5.7-bf633c1a54-4.0.17-1.17.8 $IMAGE_REGISTRY/singlestore/cluster-in-a-box:alma-8.5.7-bf633c1a54-4.0.17-1.17.8 +$CMD cp --allow-nondistributable-artifacts --insecure singlestore/cluster-in-a-box:alma-8.7.10-95e2357384-4.1.0-1.17.14 $IMAGE_REGISTRY/singlestore/cluster-in-a-box:alma-8.7.10-95e2357384-4.1.0-1.17.14 diff --git a/catalog/scripts/singlestore/export-images.sh b/catalog/scripts/singlestore/export-images.sh new file mode 100755 index 000000000..fdc32a4c3 --- /dev/null +++ b/catalog/scripts/singlestore/export-images.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/singlestore-node:alma-8.1.32-e3d3cde6da images/appscode-images-singlestore-node-alma-8.1.32-e3d3cde6da.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/singlestore-node:alma-8.5.30-4f46ab16a5 images/appscode-images-singlestore-node-alma-8.5.30-4f46ab16a5.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/singlestore-node:alma-8.5.7-bf633c1a54 images/appscode-images-singlestore-node-alma-8.5.7-bf633c1a54.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/singlestore-node:alma-8.7.10-95e2357384 images/appscode-images-singlestore-node-alma-8.7.10-95e2357384.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/singlestore-coordinator:v0.4.0 images/kubedb-singlestore-coordinator-v0.4.0.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/singlestore-init:8.1-v2 images/kubedb-singlestore-init-8.1-v2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/singlestore-init:8.5-v2 images/kubedb-singlestore-init-8.5-v2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/singlestore-init:8.7.10-v1 images/kubedb-singlestore-init-8.7.10-v1.tar +$CMD pull --allow-nondistributable-artifacts --insecure singlestore/cluster-in-a-box:alma-8.1.32-e3d3cde6da-4.0.16-1.17.6 images/singlestore-cluster-in-a-box-alma-8.1.32-e3d3cde6da-4.0.16-1.17.6.tar +$CMD pull --allow-nondistributable-artifacts --insecure singlestore/cluster-in-a-box:alma-8.5.22-fe61f40cd1-4.1.0-1.17.11 images/singlestore-cluster-in-a-box-alma-8.5.22-fe61f40cd1-4.1.0-1.17.11.tar +$CMD pull --allow-nondistributable-artifacts --insecure singlestore/cluster-in-a-box:alma-8.5.7-bf633c1a54-4.0.17-1.17.8 images/singlestore-cluster-in-a-box-alma-8.5.7-bf633c1a54-4.0.17-1.17.8.tar +$CMD pull --allow-nondistributable-artifacts --insecure singlestore/cluster-in-a-box:alma-8.7.10-95e2357384-4.1.0-1.17.14 images/singlestore-cluster-in-a-box-alma-8.7.10-95e2357384-4.1.0-1.17.14.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/singlestoreversions.yaml b/catalog/scripts/singlestore/imagelist.yaml similarity index 100% rename from catalog/scripts/singlestoreversions.yaml rename to catalog/scripts/singlestore/imagelist.yaml diff --git a/catalog/scripts/singlestore/import-images.sh b/catalog/scripts/singlestore/import-images.sh new file mode 100755 index 000000000..47864b232 --- /dev/null +++ b/catalog/scripts/singlestore/import-images.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-singlestore-node-alma-8.1.32-e3d3cde6da.tar $IMAGE_REGISTRY/appscode-images/singlestore-node:alma-8.1.32-e3d3cde6da +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-singlestore-node-alma-8.5.30-4f46ab16a5.tar $IMAGE_REGISTRY/appscode-images/singlestore-node:alma-8.5.30-4f46ab16a5 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-singlestore-node-alma-8.5.7-bf633c1a54.tar $IMAGE_REGISTRY/appscode-images/singlestore-node:alma-8.5.7-bf633c1a54 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-singlestore-node-alma-8.7.10-95e2357384.tar $IMAGE_REGISTRY/appscode-images/singlestore-node:alma-8.7.10-95e2357384 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-singlestore-coordinator-v0.4.0.tar $IMAGE_REGISTRY/kubedb/singlestore-coordinator:v0.4.0 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-singlestore-init-8.1-v2.tar $IMAGE_REGISTRY/kubedb/singlestore-init:8.1-v2 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-singlestore-init-8.5-v2.tar $IMAGE_REGISTRY/kubedb/singlestore-init:8.5-v2 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-singlestore-init-8.7.10-v1.tar $IMAGE_REGISTRY/kubedb/singlestore-init:8.7.10-v1 +$CMD push --allow-nondistributable-artifacts --insecure images/singlestore-cluster-in-a-box-alma-8.1.32-e3d3cde6da-4.0.16-1.17.6.tar $IMAGE_REGISTRY/singlestore/cluster-in-a-box:alma-8.1.32-e3d3cde6da-4.0.16-1.17.6 +$CMD push --allow-nondistributable-artifacts --insecure images/singlestore-cluster-in-a-box-alma-8.5.22-fe61f40cd1-4.1.0-1.17.11.tar $IMAGE_REGISTRY/singlestore/cluster-in-a-box:alma-8.5.22-fe61f40cd1-4.1.0-1.17.11 +$CMD push --allow-nondistributable-artifacts --insecure images/singlestore-cluster-in-a-box-alma-8.5.7-bf633c1a54-4.0.17-1.17.8.tar $IMAGE_REGISTRY/singlestore/cluster-in-a-box:alma-8.5.7-bf633c1a54-4.0.17-1.17.8 +$CMD push --allow-nondistributable-artifacts --insecure images/singlestore-cluster-in-a-box-alma-8.7.10-95e2357384-4.1.0-1.17.14.tar $IMAGE_REGISTRY/singlestore/cluster-in-a-box:alma-8.7.10-95e2357384-4.1.0-1.17.14 diff --git a/catalog/scripts/singlestore/import-into-k3s.sh b/catalog/scripts/singlestore/import-into-k3s.sh new file mode 100755 index 000000000..04bc27884 --- /dev/null +++ b/catalog/scripts/singlestore/import-into-k3s.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-singlestore-node-alma-8.1.32-e3d3cde6da.tar +k3s ctr images import images/appscode-images-singlestore-node-alma-8.5.30-4f46ab16a5.tar +k3s ctr images import images/appscode-images-singlestore-node-alma-8.5.7-bf633c1a54.tar +k3s ctr images import images/appscode-images-singlestore-node-alma-8.7.10-95e2357384.tar +k3s ctr images import images/kubedb-singlestore-coordinator-v0.4.0.tar +k3s ctr images import images/kubedb-singlestore-init-8.1-v2.tar +k3s ctr images import images/kubedb-singlestore-init-8.5-v2.tar +k3s ctr images import images/kubedb-singlestore-init-8.7.10-v1.tar +k3s ctr images import images/singlestore-cluster-in-a-box-alma-8.1.32-e3d3cde6da-4.0.16-1.17.6.tar +k3s ctr images import images/singlestore-cluster-in-a-box-alma-8.5.22-fe61f40cd1-4.1.0-1.17.11.tar +k3s ctr images import images/singlestore-cluster-in-a-box-alma-8.5.7-bf633c1a54-4.0.17-1.17.8.tar +k3s ctr images import images/singlestore-cluster-in-a-box-alma-8.7.10-95e2357384-4.1.0-1.17.14.tar diff --git a/catalog/scripts/solr/copy-images.sh b/catalog/scripts/solr/copy-images.sh new file mode 100755 index 000000000..3f55cdfe5 --- /dev/null +++ b/catalog/scripts/solr/copy-images.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/solr:8.11.2 $IMAGE_REGISTRY/appscode-images/solr:8.11.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/solr:9.4.1 $IMAGE_REGISTRY/appscode-images/solr:9.4.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/solr:9.6.1 $IMAGE_REGISTRY/appscode-images/solr:9.6.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/solr-init:8.11.2 $IMAGE_REGISTRY/kubedb/solr-init:8.11.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/solr-init:9.4.1 $IMAGE_REGISTRY/kubedb/solr-init:9.4.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/solr-init:9.6.1 $IMAGE_REGISTRY/kubedb/solr-init:9.6.1 diff --git a/catalog/scripts/solr/export-images.sh b/catalog/scripts/solr/export-images.sh new file mode 100755 index 000000000..02264a2a5 --- /dev/null +++ b/catalog/scripts/solr/export-images.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/solr:8.11.2 images/appscode-images-solr-8.11.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/solr:9.4.1 images/appscode-images-solr-9.4.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/solr:9.6.1 images/appscode-images-solr-9.6.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/solr-init:8.11.2 images/kubedb-solr-init-8.11.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/solr-init:9.4.1 images/kubedb-solr-init-9.4.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/solr-init:9.6.1 images/kubedb-solr-init-9.6.1.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/solrversions.yaml b/catalog/scripts/solr/imagelist.yaml similarity index 100% rename from catalog/scripts/solrversions.yaml rename to catalog/scripts/solr/imagelist.yaml diff --git a/catalog/scripts/solr/import-images.sh b/catalog/scripts/solr/import-images.sh new file mode 100755 index 000000000..6e9fa66d3 --- /dev/null +++ b/catalog/scripts/solr/import-images.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-solr-8.11.2.tar $IMAGE_REGISTRY/appscode-images/solr:8.11.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-solr-9.4.1.tar $IMAGE_REGISTRY/appscode-images/solr:9.4.1 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-solr-9.6.1.tar $IMAGE_REGISTRY/appscode-images/solr:9.6.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-solr-init-8.11.2.tar $IMAGE_REGISTRY/kubedb/solr-init:8.11.2 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-solr-init-9.4.1.tar $IMAGE_REGISTRY/kubedb/solr-init:9.4.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-solr-init-9.6.1.tar $IMAGE_REGISTRY/kubedb/solr-init:9.6.1 diff --git a/catalog/scripts/solr/import-into-k3s.sh b/catalog/scripts/solr/import-into-k3s.sh new file mode 100755 index 000000000..c24234d67 --- /dev/null +++ b/catalog/scripts/solr/import-into-k3s.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-solr-8.11.2.tar +k3s ctr images import images/appscode-images-solr-9.4.1.tar +k3s ctr images import images/appscode-images-solr-9.6.1.tar +k3s ctr images import images/kubedb-solr-init-8.11.2.tar +k3s ctr images import images/kubedb-solr-init-9.4.1.tar +k3s ctr images import images/kubedb-solr-init-9.6.1.tar diff --git a/catalog/scripts/zookeeper/copy-images.sh b/catalog/scripts/zookeeper/copy-images.sh new file mode 100755 index 000000000..faf762cc0 --- /dev/null +++ b/catalog/scripts/zookeeper/copy-images.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane . + +CMD="./crane" + +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/zookeeper:3.7.2 $IMAGE_REGISTRY/appscode-images/zookeeper:3.7.2 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/zookeeper:3.8.3 $IMAGE_REGISTRY/appscode-images/zookeeper:3.8.3 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/zookeeper:3.9.1 $IMAGE_REGISTRY/appscode-images/zookeeper:3.9.1 +$CMD cp --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/zookeeper-init:3.7-v1 $IMAGE_REGISTRY/kubedb/zookeeper-init:3.7-v1 diff --git a/catalog/scripts/zookeeper/export-images.sh b/catalog/scripts/zookeeper/export-images.sh new file mode 100755 index 000000000..f81a35108 --- /dev/null +++ b/catalog/scripts/zookeeper/export-images.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +mkdir -p images + +OS=$(uname -o) +if [ "${OS}" = "GNU/Linux" ]; then + OS=Linux +fi +ARCH=$(uname -m) +if [ "${ARCH}" = "aarch64" ]; then + ARCH=arm64 +fi +curl -sL "https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_${OS}_${ARCH}.tar.gz" >/tmp/go-containerregistry.tar.gz +tar -zxvf /tmp/go-containerregistry.tar.gz -C /tmp/ +mv /tmp/crane images + +CMD="./images/crane" + +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/zookeeper:3.7.2 images/appscode-images-zookeeper-3.7.2.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/zookeeper:3.8.3 images/appscode-images-zookeeper-3.8.3.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/appscode-images/zookeeper:3.9.1 images/appscode-images-zookeeper-3.9.1.tar +$CMD pull --allow-nondistributable-artifacts --insecure ghcr.io/kubedb/zookeeper-init:3.7-v1 images/kubedb-zookeeper-init-3.7-v1.tar + +tar -czvf images.tar.gz images diff --git a/catalog/scripts/zookeeperversions.yaml b/catalog/scripts/zookeeper/imagelist.yaml similarity index 100% rename from catalog/scripts/zookeeperversions.yaml rename to catalog/scripts/zookeeper/imagelist.yaml diff --git a/catalog/scripts/zookeeper/import-images.sh b/catalog/scripts/zookeeper/import-images.sh new file mode 100755 index 000000000..ca616e116 --- /dev/null +++ b/catalog/scripts/zookeeper/import-images.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +CMD="./crane" + +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-zookeeper-3.7.2.tar $IMAGE_REGISTRY/appscode-images/zookeeper:3.7.2 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-zookeeper-3.8.3.tar $IMAGE_REGISTRY/appscode-images/zookeeper:3.8.3 +$CMD push --allow-nondistributable-artifacts --insecure images/appscode-images-zookeeper-3.9.1.tar $IMAGE_REGISTRY/appscode-images/zookeeper:3.9.1 +$CMD push --allow-nondistributable-artifacts --insecure images/kubedb-zookeeper-init-3.7-v1.tar $IMAGE_REGISTRY/kubedb/zookeeper-init:3.7-v1 diff --git a/catalog/scripts/zookeeper/import-into-k3s.sh b/catalog/scripts/zookeeper/import-into-k3s.sh new file mode 100755 index 000000000..58d7ff1de --- /dev/null +++ b/catalog/scripts/zookeeper/import-into-k3s.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -x + +if [ -z "${IMAGE_REGISTRY}" ]; then + echo "IMAGE_REGISTRY is not set" + exit 1 +fi + +TARBALL=${1:-} +tar -zxvf $TARBALL + +k3s ctr images import images/appscode-images-zookeeper-3.7.2.tar +k3s ctr images import images/appscode-images-zookeeper-3.8.3.tar +k3s ctr images import images/appscode-images-zookeeper-3.9.1.tar +k3s ctr images import images/kubedb-zookeeper-init-3.7-v1.tar diff --git a/hack/scripts/generate-catalog.sh b/hack/scripts/generate-catalog.sh new file mode 100755 index 000000000..1830a2212 --- /dev/null +++ b/hack/scripts/generate-catalog.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +# Copyright AppsCode Inc. and Contributors +# +# Licensed under the AppsCode Community License 1.0.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eou pipefail + +image-packer list --root-dir=charts --output-dir=catalog + +image-packer generate-scripts --insecure --allow-nondistributable-artifacts \ + --output-dir=catalog \ + --src=catalog/imagelist.yaml + +declare -a components=( + cassandra + clickhouse + druid + elasticsearch + ferretdb + kafka + kafkaconnector + mariadb + memcached + mongodb + mssqlserver + mysql + operator + perconaxtradb + pgbouncer + pgpool + postgres + proxysql + rabbitmq + redis + schemaregistry + singlestore + solr + zookeeper +) + +for component in "${components[@]}"; do + image-packer generate-scripts --insecure --allow-nondistributable-artifacts \ + --output-dir=catalog/scripts/$component \ + --src=catalog/scripts/$component/imagelist.yaml +done + +make add-license fmt