From d760ba62ccd4ce99b4884fa006e7433312f83309 Mon Sep 17 00:00:00 2001 From: stuckatmarine Date: Sun, 3 Nov 2019 19:44:58 -0330 Subject: [PATCH 1/7] move pi setup commands to Dockerfile to get caching --- .../SetupScriptPlusDockerfile/Dockerfile | 19 ++++++++++++++++-- .../SetupScriptPlusDockerfile/README.md | 13 +++++------- .../SetupScriptPlusDockerfile/a.out | Bin 0 -> 8596 bytes .../{piSetup.sh => clangSetup.sh} | 18 ----------------- .../SetupScriptPlusDockerfile/helloTest.sh | 5 +++++ .../testCompile.sh.bak | 5 +++++ .../SetupScriptPlusDockerfile/test_main.cpp | 2 +- 7 files changed, 33 insertions(+), 29 deletions(-) create mode 100644 OnPod/FlightComputer/SetupScriptPlusDockerfile/a.out rename OnPod/FlightComputer/SetupScriptPlusDockerfile/{piSetup.sh => clangSetup.sh} (64%) create mode 100644 OnPod/FlightComputer/SetupScriptPlusDockerfile/helloTest.sh create mode 100644 OnPod/FlightComputer/SetupScriptPlusDockerfile/testCompile.sh.bak diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile b/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile index 2d1d0cb..63a4684 100644 --- a/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile @@ -1,5 +1,20 @@ FROM raspbian/stretch:latest -COPY piSetup.sh . +RUN sudo apt update -y && \ + sudo apt upgrade -y -RUN ./piSetup.sh +RUN sudo apt-get install -y \ + git \ + make \ + curl \ + xz-utils \ + libstdc++6-4.6-dev + +COPY clangSetup.sh /home +COPY helloTest.sh /home +RUN sed -i.bak 's/\r$//' /home/clangSetup.sh && \ + ./home/clangSetup.sh && \ + sed -i.bak 's/\r$//' /home/helloTest.sh && \ + ./home/helloTest.sh + +#RUN echo 'alias helloTest="clang++ /home/data/SetupScriptPlusDockerfile/test_main.cpp; ./home/data/SetupScriptPlusDockerfile/a.out"' >> ~/.bashrc diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md b/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md index 1d64e7c..474e575 100644 --- a/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md @@ -3,13 +3,12 @@ install docker // differes per platform, google it cd into folder with Dockerfile -`docker build -t pi_fc:v1 .` +`docker build -t pi_fc:vb .` -`docker run -it -v path-to-FlightComputer-Dir:/home/data pi_fc:v1 /bin/bash` +`docker run -it -v /c/hyperloop/comp5-software/OnPod/FlightComputer:/home/data pi_fc:vd --entrypoint /bin/bash helloTest` // path-to-FlightComputer-Dir = /c/hyperloop/comp5-software/OnPod/FlightComputer on my windows machine - # General docker cmds `docker images -a` // list images @@ -17,14 +16,12 @@ cd into folder with Dockerfile `docker run -it pi_fc:v1 bin/bash` // run container and open a bash terminal - # Fix for script interpreter error // doz2unix equivalent for pi -`sed -i.bak 's/\r$//' piSetup.sh` +`sed -i.bak 's/\r$//' fileToFix.sh` # Remote SSH setup -turn on ssh via gui +`sudo systemctl enable ssh` +`sudo systemctl start ssh` `ifconfig` // to get ip address - Default: user=pi password=raspberry - diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/a.out b/OnPod/FlightComputer/SetupScriptPlusDockerfile/a.out new file mode 100644 index 0000000000000000000000000000000000000000..3081e0aee834929028f310ba739f7aaba3996ae6 GIT binary patch literal 8596 zcmeHMZ)hCH6`$3e?6WL6vMt+6>ZI$&2{!hvPSM$M{Hc1>o$2^epQr?8$>yTfEoEU?QNV#5P349526HW9Jwd|WUKLhqA;P`gn zQOLvdcfuA?ufHqjrn+*Oc+M?UrsGaIKQ&=_MXQGfsY4r37Y7a>!>y%yL4 zTmw{lR^wveIW7!b6I>(5b1ac_&>m&aW433V#69ezE$Y5<>95zGzPA3hYwz{%>Ug=e z|Ml128L`rdGQaPTPldQy((rtPBVm$OcOI6Y<$j_$FK zJero{lIdc_2X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A*xHRv(?)=YbeKtR18 zYo$O&IX> .bashrc echo 'export LD_LIBRARY_PATH=/usr/local/clang_9.0.0/lib:$LD_LIBRARY_PATH' >> .bashrc . .bashrc clang++ --version -# end clang setup - -sudo systemctl enable ssh -sudo systemctl start ssh - -echo 'Done pi setup script' diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/helloTest.sh b/OnPod/FlightComputer/SetupScriptPlusDockerfile/helloTest.sh new file mode 100644 index 0000000..d96b41f --- /dev/null +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/helloTest.sh @@ -0,0 +1,5 @@ +#!/bin/bash +## custom aliases +# test c++ compilation +clang++ /home/data/SetupScriptPlusDockerfile/test_main.cpp +./home/data/SetupScriptPlusDockerfile/a.out diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/testCompile.sh.bak b/OnPod/FlightComputer/SetupScriptPlusDockerfile/testCompile.sh.bak new file mode 100644 index 0000000..c28a643 --- /dev/null +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/testCompile.sh.bak @@ -0,0 +1,5 @@ +#!/bin/bash +# test c++ compilation +cd /home/data/SetupScriptPlusDockerfile +clang++ test_main.cpp +./a.out diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/test_main.cpp b/OnPod/FlightComputer/SetupScriptPlusDockerfile/test_main.cpp index 0ede7c3..841d811 100644 --- a/OnPod/FlightComputer/SetupScriptPlusDockerfile/test_main.cpp +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/test_main.cpp @@ -2,7 +2,7 @@ int main() { - std::cout << "Hello Paradigm\n"; + std::cout << "\n---- Hello Paradigm!!! ----\n\n"; return 0; } From 3e9c2135d999dc47e43b8549fe4db8a0a02439fd Mon Sep 17 00:00:00 2001 From: stuckatmarine Date: Sat, 16 Nov 2019 15:44:30 -0330 Subject: [PATCH 2/7] clang install cached, helloTest.sh added to /usr/loca/bin --- .../SetupScriptPlusDockerfile/Dockerfile | 18 ++++++++++++------ .../SetupScriptPlusDockerfile/README.md | 7 ++++--- .../SetupScriptPlusDockerfile/helloTest.sh | 4 +++- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile b/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile index 63a4684..015df53 100644 --- a/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile @@ -11,10 +11,16 @@ RUN sudo apt-get install -y \ libstdc++6-4.6-dev COPY clangSetup.sh /home -COPY helloTest.sh /home -RUN sed -i.bak 's/\r$//' /home/clangSetup.sh && \ - ./home/clangSetup.sh && \ - sed -i.bak 's/\r$//' /home/helloTest.sh && \ - ./home/helloTest.sh +RUN cd ~ && \ + wget http://releases.llvm.org/9.0.0/clang+llvm-9.0.0-armv7a-linux-gnueabihf.tar.xz && \ + tar -xvf clang+llvm-9.0.0-armv7a-linux-gnueabihf.tar.xz && \ + rm clang+llvm-9.0.0-armv7a-linux-gnueabihf.tar.xz && \ + mv clang+llvm-9.0.0-armv7a-linux-gnueabihf clang_9.0.0 && \ + sudo mv clang_9.0.0 /usr/local && \ + echo 'export PATH=/usr/local/clang_9.0.0/bin:$PATH' >> ~/.bashrc && \ + echo 'export LD_LIBRARY_PATH=/usr/local/clang_9.0.0/lib:$LD_LIBRARY_PATH' >> ~/.bashrc && \ + . ~/.bashrc && \ + clang++ --version -#RUN echo 'alias helloTest="clang++ /home/data/SetupScriptPlusDockerfile/test_main.cpp; ./home/data/SetupScriptPlusDockerfile/a.out"' >> ~/.bashrc +COPY helloTest.sh /usr/local/bin/ +RUN sed -i.bak 's/\r$//' /usr/local/bin/helloTest.sh diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md b/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md index 474e575..33ac3c9 100644 --- a/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md @@ -3,11 +3,12 @@ install docker // differes per platform, google it cd into folder with Dockerfile -`docker build -t pi_fc:vb .` +`docker build -t pi_fc:v1 .` -`docker run -it -v /c/hyperloop/comp5-software/OnPod/FlightComputer:/home/data pi_fc:vd --entrypoint /bin/bash helloTest` +`docker run -it -v :/home/data --entrypoint /bin/bash pi_fc:v1` -// path-to-FlightComputer-Dir = /c/hyperloop/comp5-software/OnPod/FlightComputer on my windows machine +// my windows machine +// `docker run -it -v /c/hyperloop/comp5-software/OnPod/FlightComputer:/home/data --entrypoint /bin/bash pi_fc:v1` # General docker cmds `docker images -a` // list images diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/helloTest.sh b/OnPod/FlightComputer/SetupScriptPlusDockerfile/helloTest.sh index d96b41f..2912ec2 100644 --- a/OnPod/FlightComputer/SetupScriptPlusDockerfile/helloTest.sh +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/helloTest.sh @@ -1,5 +1,7 @@ #!/bin/bash ## custom aliases # test c++ compilation +. ~/.bashrc +cd ~ clang++ /home/data/SetupScriptPlusDockerfile/test_main.cpp -./home/data/SetupScriptPlusDockerfile/a.out +./a.out From f9999efc99888c25a246866587ab0a6f986ca2f6 Mon Sep 17 00:00:00 2001 From: stuckatmarine Date: Sat, 16 Nov 2019 15:45:12 -0330 Subject: [PATCH 3/7] old a.out and .bak files removed, README updated with new run command --- OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md b/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md index 33ac3c9..e6ea026 100644 --- a/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/README.md @@ -5,11 +5,13 @@ cd into folder with Dockerfile `docker build -t pi_fc:v1 .` -`docker run -it -v :/home/data --entrypoint /bin/bash pi_fc:v1` +`docker run -it -v :/home/data --entrypoint helloTest.sh pi_fc:v1` // my windows machine -// `docker run -it -v /c/hyperloop/comp5-software/OnPod/FlightComputer:/home/data --entrypoint /bin/bash pi_fc:v1` - +// `docker run -it -v /c/hyperloop/comp5-software/OnPod/FlightComputer:/home/data --entrypoint helloTest.sh pi_fc:v1` +// to run with bash shell open +// `docker run -it -v /c/hyperloop/comp5-software/OnPod/FlightComputer:/home/data --entrypoint /bin/bash pi_fc:v1` + # General docker cmds `docker images -a` // list images From b492b066bcec5bdc80bf21ed2a20c3cd051e73e3 Mon Sep 17 00:00:00 2001 From: stuckatmarine Date: Sat, 16 Nov 2019 16:38:33 -0330 Subject: [PATCH 4/7] add chmod +x to helloTest.sh --- OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile b/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile index 015df53..fabd643 100644 --- a/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile @@ -23,4 +23,5 @@ RUN cd ~ && \ clang++ --version COPY helloTest.sh /usr/local/bin/ -RUN sed -i.bak 's/\r$//' /usr/local/bin/helloTest.sh +RUN sed -i.bak 's/\r$//' /usr/local/bin/helloTest.sh && \ + chmod +X /usr/local/bin/helloTest.sh From c6ed65702f40e1eb80826d0d1b32a5dc15a36fa0 Mon Sep 17 00:00:00 2001 From: stuckatmarine Date: Sat, 23 Nov 2019 12:25:44 -0330 Subject: [PATCH 5/7] vs code taskrunner and FC compiling added --- OnPod/FlightComputer/.vscode/tasks.json | 34 ++++++++++++++++++ OnPod/FlightComputer/README.md | 11 ++++++ .../SetupScriptPlusDockerfile/a.out | Bin 8596 -> 0 bytes .../testCompile.sh.bak | 5 --- 4 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 OnPod/FlightComputer/.vscode/tasks.json create mode 100644 OnPod/FlightComputer/README.md delete mode 100644 OnPod/FlightComputer/SetupScriptPlusDockerfile/a.out delete mode 100644 OnPod/FlightComputer/SetupScriptPlusDockerfile/testCompile.sh.bak diff --git a/OnPod/FlightComputer/.vscode/tasks.json b/OnPod/FlightComputer/.vscode/tasks.json new file mode 100644 index 0000000..d6ae241 --- /dev/null +++ b/OnPod/FlightComputer/.vscode/tasks.json @@ -0,0 +1,34 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "echoTest", + "type": "shell", + "command": "echo 'Hello taskrunner test good.'", + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "build FC Image", + "type": "shell", + "command": "docker build -t pi_fc:v1 SetupScriptPlusDockerfile/.", + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "compile and run FC HelloWorld", + "type": "shell", + "command": "docker run -it -v /c/hyperloop/comp5-software/OnPod/FlightComputer:/home/data --entrypoint helloTest.sh pi_fc:v1", + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} diff --git a/OnPod/FlightComputer/README.md b/OnPod/FlightComputer/README.md new file mode 100644 index 0000000..7e484ea --- /dev/null +++ b/OnPod/FlightComputer/README.md @@ -0,0 +1,11 @@ +# Flight Computer devlopment +- Ensure DOcker is installed and running on your machine +## Taskrunner setup for VsCode +- install VsCode `Tasks' extension by actboy168 +- open comp5-software\OnPod\FlightComputer folder with VsCode +- replace .vscode/tasks.json line 28 `compile and run RC HelloWorld` -> `/c/hyperloop/comp5-software/OnPod/FlightComputer` with your path +- Try task buttons in blue taskbar at bottom of VsCode window: + `echoTest` // should print `Hello taskrunner test good.` + `build FC Image` // should build FC image `pi_fc:v1` + `compile and run RC HellowWorld` // should print `---- Hello Paradigm!!! ----` + diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/a.out b/OnPod/FlightComputer/SetupScriptPlusDockerfile/a.out deleted file mode 100644 index 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bpMf@l6nJ?0{pF^D&Fm941pl#K(K zZ<1z?avgfdL33WtqxU-rnwg3mgS)^u1YD1{M?L1QB_Q?o1DWGaLBQOXdYoVD&4A`w zIS>CAS0PZD4LShSBltkAr}9_Wl@j$sJ>oM!t;f4=2PUj)X9PNE#CJn_ykoqI1#sOO z^t|6k2ZwXNyvv+}-rZUWt=4-9H1tZ}LCZVXJoHS^Z9sz7`#ETBPu>*~WLg&1I|GIp z9DUC_AHPL6u8-qh1v0av9`A}v&}+0ueh$casmD9$hqus!NL&D7=~7R9TgSW@$UXvX zaUE{~wLKZ62!h?{(?C7q+d!?yyU}jwHSU9B-UYIs>*F0O3BA*xHRv(?)=YbeKtR18 zYo$O&IX Date: Sat, 23 Nov 2019 12:30:19 -0330 Subject: [PATCH 6/7] clarify path to be replaced in readme for compiling --- OnPod/FlightComputer/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OnPod/FlightComputer/README.md b/OnPod/FlightComputer/README.md index 7e484ea..30f53c2 100644 --- a/OnPod/FlightComputer/README.md +++ b/OnPod/FlightComputer/README.md @@ -1,9 +1,9 @@ # Flight Computer devlopment -- Ensure DOcker is installed and running on your machine +- Ensure Docker is installed and running on your machine ## Taskrunner setup for VsCode - install VsCode `Tasks' extension by actboy168 - open comp5-software\OnPod\FlightComputer folder with VsCode -- replace .vscode/tasks.json line 28 `compile and run RC HelloWorld` -> `/c/hyperloop/comp5-software/OnPod/FlightComputer` with your path +- replace the folder bath in .vscode/tasks.json line 28 command:`compile and run RC HelloWorld`, with your path. replace this -> `/c/hyperloop/comp5-software/OnPod/FlightComputer` - Try task buttons in blue taskbar at bottom of VsCode window: `echoTest` // should print `Hello taskrunner test good.` `build FC Image` // should build FC image `pi_fc:v1` From 2984d0169714f4701710194e85ff9c0cd6b9ae37 Mon Sep 17 00:00:00 2001 From: stuckatmarine Date: Sat, 23 Nov 2019 16:31:56 -0330 Subject: [PATCH 7/7] fix -x error in hello script chmod --- OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile b/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile index fabd643..6cdd7e3 100644 --- a/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile +++ b/OnPod/FlightComputer/SetupScriptPlusDockerfile/Dockerfile @@ -24,4 +24,4 @@ RUN cd ~ && \ COPY helloTest.sh /usr/local/bin/ RUN sed -i.bak 's/\r$//' /usr/local/bin/helloTest.sh && \ - chmod +X /usr/local/bin/helloTest.sh + chmod +x /usr/local/bin/helloTest.sh