-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from dqops/develop
Version 0.2.0-beta4 with a fast docker build script.
- Loading branch information
Showing
18 changed files
with
91 additions
and
47 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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
FROM openjdk:17-jdk-slim-buster AS dqo-libs | ||
RUN apt-get update && apt-get install -y unzip | ||
|
||
WORKDIR /workspace/app | ||
COPY ./distribution/target/ /workspace/app/temp/ | ||
COPY VERSION /workspace/app/temp/ | ||
RUN unzip /workspace/app/temp/dqo-distribution-$(cat /workspace/app/temp/VERSION)-bin.zip -d /workspace/app/home | ||
WORKDIR /workspace/app/home | ||
RUN mkdir -p /workspace/app/home/expanded && (cd expanded; jar -xf ../jars/dqo-dqops-$(cat /workspace/app/temp/VERSION).jar) && rm /workspace/app/home/jars/dqo-dqops-$(cat /workspace/app/temp/VERSION).jar | ||
|
||
FROM python:3.11.3-slim-bullseye AS dqo-home | ||
WORKDIR /dqo | ||
|
||
# copy dqo home | ||
COPY home home | ||
WORKDIR /dqo/home | ||
RUN rm -rf venv/ | ||
|
||
# recreate venv | ||
ENV VIRTUAL_ENV=/dqo/home/venv | ||
RUN python3 -m venv $VIRTUAL_ENV | ||
ENV PATH="$VIRTUAL_ENV/bin:$PATH" | ||
RUN cp lib/requirements.txt $VIRTUAL_ENV/home_requirements.txt | ||
RUN pip3 install -r $VIRTUAL_ENV/home_requirements.txt | ||
|
||
RUN python3 -m compileall ./ | ||
|
||
FROM python:3.11.3-slim-bullseye AS dqo-main | ||
EXPOSE 8888 | ||
WORKDIR /dqo | ||
|
||
# install java | ||
RUN apt-get update && apt-get install -y ca-certificates-java openjdk-17-jre && apt-get clean | ||
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-$TARGETARCH | ||
ENV PATH=$PATH:$JAVA_HOME/bin | ||
|
||
# dqo launch setup | ||
ENV DQO_HOME=/dqo/home | ||
ENV DQO_USER_HOME=/dqo/userhome | ||
ENV DQO_USER_INITIALIZE_USER_HOME=true | ||
RUN mkdir $DQO_USER_HOME | ||
RUN touch $DQO_USER_HOME/.DQO_USER_HOME_NOT_MOUNTED | ||
COPY --from=dqo-home /dqo/home home | ||
|
||
# copy spring dependencies | ||
ARG DEPENDENCY=/workspace/app/home | ||
COPY --from=dqo-libs ${DEPENDENCY}/jars /dqo/lib | ||
COPY --from=dqo-libs ${DEPENDENCY}/expanded/BOOT-INF/lib /dqo/lib | ||
COPY --from=dqo-libs ${DEPENDENCY}/expanded/META-INF /dqo/META-INF | ||
COPY --from=dqo-libs ${DEPENDENCY}/expanded/BOOT-INF/classes /dqo | ||
ENV JAVA_TOOL_OPTIONS="-Xmx1024m" | ||
ENTRYPOINT ["java", "-cp", "/dqo:/dqo/lib/*", "com.dqops.cli.CliApplication"] |
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 +1 @@ | ||
0.2.0-beta3 | ||
0.2.0-beta4 |
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
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
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
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
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
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 @@ | ||
@echo off | ||
python3 -m pip install --upgrade --user -r ./requirements.txt | ||
python3 -m mkdocs build | ||
python -m pip install --upgrade --user -r ./requirements.txt | ||
python -m mkdocs build | ||
gsutil -m rsync -j html,txt,xml,png,js,css,json,svg,gif -r site gs://docs-dqo-ai/docs/ |