This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
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 #8 from prql/v0.0.12
Minor release to fix some Docker details and test the homebrew publish workflow.
- Loading branch information
Showing
6 changed files
with
29 additions
and
15 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
ARG RUST_VERSION=1.64.0-slim-buster | ||
ARG DEBIAN_VERSION=stable-slim | ||
|
||
# --- crates_io --- | ||
# Once we have pq published on crates.io we can use this | ||
#FROM rust:$RUST_VERSION AS crates_io | ||
#ARG PQ_VERSION | ||
#RUN cargo install pq --version $PQ_VERSION | ||
|
||
# --- build --- | ||
FROM rust:$RUST_VERSION AS build | ||
|
||
# --- build-requirements --- | ||
RUN apt-get -yq update \ | ||
&& apt install -y \ | ||
build-essential \ | ||
clang \ | ||
libclang-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN cargo build --release | ||
# --- build from workdir --- | ||
#WORKDIR /app | ||
#COPY . . | ||
#RUN cargo build --release && \ | ||
# mv -v /app/target/release/pq /usr/local/cargo/bin/ | ||
|
||
# --- build from crates.io --- | ||
#ARG PQ_VERSION | ||
#RUN cargo install prql-query --version $PQ_VERSION | ||
RUN cargo install prql-query | ||
|
||
# --- image --- | ||
FROM debian:$DEBIAN_VERSION | ||
WORKDIR /data | ||
COPY --from=build /app/target/release/pq /usr/local/bin/pq | ||
COPY --from=build /usr/local/cargo/bin/pq /usr/local/bin/pq | ||
|
||
ENTRYPOINT ["pq"] |
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