Skip to content

Commit

Permalink
added dockerfile and changed some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
msereeyothin committed Apr 4, 2024
1 parent 721feb2 commit c1b51e2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ edition = "2021"
[dependencies]
socketcan = "1.7.0"
paho-mqtt = "0.12.3"
protobuf-codegen = "3.3.0"
protobuf = "3.3.0"
protobuf-codegen = "3.4.0"
protobuf = "3.4.0"
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM rust:1.70

WORKDIR /usr/src/calypso

COPY . .

# install dependenices
RUN apt-get update && apt-get install -y python3-pip cmake
RUN pip install ruamel.yaml==0.18.5
RUN cargo install --path .


# build the project
RUN cargo build --release

CMD [ "calypso", "mqtt", "localhost:1883", "vcan0", "skip_can_configure" ]
2 changes: 1 addition & 1 deletion src/serverdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/// Generated files are compatible only with the same version
/// of protobuf runtime.
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0;
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0;

// @@protoc_insertion_point(message:serverdata.v1.ServerData)
#[derive(PartialEq,Clone,Default,Debug)]
Expand Down

0 comments on commit c1b51e2

Please sign in to comment.