Giter Site home page Giter Site logo

ptrsr / pi-ci Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 5.0 6.49 MB

Prepare Raspberry Pi 3, 4 & 5 configurations using a virtual machine.

License: Other

Shell 7.53% Python 92.47%
ansible container continuous-integration docker raspberry-pi reproducibility virtual-machine

pi-ci's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pi-ci's Issues

Really slow performances

Hello there, thanks for this project.

I'm trying it in my desktop with Debian 9 but in pi-ci I'm having really really slow i/o and network performances that make it almost unusable.

I/O in my desktop:

time dd if=/dev/zero of=test.dat bs=1024 count=100000
100000+0 record dentro
100000+0 record fuori
102400000 bytes (102 MB, 98 MiB) copied, 0,314238 s, 326 MB/s

real	0m0,356s
user	0m0,048s
sys	0m0,256s

I/O in pi-ci:

100000+0 records in
100000+0 records out
102400000 bytes (102 MB, 98 MiB) copied, 62.5928 s, 1.6 MB/s

real	1m2.874s
user	0m8.865s
sys	0m49.498s

Network speed in my desktop:

Download: 19.81 Mbit/s
Upload: 18.49 Mbit/s

Network speed in pi-ci:

Download: 1.04 Mbit/s
Upload: 1.00 Mbit/s

I also tested pi-ci in a vm with debian 10 in my proxmox server with almost same results.
Are these the expected performances or I'm having problems?

How to use rpi4 ?

Hi,

This look promising !!!. I would like to emulate the pi4. What need to be changed to get a pi4 emulation ?

Thanx

How To Configure A Different OS?

Please can you describe how to configure a different OS (eg; https://en.opensuse.org/HCL:Raspberry_Pi4). Do I need to checkout and modify the source then build my own docker image, or is it possible to do this using the default image?

Also, where is this specified in the source? I think it's set via environment variables, but I can't find where the environment variables are set.

Thanks!

Cannot run with --device=/dev/mmcblk0

When use https://github.com/ptrsr/pi-ci/blob/master/tools/run.sh file, the command failed with these error:

docker: Error response from daemon: error gathering device information while adding custom device "/dev/mmcblk0": no such file or directory.

Device exists in docker container

pi@raspberrypi:~ $ ls /dev/mmc* -l
brw-rw---- 1 root disk 179, 0 Sep 28 13:36 /dev/mmcblk0
brw-rw---- 1 root disk 179, 1 Sep 28 13:36 /dev/mmcblk0p1
brw-rw---- 1 root disk 179, 2 Sep 28 13:36 /dev/mmcblk0p2

this command works:

docker run --rm -it -v $(realpath .)/dist:/dist ptrsr/pi-ci start

Continuous errors

It is a brilliant solution running in docker. I continuously get error on docker screen about inode checksum error:

[  time] EXT4-fs error (device mmcblk0p2): ext4_lookup:1701: inode #45072: comm <anycommand>: iget: checksum invalid

It is a very new, clean install of dockerfile.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.