-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt algorithms with names starting with [e-i] (#34)
* feat: adapt algorithms with names starting with [e-i] * feat: fix eif version * fix(eif): use older version of Cython to avoid incompatibilities
- Loading branch information
Sebastian Schmidl
authored
Dec 4, 2023
1 parent
d9f3ed8
commit fc258c3
Showing
35 changed files
with
94 additions
and
64 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Separate build image! | ||
#---------------------------- | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 as build | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 as build | ||
|
||
# install build dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends build-essential; | ||
|
@@ -9,22 +9,24 @@ RUN python -m venv --system-site-packages /opt/venv | |
ENV PATH="/opt/venv/bin:$PATH" | ||
|
||
# build and install dependencies | ||
RUN pip install cython | ||
COPY requirements.txt . | ||
RUN pip install -r ./requirements.txt | ||
RUN pip install cython==0.29.36 | ||
COPY requirements.txt /app/ | ||
RUN pip install -r /app/requirements.txt | ||
#---------------------------- | ||
|
||
# inherit from the python3-base base image | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 as runtime | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 as runtime | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
# specify the main entrypoint to your algorithm code | ||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
ENV PATH="/opt/venv/bin:$PATH" | ||
|
||
COPY --from=build /opt/venv /opt/venv | ||
|
||
# add the algorithm code (in this case only a single file) | ||
COPY algorithm.py . | ||
|
||
ENV PATH="/opt/venv/bin:$PATH" | ||
COPY algorithm.py /app/ | ||
COPY manifest.json /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
numpy | ||
cython | ||
pathlib | ||
eif | ||
eif==2.0.2 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-torch:0.2.5 | ||
FROM ghcr.io/timeeval/python3-torch:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
|
@@ -9,4 +10,5 @@ COPY requirements.txt /app/ | |
RUN pip install -r /app/requirements.txt | ||
|
||
COPY encdec_ad /app/encdec_ad | ||
COPY manifest.json /app/ | ||
COPY algorithm.py /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
COPY requirements.txt /app/ | ||
RUN pip install -r requirements.txt | ||
|
||
COPY ensemble_gi /app/ensemble_gi | ||
COPY manifest.json /app/ | ||
COPY algorithm.py /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
# install algorithm dependencies | ||
COPY requirements.txt /app/ | ||
RUN pip install -r /app/requirements.txt | ||
|
||
COPY manifest.json /app/ | ||
COPY algorithm.py /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
|
@@ -9,4 +10,5 @@ COPY requirements.txt /app/ | |
RUN pip install -r /app/requirements.txt | ||
|
||
COPY fft /app/fft | ||
COPY manifest.json /app/ | ||
COPY algorithm.py /app |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
COPY ./requirements.txt . | ||
RUN pip install -r requirements.txt | ||
COPY ./requirements.txt /app/ | ||
RUN pip install -r /app/requirements.txt | ||
|
||
COPY ./algorithm.py . | ||
COPY ./model.py . | ||
COPY ./manifest.json . | ||
COPY ./algorithm.py /app/ | ||
COPY ./model.py /app/ | ||
COPY ./manifest.json /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
COPY ./requirements.txt . | ||
RUN pip install -r requirements.txt | ||
COPY ./requirements.txt /app/ | ||
RUN pip install -r /app/requirements.txt | ||
|
||
COPY ./algorithm.py . | ||
COPY ./model.py . | ||
COPY ./manifest.json . | ||
COPY ./algorithm.py /app/ | ||
COPY ./model.py /app/ | ||
COPY ./manifest.json /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM gitlab.hpi.de/akita/dependency_proxy/containers/maven:3-openjdk-11-slim as build | ||
FROM maven:3-openjdk-11-slim as build | ||
|
||
WORKDIR /app | ||
|
||
|
@@ -7,10 +7,12 @@ COPY src src | |
RUN mvn package -PsingleCLI -DskipTests | ||
|
||
|
||
FROM registry.gitlab.hpi.de/akita/i/java-base:0.2.5 | ||
FROM ghcr.io/timeeval/java-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses="GPL-2.0" | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.jar" | ||
|
||
COPY manifest.json /app/ | ||
COPY --from=build /app/target/grammarviz2-0.0.1-SNAPSHOT-jar-with-dependencies.jar ${ALGORITHM_MAIN} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
FROM gitlab.hpi.de/akita/dependency_proxy/containers/maven:3-openjdk-11-slim as build | ||
FROM maven:3-openjdk-11-slim as build | ||
|
||
COPY pom.xml /app/ | ||
COPY src /app/src | ||
RUN cd /app && \ | ||
mvn package -PsingleCLI -DskipTests | ||
|
||
FROM registry.gitlab.hpi.de/akita/i/java-base:0.2.5 | ||
FROM ghcr.io/timeeval/java-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected];[email protected]" | ||
LABEL org.opencontainers.image.licenses="GPL-2.0" | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.jar" | ||
|
||
COPY manifest.json /app/ | ||
COPY --from=build /app/target/grammarviz2-0.0.1-SNAPSHOT-jar-with-dependencies.jar ${ALGORITHM_MAIN} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/pyod:0.2.5 | ||
FROM ghcr.io/timeeval/pyod:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
# install algorithm dependencies | ||
COPY requirements.txt /app/ | ||
RUN pip install -r /app/requirements.txt | ||
|
||
COPY algorithm.py . | ||
COPY manifest.json /app/ | ||
COPY algorithm.py /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
COPY requirements.txt /app/ | ||
RUN pip install -r /app/requirements.txt | ||
|
||
COPY health_esn ./health_esn | ||
COPY algorithm.py . | ||
COPY health_esn /app/health_esn/ | ||
COPY manifest.json /app/ | ||
COPY algorithm.py /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses="GPL-2.0" | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
# install algorithm dependencies | ||
COPY requirements.txt /app/ | ||
RUN pip install -r /app/requirements.txt | ||
|
||
COPY manifest.json /app/ | ||
COPY hif.py /app/ | ||
COPY algorithm.py /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 | ||
FROM ghcr.io/timeeval/python3-base:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses="GPL-2.0" | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
COPY requirements.txt . | ||
COPY requirements.txt /app/ | ||
RUN set -eux; \ | ||
pip install --no-cache-dir -r requirements.txt; \ | ||
pip install --no-cache-dir -r /app/requirements.txt; \ | ||
find /usr/local -depth \ | ||
\( \ | ||
\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \ | ||
|
@@ -15,5 +16,6 @@ RUN set -eux; \ | |
\) -exec rm -rf '{}' +; \ | ||
rm -rf /tmp/* /var/tmp/* ~/.cache/pip | ||
|
||
COPY saxpy ./saxpy | ||
COPY algorithm.py . | ||
COPY saxpy /app/saxpy/ | ||
COPY manifest.json /app/ | ||
COPY algorithm.py /app/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM registry.gitlab.hpi.de/akita/i/python3-torch:0.2.5 | ||
FROM ghcr.io/timeeval/python3-torch:0.3.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
|
||
ENV ALGORITHM_MAIN="/app/algorithm.py" | ||
|
||
|
This file contains 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
Oops, something went wrong.