Install Ansible with Homebrew on Mac
brew install ansible
Install Visual Studio Code : https://code.visualstudio.com/
| # This is the main Apache server configuration file. It contains the | |
| # configuration directives that give the server its instructions. | |
| # See http://httpd.apache.org/docs/2.4/ for detailed information about | |
| # the directives and /usr/share/doc/apache2/README.Debian about Debian specific | |
| # hints. | |
| # | |
| # | |
| # Summary of how the Apache 2 configuration works in Debian: | |
| # The Apache 2 web server configuration in Debian is quite different to | |
| # upstream's suggested way to configure the web server. This is because Debian's |
| [local] | |
| localhost ansible_connection=local | |
| [lb] | |
| lb ansible_host=localhost ansible_port=2220 ansible_password=codespaces ansible_python_interpreter=/usr/bin/python3 | |
| [app] | |
| app1 ansible_host=localhost ansible_port=2221 ansible_password=codespaces | |
| app2 ansible_host=localhost ansible_port=2222 ansible_password=codespaces |
Install Ansible with Homebrew on Mac
brew install ansible
Install Visual Studio Code : https://code.visualstudio.com/
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: vote | |
| labels: | |
| role: vote | |
| annotations: | |
| kubernetes.io/change-cause: "image updated to v5" | |
| spec: | |
| minReadySeconds: 20 |
| # .github/workflows/mlops-pipeline.yml | |
| name: MLOps Pipeline | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: [ 'v*.*.*' ] | |
| pull_request: | |
| branches: [ main ] | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: vote | |
| name: vote | |
| spec: | |
| replicas: 2 | |
| selector: |
| name: Streamlit CI | |
| on: | |
| push: | |
| paths: | |
| - 'streamlit_app/**' | |
| workflow_dispatch: | |
| jobs: | |
| build-and-push: |
| model: | |
| best_model: GradientBoosting | |
| feature_sets: | |
| rfe: | |
| - '0' | |
| - '1' | |
| - '2' | |
| - '3' | |
| - '4' | |
| - '5' |
| # 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 |
| networks: | |
| custom: | |
| driver: bridge | |
| services: | |
| app: | |
| image: initcron/petclinic:dev | |
| build: | |
| context: . | |
| dockerfile: Dockerfile.multistage.v1 |