Skip to content

Commit f41b963

Browse files
author
Christopher Bradford
committed
Updated Dockerhub reference to Harbor
1 parent b636e26 commit f41b963

File tree

6 files changed

+80
-6
lines changed

6 files changed

+80
-6
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
set VERSIONS 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1
2+
for VERSION in $VERSIONS
3+
echo "Version: $VERSION"
4+
echo "docker build -t bradfordcp/cass-operator-bundle:$VERSION -f bundle-$VERSION.Dockerfile ."
5+
docker build -t harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION -f bundle-$VERSION.Dockerfile .
6+
7+
echo "docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION"
8+
docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION
9+
end
10+
11+
12+
set BUNDLELIST ""
13+
14+
for VERSION in $VERSIONS
15+
set BUNDLELIST $BUNDLELIST,harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION
16+
end
17+
# Remove ',' from start of bundlelist
18+
set BUNDLELIST (string sub -s 2 $BUNDLELIST)
19+
20+
echo "opm index add --bundles $BUNDLELIST --tag harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest -u docker"
21+
opm index add --bundles $BUNDLELIST --tag harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest -u docker
22+
docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest

docs/developer/olm/catalogsource.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ spec:
77
displayName: Local Catalog
88
publisher: Developer
99
sourceType: grpc
10-
image: bradfordcp/catalog-index:latest
10+
image: harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
kind: PersistentVolume
2+
apiVersion: v1
3+
metadata:
4+
name: cass-operator-test-pv
5+
spec:
6+
capacity:
7+
storage: 100Gi
8+
hostPath:
9+
path: /mnt/pv-data/cass-op-pv
10+
type: ''
11+
accessModes:
12+
- ReadWriteOnce
13+
- ReadWriteMany
14+
- ReadOnlyMany
15+
persistentVolumeReclaimPolicy: Recycle
16+
volumeMode: Filesystem
17+
storageClassName: no-provisioner
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
kind: StorageClass
2+
apiVersion: storage.k8s.io/v1
3+
metadata:
4+
name: no-provisioner
5+
provisioner: kubernetes.io/no-provisioner
6+
reclaimPolicy: Delete
7+
volumeBindingMode: WaitForFirstConsumer

docs/developer/red-hat-packaging.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,8 @@ _Note see Red Hat's [Gitbook](https://redhat-connect.gitbook.io/partner-guide-fo
7979
6. Build bundle container and push to staging repo
8080
8181
```console
82-
docker build -t bradfordcp/cass-operator-bundle:$NEW_VERSION -f bundle-$NEW_VERSION.Dockerfile .
83-
docker push bradfordcp/cass-operator-bundle:$NEW_VERSION
84-
85-
docker tag bradfordcp/cass-operator-bundle:$NEW_VERSION bradfordcp/cass-operator-bundle:latest
86-
docker push bradfordcp/cass-operator-bundle:latest
82+
docker build -t harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$NEW_VERSION -f bundle-$NEW_VERSION.Dockerfile .
83+
docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$NEW_VERSION
8784
```
8885
7. Build local catalog index for testing
8986
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# How to test Red Hat
2+
3+
1. Build all basic containers
4+
- dse-server
5+
- cassandra
6+
- cass-operator
7+
- cass-config-builder
8+
2. Push all to red hat
9+
- Wait for security scans
10+
- Fix issues if any
11+
- Publish, fixup tags
12+
3. Build a bundle (referencing redhat registry for cass-operator)
13+
4. Push the bundle to a _local_ registry
14+
5. Build an index pointed at the _local_ registry
15+
- All versions, not just latest
16+
6. Run OpenShift locally
17+
7. Create cass-operator prereqs
18+
8. Install a `CatalogSource` that references the local index (step 5)
19+
9. Install a `Subscription` that reference the `CatalogSource` (step 8)
20+
10. Check to make sure operator is up
21+
11. Provision a CassandraDatacenter
22+
12. Validate cassdc comes up
23+
13. Check CQLSH, nodetool status, whatever
24+
14. Tear down local openshift
25+
14. Push bundle to Red Hat (step 4)
26+
15. Validate tests pass
27+
16. Publish the bundle
28+
17. Run OpenShift locally
29+
18. Install a `Subscription` that references the _PUBLIC_ openshift catalog
30+
19. Check steps 10-13
31+
20. Tear down local openshift

0 commit comments

Comments
 (0)