Skip to content

Commit ed81c4f

Browse files
committed
Change final RUN arduino-cli to CMD
1 parent bdf7522 commit ed81c4f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Firmware/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ RUN arduino-cli lib install "SparkFun Toolkit"@1.0.6
8888
WORKDIR /work
8989
ADD . .
9090

91+
# Get current date
92+
#RUN echo "$(date +'%b_%d_%Y')" > date_scores.txt
93+
#RUN DATE_SCORES=$(cat date_scores.txt) && echo "Date: ${DATE_SCORES}"
94+
#RUN echo "$(date +'%b %d %Y')" > date_no_scores.txt
95+
#RUN DATE_NO_SCORES=$(cat date_no_scores.txt) && echo "Date: ${DATE_NO_SCORES}"
96+
9197
# Patch libmbedtls and libbt
9298
WORKDIR /work/RTK_Everywhere/Patch
9399
RUN ESP_IDF=$(ls /root/.arduino15/packages/esp32/tools/esp32-arduino-libs | grep idf-release) \
@@ -113,7 +119,7 @@ RUN cp RTKEverywhere.csv "/root/.arduino15/packages/esp32/hardware/esp32/${CORE_
113119

114120
# Compile Sketch
115121
WORKDIR /work/RTK_Everywhere
116-
RUN arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=${DEBUG_LEVEL},PSRAM=enabled \
122+
CMD arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=${DEBUG_LEVEL},PSRAM=enabled \
117123
./RTK_Everywhere.ino \
118124
--build-property build.partitions=RTKEverywhere \
119125
--build-property upload.maximum_size=4055040 \
@@ -126,9 +132,3 @@ RUN arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=${DEBUG_LEVEL},PSR
126132
\"-DFIRMWARE_VERSION_MINOR=${FIRMWARE_VERSION_MINOR}\" \
127133
\"-DENABLE_DEVELOPER=${ENABLE_DEVELOPER}\"" \
128134
--export-binaries
129-
130-
# Get current date
131-
#RUN echo "$(date +'%b_%d_%Y')" > date_scores.txt
132-
#RUN DATE_SCORES=$(cat date_scores.txt) && echo "Date: ${DATE_SCORES}"
133-
#RUN echo "$(date +'%b %d %Y')" > date_no_scores.txt
134-
#RUN DATE_NO_SCORES=$(cat date_no_scores.txt) && echo "Date: ${DATE_NO_SCORES}"

0 commit comments

Comments
 (0)