-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from MetaCell/develop
Develop
- Loading branch information
Showing
22 changed files
with
180 additions
and
105 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 |
---|---|---|
|
@@ -7,3 +7,5 @@ node_modules | |
.coverage | ||
*.DS_Store | ||
deployment | ||
*.egg-info | ||
*.idea |
76 changes: 76 additions & 0 deletions
76
blueprint/deployment-configuration/codefresh-template.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,76 @@ | ||
version: '1.0' | ||
stages: | ||
- prepare | ||
- build | ||
- deploy | ||
steps: | ||
main_clone: | ||
title: Clone main repository | ||
type: git-clone | ||
stage: prepare | ||
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}' | ||
revision: '${{CF_BRANCH}}' | ||
git: github | ||
post_main_clone: | ||
title: Post main clone | ||
type: parallel | ||
stage: build | ||
steps: | ||
- title: Cloning cloud-harness repository... | ||
type: git-clone | ||
stage: prepare | ||
repo: 'https://github.com/MetaCell/cloud-harness.git' | ||
revision: '${{CLOUDHARNESS_BRANCH}}' | ||
git: github | ||
build_base_images: | ||
title: Build base images | ||
type: parallel | ||
stage: build | ||
steps: | ||
REPLACE_ME | ||
build_static_images: | ||
title: Build static images | ||
type: parallel | ||
stage: build | ||
steps: | ||
REPLACE_ME | ||
build_application_images: | ||
type: parallel | ||
stage: build | ||
steps: | ||
REPLACE_ME | ||
|
||
prepare_deployment: | ||
title: "Prepare helm chart" | ||
image: python:3.7 | ||
stage: deploy | ||
working_directory: . | ||
commands: | ||
- pip install -r cloud-harness/requirements.txt | ||
- harness-deployment . cloud-harness -t ${{CF_REVISION}} -d ${{DOMAIN}} | ||
|
||
prepare_deployment_view: | ||
commands: | ||
- 'helm template ./deployment/helm --debug -n ${{NAME}}' | ||
environment: | ||
- ACTION=auth | ||
- KUBE_CONTEXT=${{NAME}} | ||
image: codefresh/cfstep-helm:2.16.1 | ||
stage: prepare | ||
title: 'View helm chart' | ||
|
||
deployment: | ||
stage: deploy | ||
image: 'codefresh/cfstep-helm:2.16.1' | ||
title: Installing chart | ||
environment: | ||
- CHART_REF=./deployment/helm | ||
- RELEASE_NAME=${{NAME}} | ||
- KUBE_CONTEXT=${{NAME}} | ||
- NAMESPACE=${{NAMESPACE}} | ||
- TILLER_NAMESPACE=kube-system | ||
- CHART_VERSION=0.0.1 | ||
- HELM_REPO_USE_HTTP=false | ||
- HELM_REPO_CONTEXT_PATH= | ||
- TIMEOUT=600 | ||
- VALUESFILE_values=./deployment/helm/values.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,5 @@ | ||
apiVersion: v1 | ||
appVersion: 0.0.1 | ||
description: 'CHANGE DESCRIPTION' | ||
name: 'CHANGE ME' | ||
version: 0.0.1 |
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,2 @@ | ||
domain: CHANGE ME | ||
namespace: CHANGE ME |
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 @@ | ||
# Infrastructure | ||
|
||
Here we put all the resources intended to install and deploy the platform on Kubernetes. | ||
|
||
## Relevant files and directory structure | ||
- `base-images`: base Docker images. Those images can used as base images in CloudHarness apps and tasks. | ||
- `common-images`: Static images. Those images can derive from base images can be also used as base images in CloudHarness apps and tasks. | ||
|
||
## Base images and common images | ||
|
||
The main difference between the base images and common images is that base images are built in the root context, while | ||
common images are built in a local context. | ||
So, base images are general purpose and are mainly used to provide access to custom libraries, while common images can have | ||
a specific purpose (e.g. enable widely used libraries for tasks). | ||
|
||
|
||
|
||
|
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,3 @@ | ||
# Base images | ||
|
||
Here we find base images to inherit from our applications |
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,3 @@ | ||
#Common images | ||
|
||
Here we find common images reused in tasks and applications |
Empty file.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
-e utilities/cloudharness-deploy | ||
pyaml | ||
-e utilities | ||
oyaml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.