| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,5 @@ | |||
| 1 | + # syntax = docker/dockerfile:experimental | ||
| 2 | + | ||
| 1 | 3 | # Multistage Dockerfile to build the Splitgraph engine: because of all the compilation of | |
| 2 | 4 | # FDWs/libraries needed, we have to download a few hundred MB of dev tooling which we don't | |
| 3 | 5 | # need at runtime. So, we define a single "toolchain" image, multiple images that build various | |
@@ -188,7 +190,7 @@ RUN mkdir -p /splitgraph/splitgraph && touch /splitgraph/splitgraph/__init__.py | |||
| 188 | 190 | COPY poetry.lock pyproject.toml README.md /splitgraph/ | |
| 189 | 191 | RUN mkdir /build | |
| 190 | 192 | COPY ./engine/build_scripts/build_splitgraph.sh /build/ | |
| 191 | - RUN /build/build_splitgraph.sh | ||
| 193 | + RUN --mount=type=cache,id=pip-cache,target=/root/.cache/pip /build/build_splitgraph.sh | ||
| 192 | 194 | ||
| 193 | 195 | # Copy the actual Splitgraph code over at this point. | |
| 194 | 196 | COPY ./splitgraph /splitgraph/splitgraph | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,17 @@ | |||
| 1 | - #!/bin/bash -e | ||
| 1 | + #!/bin/bash -ex | ||
| 2 | 2 | ||
| 3 | 3 | # Install the Splitgraph library and the layered querying foreign data wrapper. | |
| 4 | 4 | cd /splitgraph | |
| 5 | 5 | ||
| 6 | - export POETRY_VERSION=1.0.0 | ||
| 6 | + export POETRY_VERSION=1.0.5 | ||
| 7 | 7 | ||
| 8 | 8 | curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python3.8 | |
| 9 | 9 | ||
| 10 | 10 | # Install globally (otherwise we'll need to find a way to get Multicorn to see the venv) | |
| 11 | 11 | ln -s /usr/bin/python3.8 /usr/bin/python | |
| 12 | 12 | source $HOME/.poetry/env | |
| 13 | 13 | poetry config virtualenvs.create false | |
| 14 | + | ||
| 15 | + poetry export -f requirements.txt --without-hashes -o requirements.txt && sed -i "/^-e/d" requirements.txt | ||
| 16 | + pip install -r requirements.txt | ||
| 14 | 17 | poetry install --no-dev | |
| Back | FazBrowse Home | New Git URL |
0 commit comments