Skip to content

Commit

Permalink
including front-end and changing yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoOMaia committed Nov 26, 2023
1 parent 8ece831 commit cc6d2dc
Show file tree
Hide file tree
Showing 17 changed files with 2,564 additions and 57 deletions.
9 changes: 6 additions & 3 deletions Kubernetes/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
labels:
app: playlist-recommender
spec:
## Server Container ##
containers:
- name: cloud-server-1
image: leoomaia/server_cloud
Expand All @@ -22,18 +23,20 @@ spec:
volumeMounts:
- name: persistent-volume
mountPath: /app/models

## ML Container ##
- name: cloud-ml-1
image: leoomaia/ml_cloud
imagePullPolicy: Always
ports:
- containerPort: 32208
volumeMounts:
- name: persistent-volume
mountPath: /app/models
env:
- name: FILE_PATH_DATASET
value: "https://homepages.dcc.ufmg.br/~cunha/hosted/cloudcomp-2023s2-datasets/2023_spotify_ds1.csv"

## Persistent Volume ##
volumes:
- name: persistent-volume
persistentVolumeClaim:
claimName: project-volume-leonardomaia
claimName: project2-pv-leonardomaia
15 changes: 7 additions & 8 deletions Kubernetes/persistent.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
apiVersion: v1

kind: PersistentVolumeClaim
metadata:
namespace: leonardomaia
name: project-volume-leonardomaia
name: project2-pv-leonardomaia
labels:
type: local
spec:
resources:
requests:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: standard
resources:
requests:
storage: 1Gi
selector:
matchLabels:
type: local
volumeName: project2-pv-leonardomaia
4 changes: 2 additions & 2 deletions Kubernetes/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ spec:
app: playlist-recommender
ports:
- protocol: TCP
port: 32196
targetPort: 32196
port: 8008
targetPort: 8008
Binary file modified Pickle/freq.pkl
Binary file not shown.
Binary file modified Pickle/rules.pkl
Binary file not shown.
6 changes: 5 additions & 1 deletion Rest_API/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM python:latest
RUN pip install flask pandas

RUN pip install -r requirements.txt

WORKDIR /app
COPY . /app

EXPOSE 32196

CMD ["python", "server.py", "--host=0.0.0.0"]
1 change: 1 addition & 0 deletions Rest_API/Tracknames/track_names.json

Large diffs are not rendered by default.

Loading

0 comments on commit cc6d2dc

Please sign in to comment.