Skip to content

Commit

Permalink
Relocate docker/server files to continuous_integration
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbluca committed Jan 8, 2024
1 parent 88ccaaa commit 0eeb338
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- Cargo.toml
- Cargo.lock
- pyproject.toml
- docker/**
- continuous_integration/docker/**
- .github/workflows/docker.yml

# When this workflow is queued, automatically cancel any previous running
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/main.dockerfile
file: ./continuous_integration/docker/main.dockerfile
build-args: DOCKER_META_VERSION=${{ steps.docker_meta_main.outputs.version }}
platforms: ${{ matrix.platform }}
tags: ${{ steps.docker_meta_main.outputs.tags }}
Expand All @@ -68,7 +68,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/cloud.dockerfile
file: ./continuous_integration/docker/cloud.dockerfile
build-args: DOCKER_META_VERSION=${{ steps.docker_meta_main.outputs.version }}
platforms: ${{ matrix.platform }}
tags: ${{ steps.docker_meta_cloud.outputs.tags }}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN sh /rustup-init.sh -y --default-toolchain=stable --profile=minimal \
ENV PATH="/root/.cargo/bin:${PATH}"

# Install conda dependencies for dask-sql
COPY docker/conda.txt /opt/dask_sql/
COPY continuous_integration/docker/conda.txt /opt/dask_sql/
RUN mamba install -y \
# build requirements
"maturin>=1.3,<1.4" \
Expand Down Expand Up @@ -44,7 +44,7 @@ RUN cd /opt/dask_sql/ \
&& CONDA_PREFIX="/opt/conda/" maturin develop

# Set the script to execute
COPY scripts/startup_script.py /opt/dask_sql/startup_script.py
COPY continuous_integration/scripts/startup_script.py /opt/dask_sql/startup_script.py

EXPOSE 8080
ENTRYPOINT [ "/usr/bin/prepare.sh", "/opt/conda/bin/python", "/opt/dask_sql/startup_script.py" ]
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ To run a standalone SQL server in your ``dask`` cluster, follow these three step
FROM nbraun/dask-sql
COPY startup_script.py /opt/dask_sql/startup_script.py
COPY continuous_integration/docker/startup_script.py /opt/dask_sql/startup_script.py
ENTRYPOINT [ "/opt/conda/bin/python", "/opt/dask_sql/startup_script.py" ]
Expand Down

0 comments on commit 0eeb338

Please sign in to comment.