Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dind/pink CI test.yml scenario (requires registry)
- Loading branch information
Showing
5 changed files
with
121 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Additional configuration for testing dind | ||
# You must create configmap/insecure-registries-dind first to allow testing with an | ||
# insecure http registry | ||
# https://docs.docker.com/registry/insecure/ | ||
|
||
config: | ||
BinderHub: | ||
use_registry: true | ||
|
||
imageBuilderType: dind | ||
|
||
dind: | ||
daemonset: | ||
extraVolumeMounts: | ||
- name: insecure-registries-dind | ||
mountPath: /etc/docker/daemon.json | ||
subPath: daemon.json | ||
extraVolumes: | ||
- name: insecure-registries-dind | ||
configMap: | ||
name: insecure-registries-dind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Additional configuration for testing podman | ||
# You must create configmap/insecure-registries-pink first to allow testing with an | ||
# insecure http registry | ||
|
||
config: | ||
BinderHub: | ||
use_registry: true | ||
|
||
imageBuilderType: pink | ||
|
||
pink: | ||
daemonset: | ||
extraArgs: | ||
- --log-level=debug | ||
extraVolumeMounts: | ||
- name: insecure-registries-pink | ||
mountPath: /etc/containers/registries.conf.d/100-insecure-registries-pink.conf | ||
subPath: 100-insecure-registries-pink.conf | ||
extraVolumes: | ||
- name: insecure-registries-pink | ||
configMap: | ||
name: insecure-registries-pink |
11 changes: 11 additions & 0 deletions
11
testing/k8s-binder-k8s-hub/cm-insecure-registries-dind.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# REGISTRY_HOST='HOST:PORT' envsubst < cm-insecure-registries-dind.yaml | kubectl apply -f - | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: insecure-registries-dind | ||
data: | ||
daemon.json: | | ||
{ | ||
"insecure-registries": ["$REGISTRY_HOST"], | ||
"debug": true | ||
} |
12 changes: 12 additions & 0 deletions
12
testing/k8s-binder-k8s-hub/cm-insecure-registries-pink.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# REGISTRY_HOST='HOST:PORT' envsubst < cm-insecure-registries-pink.yaml | kubectl apply -f - | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: insecure-registries-pink | ||
data: | ||
100-insecure-registries-pink.conf: | | ||
# https://www.redhat.com/sysadmin/manage-container-registries | ||
unqualified-search-registries = ["docker.io"] | ||
[[registry]] | ||
location="$REGISTRY_HOST" | ||
insecure=true |