Skip to content

Commit 5572718

Browse files
committed
alternative solution to build an push on the pi itself
1 parent ad7a3fe commit 5572718

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM rust:bullseye
33
WORKDIR /boot-bot
44
COPY . .
55

6-
RUN apt update
7-
RUN apt install gcc-arm-linux-gnueabihf -y
6+
RUN cargo install --path .
87

9-
RUN rustup target add armv7-unknown-linux-gnueabihf
10-
RUN cargo install --target armv7-unknown-linux-gnueabihf --path .
8+
ENTRYPOINT ["boot_bot"]

docker-build-and-push-local.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# BEFORE starting this script, call 'docker login' to authenticate.
4+
# Replace 'namespace' and 'project' as needed
5+
6+
namespace="codingdepot"
7+
project="boot-bot"
8+
version=$(cargo metadata --no-deps | jq -r .packages[0].version)
9+
10+
docker build --network=host -t ${namespace}/${project}:${version} .
11+
docker push ${namespace}/${project}:${version}

0 commit comments

Comments
 (0)