Skip to content

Commit

Permalink
feat: Migrated from harbor to GCP artifact registry
Browse files Browse the repository at this point in the history
- Part of Day 2 migrating away from Harbor to Google Artifact registry
 to store and pull docker images

Authored-by: Ramkumar Vengadakrishnan <[email protected]>

[#187089569]- PLEASE READ: END-OF-SERVICE FOR DISTRIBUTION HARBOR EFFECTIVE June 28, 2024
  • Loading branch information
ram-pivot committed Apr 4, 2024
1 parent 6efb31a commit a92c22e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion ci/docker-tile-generator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM harbor-repo.vmware.com/dockerhub-proxy-cache/library/python:3-slim
FROM mirror.gcr.io/python:3-slim

RUN apt-get update && \
apt-get install --yes git wget zip && \
Expand Down
46 changes: 23 additions & 23 deletions ci/pipeline.yml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@ groups:

resource_types:
- name: gcs-resource
type: docker-image
type: registry-image
source:
repository: frodenas/gcs-resource
repository: mirror.gcr.io/frodenas/gcs-resource

- name: slack-notification
type: docker-image
type: registry-image
source:
repository: harbor-repo.vmware.com/dockerhub-proxy-cache/cfcommunity/slack-notification-resource
repository: mirror.gcr.io/cfcommunity/slack-notification-resource
tag: latest

- name: pypi
type: docker-image
type: registry-image
source:
repository: harbor-repo.vmware.com/dockerhub-proxy-cache/cfplatformeng/concourse-pypi-resource
repository: mirror.gcr.io/cfplatformeng/concourse-pypi-resource

- name: pivnet
type: docker-image
type: registry-image
source:
repository: harbor-repo.vmware.com/dockerhub-proxy-cache/pivotalcf/pivnet-resource
repository: mirror.gcr.io/pivotalcf/pivnet-resource
tag: latest-final

- name: shepherd
Expand Down Expand Up @@ -125,23 +125,23 @@ resources:
- name: tile-generator-docker-image
type: docker-image
source:
repository: projects.registry.vmware.com/tanzu_isv_engineering/tile-generator-prerelease
username: ((harbor-public.username))
password: ((harbor-public.token))
repository: us-west1-docker.pkg.dev/isv-tile-partners/tanzu-isv-engineering/tile-generator-prerelease
username: _json_key
password: ((gcp_artifact_registry.service_account_key))

- name: tile-generator-docker-image-release
type: docker-image
source:
repository: projects.registry.vmware.com/tanzu_isv_engineering/tile-generator
username: ((harbor-public.username))
password: ((harbor-public.token))
repository: us-west1-docker.pkg.dev/isv-tile-partners/tanzu-isv-engineering/tile-generator
username: _json_key
password: ((gcp_artifact_registry.service_account_key))

- name: app-docker-image
type: docker-image
source:
repository: harbor-repo.vmware.com/partner_engineering/tile-generator-sample-app
username: ((harbor.username))
password: ((harbor.token))
repository: us-west1-docker.pkg.dev/isv-tile-partners/partner-engineering/tile-generator-sample-app
username: _json_key
password: ((gcp_artifact_registry.service_account_key))

{% endraw %}{% for cluster in clusters %}- name: pcf-environment{{ cluster }}
type: shepherd
Expand Down Expand Up @@ -190,9 +190,9 @@ jobs:
- task: run-unit-tests
config:
image_resource:
type: docker-image
type: registry-image
source:
repository: harbor-repo.vmware.com/dockerhub-proxy-cache/library/python
repository: mirror.gcr.io/python
tag: 3.11-slim
platform: linux
inputs:
Expand Down Expand Up @@ -238,9 +238,9 @@ jobs:
- task: build-package
config:
image_resource:
type: docker-image
type: registry-image
source:
repository: harbor-repo.vmware.com/dockerhub-proxy-cache/library/python
repository: mirror.gcr.io/python
tag: 3.11.4-slim-buster
platform: linux
inputs:
Expand Down Expand Up @@ -325,9 +325,9 @@ jobs:
- task: prepare-docker-build
config:
image_resource:
type: docker-image
type: registry-image
source:
repository: harbor-repo.vmware.com/dockerhub-proxy-cache/library/python
repository: mirror.gcr.io/python
tag: 3-slim
platform: linux
inputs:
Expand Down
2 changes: 1 addition & 1 deletion sample/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM harbor-repo.vmware.com/dockerhub-proxy-cache/library/python:3-slim
FROM mirror.gcr.io/python:3-slim

RUN apt-get update && apt-get install --yes zip

Expand Down

0 comments on commit a92c22e

Please sign in to comment.