-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See related issue mozilla/sccache#1988 Signed-off-by: vados <[email protected]>
- Loading branch information
Showing
4 changed files
with
47 additions
and
16 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 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 |
---|---|---|
|
@@ -7,7 +7,8 @@ ENV SCCACHE_DIR=/usr/local/sccache | |
|
||
# Install deps | ||
RUN apt update && apt install -y libssl-dev git openssh-client pkg-config curl ca-certificates gnupg wget | ||
RUN cargo install sccache | ||
RUN cargo install cargo-binstall | ||
RUN cargo binstall -y sccache --locked | ||
|
||
ENV CARGO_BUILD_RUSTC_WRAPPER=/usr/local/cargo/bin/sccache | ||
|
||
|
@@ -45,7 +46,6 @@ RUN apt-get update && \ | |
curl libreadline6-dev zlib1g-dev libclang-dev \ | ||
pkg-config cmake nodejs | ||
|
||
|
||
# Add postgres user to root group | ||
RUN useradd --user-group --system --create-home --no-log-init idkit && \ | ||
usermod -aG sudo idkit && \ | ||
|
@@ -64,10 +64,16 @@ RUN chmod g+w -R /usr/share/postgresql/**/extension && \ | |
RUN chmod g+w -R /usr/local/cargo | ||
RUN chmod g+w -R /usr/local/build | ||
|
||
RUN mkdir /usr/local/sccache | ||
RUN chmod g+w -R /usr/local/sccache | ||
|
||
# Install development/build/testing deps | ||
# NOTE: version of cargo-pgrx must be handled speicfically | ||
RUN su idkit -c "cargo install sccache cargo-cache [email protected]" | ||
# NOTE: version of cargo-pgrx must be handled specifically | ||
RUN su idkit -c "cargo install binstall" | ||
|
||
# Initialize pgrx | ||
# Install & Initialize pgrx | ||
# NOTE: pgrx must be reinitialized if cargo-pgrx changes | ||
RUN su idkit -c "cargo install [email protected]" | ||
RUN su idkit -c "cargo pgrx init --pg15 download" | ||
|
||
RUN su idkit -c "cargo binstall -y sccache cargo-cache cargo-get" |
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