mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
deploying v3.6.6
This commit is contained in:
+2
-1
@@ -35,4 +35,5 @@ http-client.private.env.json
|
||||
127.0.0.1.pem
|
||||
127.0.0.1-key.pem
|
||||
|
||||
resources/poster_cache
|
||||
resources/poster_cache
|
||||
deployment
|
||||
@@ -2,14 +2,13 @@ FROM python:3.11-slim-bullseye
|
||||
|
||||
WORKDIR /mediafusion
|
||||
|
||||
COPY ../Pipfile Pipfile.lock ./
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install pipenv && \
|
||||
apt-get update && \
|
||||
apt-get install -y git
|
||||
|
||||
COPY ../Pipfile Pipfile.lock ./
|
||||
|
||||
RUN pipenv install --deploy --ignore-pipfile
|
||||
|
||||
|
||||
+141
-5
@@ -21,15 +21,19 @@ spec:
|
||||
- name: ocirsecret
|
||||
containers:
|
||||
- name: mediafusion
|
||||
image: ap-singapore-1.ocir.io/axykuon5aont/mediafusion:v3.6.5
|
||||
image: ap-singapore-1.ocir.io/axykuon5aont/mediafusion:v3.6.6
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
env:
|
||||
- name: MONGO_URI
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mediafusion-secrets
|
||||
key: MONGO_URI
|
||||
value: "mongodb://mongodb-service:27017"
|
||||
- name: SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
@@ -63,6 +67,34 @@ spec:
|
||||
- name: mediafusion-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: mediafusion-pvc
|
||||
---
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mongodb-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mongodb
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mongodb
|
||||
spec:
|
||||
containers:
|
||||
- name: mongodb
|
||||
image: mongo
|
||||
ports:
|
||||
- containerPort: 27017
|
||||
volumeMounts:
|
||||
- name: mongo-storage
|
||||
mountPath: /data/db
|
||||
volumes:
|
||||
- name: mongo-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: mongo-pvc
|
||||
|
||||
---
|
||||
|
||||
@@ -81,6 +113,20 @@ spec:
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mongodb-service
|
||||
spec:
|
||||
selector:
|
||||
app: mongodb
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 27017
|
||||
targetPort: 27017
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
@@ -91,3 +137,93 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: mongo-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
|
||||
---
|
||||
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: tamil-blasters-scraper
|
||||
spec:
|
||||
schedule: "0 */3 * * *" # At minute 0 past every 3rd hour
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: tamil-blasters-scraper
|
||||
image: ap-singapore-1.ocir.io/axykuon5aont/mediafusion:v3.6.6
|
||||
command: ["pipenv", "run", "python3", "-m", "scrappers.tamil_blasters", "--all"]
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
env:
|
||||
- name: MONGO_URI
|
||||
value: "mongodb://mongodb-service:27017"
|
||||
- name: SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mediafusion-secrets
|
||||
key: SECRET_KEY
|
||||
- name: HOST_URL
|
||||
value: "https://mediafusion.fun"
|
||||
- name: ENABLE_SCRAPPER
|
||||
value: "false"
|
||||
- name: POSTER_CACHE_PATH
|
||||
value: "/covers"
|
||||
restartPolicy: OnFailure
|
||||
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: tamilmv-scraper
|
||||
spec:
|
||||
schedule: "30 */3 * * *" # At minute 30 past every 3rd hour
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: tamilmv-scraper
|
||||
image: ap-singapore-1.ocir.io/axykuon5aont/mediafusion:v3.6.6
|
||||
command: ["pipenv", "run", "python3", "-m", "scrappers.tamilmv", "--all"]
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
env:
|
||||
- name: MONGO_URI
|
||||
value: "mongodb://mongodb-service:27017"
|
||||
- name: SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mediafusion-secrets
|
||||
key: SECRET_KEY
|
||||
- name: HOST_URL
|
||||
value: "https://mediafusion.fun"
|
||||
- name: ENABLE_SCRAPPER
|
||||
value: "false"
|
||||
- name: POSTER_CACHE_PATH
|
||||
value: "/covers"
|
||||
restartPolicy: OnFailure
|
||||
|
||||
Reference in New Issue
Block a user