Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit f06d116

Browse files
author
Tobias Brandt
authored
Merge pull request #8 from prql/v0.0.12
Minor release to fix some Docker details and test the homebrew publish workflow.
2 parents 3d4c624 + 4eda4bd commit f06d116

File tree

6 files changed

+29
-15
lines changed

6 files changed

+29
-15
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262

6363
publish-gh-package:
6464
runs-on: ubuntu-latest
65+
needs: publish-to-crates-io
6566
permissions:
6667
contents: read
6768
packages: write

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# pq Changelog
22

3+
## 0.0.12 - 2022-10-24
4+
5+
* Fixed Docker alias command.
6+
* Fixed spaces in table aliases issue.
7+
38
## 0.0.11 - 2022-10-18
49

510
* Fixed metadata step in Github action.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repository = "https://github.com/prql/prql-query"
55
license = "MIT OR Apache-2.0"
66
edition = "2021"
77
rust-version = "1.64.0"
8-
version = "0.0.11"
8+
version = "0.0.12"
99

1010
[[bin]]
1111
name = "pq"

Dockerfile

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
ARG RUST_VERSION=1.64.0-slim-buster
22
ARG DEBIAN_VERSION=stable-slim
33

4-
# --- crates_io ---
5-
# Once we have pq published on crates.io we can use this
6-
#FROM rust:$RUST_VERSION AS crates_io
7-
#ARG PQ_VERSION
8-
#RUN cargo install pq --version $PQ_VERSION
9-
10-
# --- build ---
114
FROM rust:$RUST_VERSION AS build
5+
6+
# --- build-requirements ---
127
RUN apt-get -yq update \
138
&& apt install -y \
149
build-essential \
1510
clang \
1611
libclang-dev \
1712
&& rm -rf /var/lib/apt/lists/*
1813

19-
WORKDIR /app
20-
COPY . .
21-
RUN cargo build --release
14+
# --- build from workdir ---
15+
#WORKDIR /app
16+
#COPY . .
17+
#RUN cargo build --release && \
18+
# mv -v /app/target/release/pq /usr/local/cargo/bin/
19+
20+
# --- build from crates.io ---
21+
#ARG PQ_VERSION
22+
#RUN cargo install prql-query --version $PQ_VERSION
23+
RUN cargo install prql-query
2224

2325
# --- image ---
2426
FROM debian:$DEBIAN_VERSION
2527
WORKDIR /data
26-
COPY --from=build /app/target/release/pq /usr/local/bin/pq
28+
COPY --from=build /usr/local/cargo/bin/pq /usr/local/bin/pq
2729

2830
ENTRYPOINT ["pq"]

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,16 @@ Binaries are built for Windows, macOS and Linux for every release and can be
5656
dowloaded from [Releases](https://github.com/prql/prql-query/releases/)
5757
([latest](https://github.com/prql/prql-query/releases/latest)).
5858

59+
For example on linux you could download and install `pq` with:
60+
61+
VERSION=v0.0.11 wget https://github.com/prql/prql-query/releases/download/$VERSION/pq-x86_64-unknown-linux-gnu.tar.gz && \
62+
tar xvzf pq-x86_64-unknown-linux-gnu.tar.gz --directory ~/.local/bin && \
63+
rm pq-x86_64-unknown-linux-gnu.tar.gz
64+
5965
### Run as a container image (Docker)
6066

61-
docker pull ghcr.io/prql/prql-query:v0.0.11
62-
alias pq="docker run --rm -it -v $(pwd):/data -w /data -u $(id -u):$(id -g) ghcr.io/prql/prql-query:v0.0.11"
67+
docker pull ghcr.io/prql/prql-query
68+
alias pq="docker run --rm -it -v $(pwd):/data -e HOME=/tmp -u $(id -u):$(id -g) ghcr.io/prql/prql-query"
6369
pq --help
6470

6571
### Via Rust toolchain (Cargo)

0 commit comments

Comments
 (0)