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
version: '3.8' | |
services: | |
prometheus: | |
image: prom/prometheus | |
container_name: prometheus | |
restart: 'no' | |
volumes: | |
- prometheus_data:/prometheus | |
- ./prometheus.yml:/etc/prometheus/prometheus.yml |
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: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: dashboard-ingress | |
namespace: kubernetes-dashboard | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
spec: | |
defaultBackend: | |
service: |
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
#Custom data generator class | |
class CactusDataset(Dataset): | |
""" | |
Dataset to generate batches of multiple images and labels from a CSV file. | |
Purpose: To work with CSV files where the format is (file_name, cclass_label) | |
and generate batches of data(images, labels) on-the-fly. | |
""" | |
def __init__(self, df_data, image_path, image_size, transform=None): | |
self.data = df_data | |
self.image_path = image_path |
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
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
run: | |
jupyter notebook --port=8080 --no-browser |
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
[program:{program_name}] | |
directory=/home/{project_name}/api/falcon_api/app | |
environment=PATH=/home/anaconda3/envs/{env_name}/bin | |
command=/home/anaconda3/envs/{env_name}/bin/gunicorn app:api -b 0.0.0.0 | |
autostart=true | |
autorestart=true | |
stderr_logfile=/var/log/{project_name}/{filename}.err.log | |
stdout_logfile=/var/log/{project_name}/{filename}.out.log | |
NOTE: |