This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: vote | |
labels: | |
role: vote | |
annotations: | |
kubernetes.io/change-cause: "image updated to v5" | |
spec: | |
minReadySeconds: 20 |
This file contains hidden or 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
# .github/workflows/mlops-pipeline.yml | |
name: MLOps Pipeline | |
on: | |
push: | |
branches: [ main ] | |
tags: [ 'v*.*.*' ] | |
pull_request: | |
branches: [ main ] | |
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: vote | |
name: vote | |
spec: | |
replicas: 2 | |
selector: |
This file contains hidden or 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
name: Streamlit CI | |
on: | |
push: | |
paths: | |
- 'streamlit_app/**' | |
workflow_dispatch: | |
jobs: | |
build-and-push: |
This file contains hidden or 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
model: | |
best_model: GradientBoosting | |
feature_sets: | |
rfe: | |
- '0' | |
- '1' | |
- '2' | |
- '3' | |
- '4' | |
- '5' |
This file contains hidden or 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
# Use python alpine base image | |
FROM python:3.11-alpine3.17 | |
# Set working directory | |
WORKDIR /app | |
# Copy source code to container | |
COPY . /app | |
# Install dependencies |
This file contains hidden or 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
networks: | |
custom: | |
driver: bridge | |
services: | |
app: | |
image: initcron/petclinic:dev | |
build: | |
context: . | |
dockerfile: Dockerfile.multistage.v1 |
This file contains hidden or 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
name: Trivy Vulnerability Scan | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
trivy: |
This file contains hidden or 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
FROM schoolofdevops/maven:spring | |
WORKDIR /app | |
COPY . . | |
RUN mvn spring-javaformat:apply && \ | |
mvn package -DskipTests && \ | |
mv target/spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar /run/petclinic.jar |
This file contains hidden or 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
services: | |
fastapi: | |
image: docker.io/xxxxxx/fastapi:dev. | |
build: | |
context: "./" | |
dockerfile: "Dockerfile" | |
ports: | |
- "8000:8000" | |
streamlit: |
NewerOlder