mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-21 06:03:11 +00:00
35b2f4112d
Clang is used by bindgen to generate the quickjs bindings at compile time.
41 lines
829 B
Plaintext
41 lines
829 B
Plaintext
FROM rust:1.62.0-buster
|
|
|
|
ENV PROJECT_PATH=/chirpstack
|
|
RUN mkdir -p $PROJECT_PATH
|
|
|
|
RUN dpkg --add-architecture armhf
|
|
RUN dpkg --add-architecture arm64
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y \
|
|
make \
|
|
cmake \
|
|
git \
|
|
bash \
|
|
screen \
|
|
postgresql-client \
|
|
libpq-dev \
|
|
mosquitto-clients \
|
|
redis-tools \
|
|
rpm \
|
|
clang \
|
|
libclang-dev \
|
|
golang-cfssl \
|
|
jq \
|
|
gcc-arm-linux-gnueabihf \
|
|
g++-arm-linux-gnueabihf \
|
|
gcc-aarch64-linux-gnu \
|
|
g++-aarch64-linux-gnu \
|
|
zlib1g-dev:armhf \
|
|
zlib1g-dev:arm64
|
|
|
|
RUN rustup component add rustfmt clippy
|
|
RUN rustup target add armv7-unknown-linux-gnueabihf
|
|
RUN rustup target add aarch64-unknown-linux-gnu
|
|
|
|
RUN cargo install diesel_cli --version 2.0.0-rc.1 --no-default-features --features postgres
|
|
RUN cargo install cargo-deb
|
|
RUN cargo install cargo-rpm
|
|
|
|
WORKDIR $PROJECT_PATH/chirpstack
|