To install a custom package or modify an existing docker image we need to
- run a docker a container from the image we wish to modify
- modify the docker container
- commit the changes to the container as a docker image
- test changes made to image
{ | |
"configs":[ | |
{ | |
"devices":[ | |
"asd2323", | |
"dsfas34" | |
], | |
"config":{ | |
"depth_camera":{ | |
"enable":false |
// Compare eigen with traditional way of calculating large amount of standard deviation | |
// Result (Raspberry PI model 4B - Compiled with GCC 8.3 with -O3) | |
// Eigen: 1071 ms | |
// Traditional: 2464 ms | |
// Result (AMD Ryzen 5 4600G - Compiled with clang 13.0.0 with -O3): | |
// Eigen: 129 ms | |
// Traditional: 777 ms |
#include "string_slice.h" | |
#include "gf_string.h" | |
#include "jansson/jansson.h" | |
#include "pch_gis_runtime.h" | |
#include "tr_stdlib.h" | |
bool StringCharIter::Next(wchar32* cOut, int* consumedBytesOut) { | |
int32_t c; | |
const char* newStr = utf8_iterate(str_, length_, &c); |
To install a custom package or modify an existing docker image we need to
#!/usr/bin/env bash | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt update | |
sudo update-alternatives --remove-all gcc | |
sudo update-alternatives --remove-all g++ | |
sudo apt-get install -y gcc-4.8 g++-4.8 gcc-4.9 g++-4.9 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10 |