Build bestool first in docker chain

This commit is contained in:
Ben V. Brown 2022-12-27 10:47:35 +11:00
parent 533d01aee6
commit ca13c0a2c1
4 changed files with 12 additions and 8 deletions

1
.gitignore vendored
View File

@ -98,3 +98,4 @@ Release/
# configuration file
# *.ini
log.txt
log.txt

View File

@ -1,6 +1,15 @@
FROM rust:1-alpine3.16 as programmer_build
LABEL maintainer="Ben V. Brown <ralim@ralimtek.com>"
WORKDIR /usr/src
RUN apk add --no-cache git musl-dev
RUN git clone https://github.com/Ralim/bestool.git
RUN cd /usr/src/bestool/bestool/ && cargo build --release
FROM alpine:3.16
LABEL maintainer="Ben V. Brown <ralim@ralimtek.com>"
COPY --from=programmer_build /usr/src/bestool/bestool/target/release/bestool /usr/local/bin/bestool
RUN apk add --no-cache gcc-arm-none-eabi newlib-arm-none-eabi make git bash
WORKDIR /src
# Git trust

View File

@ -3,8 +3,10 @@ services:
builder:
stdin_open: true
tty: true
privileged: true
build:
context: .
command: /bin/bash
volumes:
- ./:/src:Z
- /dev/:/dev/

View File

@ -1,8 +0,0 @@
MAKE START: 2022-11-28 10:41:11.124503821
make[1]: Entering directory '/home/caoyin/doc/jisheng_code/js_customer_code/shenzhen_meng_23000yp/best2300yp_open_source/out/open_source'
-------------------------------
REVISION_INFO: 29b195e-dirty:open_source
-------------------------------
make[1]: Leaving directory '/home/caoyin/doc/jisheng_code/js_customer_code/shenzhen_meng_23000yp/best2300yp_open_source/out/open_source'
MAKE END: 2022-11-28 10:41:11.262680315
MAKE TIME: 0.14 seconds