Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nikromen committed Feb 10, 2025
1 parent 7083f95 commit 4a44e54
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
6 changes: 2 additions & 4 deletions dist/rpmeta.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ Requires: python3-joblib
Requires: python3-pandas

# TODO: separate into subpackages for server, trainer and fetcher?
# fetcher
# trainer
Recommends: python3-fedora-distro-aliases
Recommends: python3-koji
Recommends: python3-scikit-learn
# copr fetcher
Recommends: python3-tqdm

# trainer
Recommends: python3-scikit-learn
# xgboost not in fedora :/

# server
Expand Down
Empty file modified justfile
100755 → 100644
Empty file.
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ repository = "https://github.com/fedora-copr/rpmeta"
# TODO: I think? maybe lower...
python = "^3.8"
click = ">=8.0"
fedora-distro-aliases = ">=1.4"
joblib = ">=1.0"
pandas = ">=2.0"


[tool.poetry.extras]
server = ["starlette", "uvicorn"]
trainer = ["koji", "tqdm", "fedora-distro-aliases", "scikit-learn", "xgboost"]


[build-system]
Expand Down
29 changes: 28 additions & 1 deletion test/Containerfile
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@
FROM fedora:latest

WORKDIR /app
RUN mkdir -p /app/copy
RUN mkdir -p /app/bind

COPY . /app/copy

# TODO: something is missing for the pandas pkg
#RUN dnf install -y \
# gcc \
# python3-devel \
# poetry \
# && dnf clean all

RUN dnf install -y \
python3-pip \
python3-joblib \
python3-click \
python3-pandas \
python3-scikit-learn \
python3-numpy \
python3-tqdm \
python3-fedora-distro-aliases \
python3-uvicorn \
python3-starlette \
koji \
&& dnf copr enable -y @copr/rpmeta \
&& dnf install -y rpmeta \
&& dnf clean all

#WORKDIR /app/copy
#RUN poetry install --all-extras

WORKDIR /app

0 comments on commit 4a44e54

Please sign in to comment.