62 lines
1.9 KiB
Docker
62 lines
1.9 KiB
Docker
FROM python:3.11 as metrics-base
|
|
WORKDIR /code/
|
|
|
|
FROM metrics-base as metrics-tmg
|
|
RUN git clone https://github.com/OnGoTeam/TMGmod.git
|
|
WORKDIR /code/TMGmod/
|
|
RUN git fetch && git checkout 82db35f2db92572c98d84ef781f64f8d65d2f023
|
|
ENV SRCDIR="build/src"
|
|
ENV SRCPATTERN="*.cs"
|
|
|
|
FROM metrics-base as metrics-radn
|
|
RUN git clone https://gitea.parrrate.ru/PTV/radn-rs.git
|
|
WORKDIR /code/radn-rs/
|
|
RUN git fetch && git checkout 936f41735a4f7913e49fb16c44e89901bf703568
|
|
|
|
FROM metrics-base as metrics-mdbook
|
|
RUN git clone https://github.com/rust-lang/mdBook.git
|
|
WORKDIR /code/mdBook/
|
|
RUN git fetch && git checkout 904aa530b5f59387f19feb0dbe0e959de3f247d2
|
|
|
|
FROM metrics-base as metrics-rustup
|
|
RUN git clone https://github.com/rust-lang/rustup.git
|
|
WORKDIR /code/rustup/
|
|
RUN git fetch && git checkout 849adb7c1b8c97e4145e350a934c3a665f61798e
|
|
|
|
FROM metrics-base as metrics-cargo
|
|
RUN git clone https://github.com/rust-lang/cargo.git
|
|
WORKDIR /code/cargo/
|
|
RUN git fetch && git checkout 5b377cece0e0dd0af686cf53ce4637d5d85c2a10
|
|
|
|
FROM metrics-base as metrics-rust
|
|
RUN git clone https://github.com/rust-lang/rust.git
|
|
WORKDIR /code/rust/
|
|
RUN git fetch && git checkout 32d81eccd64513bacef9dfa1574543ada6b45d85
|
|
|
|
FROM metrics-base as metrics-ocen
|
|
RUN git clone https://github.com/ocen-lang/ocen.git
|
|
WORKDIR /code/ocen/
|
|
RUN git fetch && git checkout 0b1a63d0e141fc3032f10c70b5cae117429e2dcb
|
|
ENV SRCDIR="."
|
|
ENV SRCPATTERN="*.[oa][ec]"
|
|
|
|
FROM metrics-base as metrics-aecor
|
|
RUN git clone https://github.com/mustafaquraish/aecor.git
|
|
WORKDIR /code/aecor/
|
|
RUN git fetch && git checkout f81543a34ee363dcc00e8632fd7cfcd4a3478b23
|
|
ENV SRCDIR="."
|
|
ENV SRCPATTERN="*.[ach]*"
|
|
|
|
FROM metrics-radn as metrics
|
|
COPY metrics.py /code/metrics.py
|
|
RUN python3 /code/metrics.py
|
|
|
|
FROM python:3.11
|
|
RUN python3 -m pip install matplotlib
|
|
RUN python3 -m pip install scipy
|
|
WORKDIR /code/
|
|
COPY --from=metrics /code/metrics.json metrics.json
|
|
RUN mkdir /code/metrics/
|
|
COPY render.py render.py
|
|
RUN python3 render.py
|