-
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 helm support along with remote builds
- Loading branch information
Showing
15 changed files
with
226 additions
and
32 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,24 @@ | ||
# See: | ||
# - https://app.buildbuddy.io/docs/setup | ||
# - https://www.buildbuddy.io/docs/rbe-setup | ||
# - https://www.buildbuddy.io/docs/rbe-github-actions | ||
|
||
build:remote --host_platform=@buildbuddy_toolchain//:platform | ||
build:remote --platforms=@buildbuddy_toolchain//:platform | ||
build:remote --extra_execution_platforms=@buildbuddy_toolchain//:platform | ||
build:remote --crosstool_top=@buildbuddy_toolchain//:toolchain | ||
build:remote --extra_toolchains=@buildbuddy_toolchain//:cc_toolchain | ||
build:remote --bes_results_url=https://app.buildbuddy.io/invocation/ | ||
build:remote --bes_backend=grpcs://remote.buildbuddy.io | ||
build:remote --remote_executor=grpcs://remote.buildbuddy.io | ||
build:remote --remote_cache=grpcs://remote.buildbuddy.io | ||
build:remote --remote_timeout=3600 | ||
build:remote --remote_header=x-buildbuddy-api-key=M6xoyCQXGmbU7SyJx6GO | ||
build:remote --jobs=50 | ||
build:remote --define=EXECUTOR=remote | ||
|
||
|
||
build:ci --build_metadata=ROLE=CI | ||
build:ci --bes_results_url=https://app.buildbuddy.io/invocation/ | ||
build:ci --bes_backend=grpcs://remote.buildbuddy.io | ||
# build:ci --build_metadata=VISIBILITY=PUBLIC |
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
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
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,31 @@ | ||
# See: https://helm.sh/docs/topics/charts/ | ||
apiVersion: v2 | ||
name: py-devops-fastapi-app-chart | ||
version: 1.0.1 | ||
description: Demo DevOps FastAPI APP | ||
type: application | ||
appVersion: "0.1.1" | ||
keywords: | ||
- FastAPI | ||
- Demo | ||
# home: The URL of this projects home page (optional) | ||
# sources: | ||
# - A list of URLs to source code for this project (optional) | ||
# dependencies: # A list of the chart requirements (optional) | ||
# - name: The name of the chart (nginx) | ||
# version: The version of the chart ("1.2.3") | ||
# repository: (optional) The repository URL ("https://example.com/charts") or alias ("@repo-name") | ||
# condition: (optional) A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled ) | ||
# tags: # (optional) | ||
# - Tags can be used to group charts for enabling/disabling together | ||
# import-values: # (optional) | ||
# - ImportValues holds the mapping of source values to parent key to be imported. Each item can be a string or pair of child/parent sublist items. | ||
# alias: (optional) Alias to be used for the chart. Useful when you have to add the same chart multiple times | ||
# maintainers: # (optional) | ||
# - name: The maintainers name (required for each maintainer) | ||
# email: The maintainers email (optional for each maintainer) | ||
# url: A URL for the maintainer (optional for each maintainer) | ||
# icon: A URL to an SVG or PNG image to be used as an icon (optional). | ||
# deprecated: Whether this chart is deprecated (optional, boolean) | ||
# annotations: | ||
# example: A list of annotations keyed by name (optional). |
19 changes: 19 additions & 0 deletions
19
projects/py_devops_fastapi_app/helm-charts/templates/deployment.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,19 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Chart.Name }} | ||
labels: | ||
app: {{ .Chart.Name }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ .Chart.Name }} | ||
replicas: {{ .Values.replicaCount }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .Chart.Name }} | ||
spec: | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
image: {{ .Values.image }} |
13 changes: 13 additions & 0 deletions
13
projects/py_devops_fastapi_app/helm-charts/templates/service.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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .Chart.Name }} | ||
labels: | ||
app: {{ .Chart.Name }} | ||
spec: | ||
clusterIP: None | ||
ports: | ||
- port: 5000 | ||
name: {{ .Chart.Name }} | ||
selector: | ||
app: {{ .Chart.Name }} |
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,16 @@ | ||
# Default values for acp-client-remake. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
chartManagedNS: true | ||
|
||
image: | ||
repository: flyr.io/bazel/py-devops-fastapi-app | ||
pullPolicy: IfNotPresent | ||
tag: "latest" # appset override | ||
|
||
service: | ||
type: ClusterIP | ||
port: 5000 | ||
|
||
replicaCount: 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
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,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
# See: https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes | ||
|
||
# Remove all container "flyr" images | ||
docker images -a | grep "flyr" | awk '{print $3}' | xargs docker rmi -f | ||
|
||
# Remove all exited containers | ||
docker rm $(docker ps -a -f status=exited -q) |
This file was deleted.
Oops, something went wrong.