2022-12-05 10:00:21 +00:00
|
|
|
FROM rust:1.65.0-buster
|
2022-07-21 10:00:47 +00:00
|
|
|
|
|
|
|
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 \
|
2022-07-27 11:00:11 +00:00
|
|
|
libclang-dev \
|
2022-07-21 10:00:47 +00:00
|
|
|
golang-cfssl \
|
|
|
|
jq \
|
2022-09-26 11:58:01 +00:00
|
|
|
protobuf-compiler \
|
2022-07-21 10:00:47 +00:00
|
|
|
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
|
|
|
|
|
2022-09-26 11:58:01 +00:00
|
|
|
RUN cargo install diesel_cli --version 2.0.0 --no-default-features --features postgres
|
2022-07-21 10:00:47 +00:00
|
|
|
RUN cargo install cargo-deb
|
|
|
|
RUN cargo install cargo-rpm
|
2022-08-07 12:39:36 +00:00
|
|
|
RUN cargo install cargo-bitbake
|
2022-07-21 10:00:47 +00:00
|
|
|
|
|
|
|
WORKDIR $PROJECT_PATH/chirpstack
|