aboutsummaryrefslogtreecommitdiff
path: root/app/build/plume
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-10-01 15:25:04 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-10-01 15:25:04 +0200
commitc5eee91b1259c2923ead7020e7dda839b4bf9829 (patch)
tree0761c4c7ec9eeb04ccf6befcfa5dd3bcbaf07b27 /app/build/plume
parent3afe80b1588c0fa127fe1178979b0b4330fe7b98 (diff)
downloadinfrastructure-c5eee91b1259c2923ead7020e7dda839b4bf9829.tar.gz
infrastructure-c5eee91b1259c2923ead7020e7dda839b4bf9829.zip
WIP plume dockerfile
Diffstat (limited to 'app/build/plume')
-rw-r--r--app/build/plume/Dockerfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/app/build/plume/Dockerfile b/app/build/plume/Dockerfile
new file mode 100644
index 0000000..7796fbb
--- /dev/null
+++ b/app/build/plume/Dockerfile
@@ -0,0 +1,39 @@
+FROM debian:bullseye-slim as builder
+
+RUN apt-get update && \
+ apt-get install -y \
+ rustc \
+ cargo \
+ pkg-config \
+ git \
+ curl \
+ postgresql \
+ postgresql-contrib \
+ libpq-dev \
+ gettext \
+ git \
+ curl \
+ gcc \
+ make \
+ openssl \
+ libssl-dev \
+ libclang-dev
+
+ARG VERSION
+WORKDIR /opt
+RUN git clone -n https://git.deuxfleurs.fr/Deuxfleurs/plume.git
+
+WORKDIR /opt/plume
+RUN git checkout ${VERSION}
+
+RUN cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0'
+
+# frontend
+RUN cargo install cargo-web
+RUN cargo web deploy -p plume-front --release
+# backend
+RUN cargo install --no-default-features --features postgres -f
+# cli
+RUN cargo install --no-default-features --features postgres --path plume-cli
+
+