2021-02-12 11:10:54 +01:00
|
|
|
FROM debian:buster-20210208
|
2019-04-01 20:28:23 +02:00
|
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
|
|
|
|
#install native/circleci/build dependancies
|
|
|
|
RUN apt update &&\
|
2019-05-04 15:35:21 +02:00
|
|
|
apt install -y --no-install-recommends git ssh tar gzip ca-certificates default-jre&&\
|
2020-12-08 12:07:13 +01:00
|
|
|
echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" \
|
|
|
|
| tee -a /etc/apt/sources.list.d/caddy-fury.list &&\
|
|
|
|
apt update &&\
|
|
|
|
apt install -y --no-install-recommends binutils-dev build-essential cmake curl gcc gettext git libcurl4-openssl-dev libdw-dev libelf-dev libiberty-dev libpq-dev libsqlite3-dev libssl-dev make openssl pkg-config postgresql postgresql-contrib python zlib1g-dev python3-pip zip unzip libclang-dev clang caddy&&\
|
2019-05-04 15:35:21 +02:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
2019-04-01 20:28:23 +02:00
|
|
|
|
|
|
|
#install and configure rust
|
2021-11-28 00:13:16 +01:00
|
|
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-11-27 -y &&\
|
2019-04-01 20:28:23 +02:00
|
|
|
rustup component add rustfmt clippy &&\
|
2019-04-06 17:41:57 +02:00
|
|
|
rustup component add rust-std --target wasm32-unknown-unknown
|
|
|
|
|
|
|
|
#compile some deps
|
2021-02-11 19:37:37 +01:00
|
|
|
RUN cargo install wasm-pack &&\
|
2019-05-04 15:35:21 +02:00
|
|
|
cargo install grcov &&\
|
|
|
|
strip /root/.cargo/bin/* &&\
|
2019-04-01 20:28:23 +02:00
|
|
|
rm -fr ~/.cargo/registry
|
|
|
|
|
2019-04-06 17:41:57 +02:00
|
|
|
#set some compilation parametters
|
|
|
|
COPY cargo_config /root/.cargo/config
|
|
|
|
|
|
|
|
#install selenium for front end tests
|
|
|
|
RUN pip3 install selenium
|
|
|
|
|
2020-12-08 12:07:13 +01:00
|
|
|
#configure caddy
|
2019-04-06 17:41:57 +02:00
|
|
|
COPY Caddyfile /Caddyfile
|
2019-05-04 15:35:21 +02:00
|
|
|
|
|
|
|
#install crowdin
|
|
|
|
RUN mkdir /crowdin && cd /crowdin &&\
|
|
|
|
curl -O https://downloads.crowdin.com/cli/v2/crowdin-cli.zip &&\
|
|
|
|
unzip crowdin-cli.zip && rm crowdin-cli.zip &&\
|
|
|
|
cd * && mv crowdin-cli.jar /usr/local/bin && cd && rm -rf /crowdin &&\
|
|
|
|
/bin/echo -e '#!/bin/sh\njava -jar /usr/local/bin/crowdin-cli.jar $@' > /usr/local/bin/crowdin &&\
|
|
|
|
chmod +x /usr/local/bin/crowdin
|