-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Readme doc and modify template to be more intuitive
- Loading branch information
1 parent
62face4
commit dd83a88
Showing
3 changed files
with
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
kind: BuildConfig | ||
apiVersion: build.openshift.io/v1 | ||
metadata: | ||
name: indy-sidecar-init-build | ||
spec: | ||
nodeSelector: null | ||
output: | ||
to: | ||
kind: DockerImage | ||
name: 'quay.io/example/indy-sidecar-init:latest' | ||
pushSecret: | ||
name: example | ||
strategy: | ||
type: Docker | ||
dockerStrategy: | ||
noCache: true | ||
source: | ||
type: Git | ||
git: | ||
uri: 'https://github.com/Commonjava/indy-sidecar-init.git' | ||
ref: master | ||
runPolicy: Serial |
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,18 @@ | ||
# Indy sidecar init | ||
**Deployment** | ||
|
||
The sidecar init container is meant to be init-container part of builder and sidecar pod, provides sidecar with initial repos downloaded from archive service. | ||
|
||
1. Make sure you have right application.yaml from [indy-sidecar](https://github.com/commonjava/indy-sidecar) container, you must set `sidecar.archive-api` and `sidecar.local-repository` for this to work. | ||
|
||
2. mount the same application.yaml across this sidecar-init container as well as the sidecar container. | ||
|
||
3. Add init-container part to the pod deploymentconfig and mount preSeedRepo volume as the sidecar does (or whatever defined it in application.yaml config file) | ||
|
||
Template of the deployment can be found in template/template-sidecar.yaml | ||
|
||
--- | ||
|
||
**Build container image** | ||
|
||
Use Dockerfile or BuildConfig.yaml(for Openshift) to build the container |
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