File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,14 @@ RUN apt-get -q -y install file wget cpio rsync locales \
1111RUN apt-get -q -y autoremove && apt-get -q -y clean
1212RUN update-locale LC_ALL=C
1313
14+ RUN useradd -ms /bin/bash buildroot
15+
16+ RUN mkdir -p /app/buildroot/dl && chown -R buildroot:buildroot /app/buildroot/dl
17+ RUN mkdir -p /app/buildroot/output && chown -R buildroot:buildroot /app/buildroot/output
18+
1419VOLUME /app/buildroot/dl
1520VOLUME /app/buildroot/output
1621
22+ USER buildroot
23+
1724CMD /bin/bash
Original file line number Diff line number Diff line change 1- version : ' 3.7'
2-
31services :
42 bash : &base
53 build : .
@@ -10,11 +8,11 @@ services:
108 - output:/app/buildroot/output
119 working_dir : /app/buildroot
1210 command : bash
13-
11+
1412 generate_image_donotuse : &generate_image
1513 << : *base
1614 command : bash -x -c "make BR2_EXTERNAL=../aa_wireless_dongle/ O=output/$${BOARD_NAME} $${BOARD_NAME}_defconfig && cd output/$${BOARD_NAME} && make && mkdir -p /app/images/ && cp images/sdcard.img /app/images/sdcard-$${BOARD_NAME}.img"
17-
15+
1816 rpi0w :
1917 << : *generate_image
2018 environment :
@@ -24,7 +22,7 @@ services:
2422 << : *generate_image
2523 environment :
2624 - BOARD_NAME=raspberrypizero2w
27-
25+
2826 rpi3a :
2927 << : *generate_image
3028 environment :
You can’t perform that action at this time.
0 commit comments