-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract deephaven/runtime-base (#1557)
- Loading branch information
1 parent
b46f3f2
commit 2805e6a
Showing
13 changed files
with
142 additions
and
87 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pip==21.3.1 | ||
setuptools==59.0.1 | ||
wheel==0.37.0 |
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,49 @@ | ||
plugins { | ||
id 'com.bmuschko.docker-remote-api' | ||
} | ||
|
||
evaluationDependsOn ':docker-java-and-python' | ||
evaluationDependsOn ':deephaven-jpy' | ||
evaluationDependsOn ':deephaven-wheel' | ||
evaluationDependsOn ':deephaven2-wheel' | ||
|
||
def dockerContext = project.layout.buildDirectory.dir('context') | ||
|
||
def prepareDocker = project.tasks.register('prepareDocker', Sync) { | ||
// deephaven-jpy.whl | ||
def deephavenJpyWheel = project(':deephaven-jpy').tasks.getByName('buildWheel') | ||
|
||
// deephaven.whl | ||
def deephavenWheel = project(':deephaven-wheel').tasks.getByName('buildWheel') | ||
|
||
// deephaven2.whl | ||
def deephaven2Wheel = project(':deephaven2-wheel').tasks.getByName('buildWheel') | ||
|
||
from (deephavenJpyWheel.outputs.files) { | ||
into 'deephaven-jpy-wheel' | ||
} | ||
from (deephavenWheel.outputs.files) { | ||
into 'deephaven-wheel' | ||
} | ||
from (deephaven2Wheel.outputs.files) { | ||
into 'deephaven2-wheel' | ||
} | ||
|
||
from 'src/main/docker' | ||
into dockerContext | ||
} | ||
|
||
Docker.registerDockerImage(project, 'buildDocker') { | ||
// deephaven/java-and-python:local-build | ||
def javaAndPython = project(':docker-java-and-python').tasks.getByName('buildDocker') | ||
|
||
dependsOn prepareDocker | ||
|
||
inputs.files javaAndPython.outputs.files | ||
|
||
inputDir.set dockerContext | ||
|
||
images.add('deephaven/runtime-base:local-build') | ||
} | ||
|
||
assemble.dependsOn buildDocker |
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,39 @@ | ||
FROM deephaven/java-and-python:local-build as install-wheels | ||
|
||
RUN set -eux; \ | ||
apt-get -qq update; \ | ||
apt-get -qq -y --no-install-recommends install liblzo2-2 curl; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# To update the requirements.txt: | ||
# 1. Comment out BLOCK 1 | ||
# 2. Remove the --no-index arguments from the RUNs | ||
# 3. Run `./gradlew docker-runtime-base:build` | ||
# 4. Run `docker run --rm -it deephaven/runtime-base:local-build pip freeze | grep -v " @ file" > docker/runtime-base/src/main/docker/requirements.txt` | ||
# 5. Replace the --no-index arguments from the RUNs | ||
# 6. Uncomment BLOCK 1 | ||
|
||
# START BLOCK 1 | ||
COPY requirements.txt requirements.txt | ||
RUN set -eux; \ | ||
python3 -m pip install --no-cache-dir -r requirements.txt; \ | ||
rm requirements.txt | ||
# END BLOCK 1 | ||
|
||
COPY deephaven-jpy-wheel/ /deephaven-jpy-wheel | ||
RUN set -eux; \ | ||
python3 -m pip install -q --no-index --no-cache-dir /deephaven-jpy-wheel/*.whl; \ | ||
rm -r /deephaven-jpy-wheel | ||
|
||
COPY deephaven-wheel/ /deephaven-wheel | ||
RUN set -eux; \ | ||
python3 -m pip install -q --no-index --no-cache-dir /deephaven-wheel/*.whl; \ | ||
rm -r /deephaven-wheel | ||
|
||
COPY deephaven2-wheel/ /deephaven2-wheel | ||
RUN set -eux; \ | ||
python3 -m pip install -q --no-index --no-cache-dir /deephaven2-wheel/*.whl; \ | ||
rm -r /deephaven2-wheel | ||
|
||
FROM deephaven/java-and-python:local-build | ||
COPY --from=install-wheels / / |
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,9 @@ | ||
dill==0.3.4 | ||
llvmlite==0.37.0 | ||
numba==0.54.1 | ||
numpy==1.20.3 | ||
pandas==1.3.4 | ||
python-dateutil==2.8.2 | ||
pytz==2021.3 | ||
six==1.16.0 | ||
wrapt==1.13.3 |
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