Upgrade plume build scripts

This commit is contained in:
Quentin 2021-05-03 19:09:50 +02:00
parent 925639b678
commit 3df53eaa94
2 changed files with 8 additions and 10 deletions

View file

@ -79,7 +79,7 @@ services:
build: build:
context: ./plume/build/plume context: ./plume/build/plume
args: args:
VERSION: v0.7.0 VERSION: 5424f9110f8749eb7d9f01b44ac8074fc13e0e68
image: superboum/plume:v3 image: superboum/plume:v3
postfix: postfix:

View file

@ -24,15 +24,14 @@ RUN git clone -n https://git.joinplu.me/Plume/Plume.git plume
WORKDIR /opt/plume WORKDIR /opt/plume
RUN git checkout ${VERSION} RUN git checkout ${VERSION}
RUN cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0' WORKDIR /opt/plume/script
RUN chmod a+x ./wasm-deps.sh && sleep 1 && ./wasm-deps.sh
# frontend WORKDIR /opt/plume
RUN cargo install cargo-web RUN cargo install wasm-pack
RUN cargo web deploy -p plume-front --release RUN chmod a+x ./script/plume-front.sh && sleep 1 && ./script/plume-front.sh
# backend RUN cargo install --path ./ --force --no-default-features --features postgres
RUN cargo install --no-default-features --features postgres -f --path . RUN cargo install --path plume-cli --force --no-default-features --features postgres
# cli
RUN cargo install --no-default-features --features postgres --path plume-cli
RUN cargo clean RUN cargo clean
#----------------------------- #-----------------------------
@ -46,7 +45,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /app WORKDIR /app
COPY --from=builder /opt/plume /app COPY --from=builder /opt/plume /app
COPY --from=builder /usr/local/cargo/bin/diesel /usr/local/bin/
COPY --from=builder /usr/local/cargo/bin/plm /usr/local/bin/ COPY --from=builder /usr/local/cargo/bin/plm /usr/local/bin/
COPY --from=builder /usr/local/cargo/bin/plume /usr/local/bin/ COPY --from=builder /usr/local/cargo/bin/plume /usr/local/bin/
COPY plm-start /usr/local/bin/ COPY plm-start /usr/local/bin/