Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image sequencer, infragram, and RPi Cam for Raspberry Pi camera #73

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

jywarren
Copy link
Member

@jywarren jywarren commented Aug 1, 2019

(copy of #53 but against main branch instead of master)

Thanks for opening a pull request! In this repository, opening a PR will initiate the generation of a new Raspberry Pi image, and create an image file you can download and use in your Raspberry Pi.

The changes you add to the pull request, such as adding software to install, will be run on the generated image.

For an example, see the software installed and configured in this pull request: https://github.com/publiclab/image-builder-rpi/pull/15/files

Recipe

Use this space to describe what your "recipe" is intended to install and configure on a Raspberry Pi:


Download instructions

Generating the image will take a few minutes. Once the image is prepared, and if it succeeded, you'll see a green checkmark at the bottom of the pull request. To download the image:

  1. click the green checkmark; you'll go to a page at a URL like https://gitlab.com/publiclab/image-builder-rpi/pipelines/########/builds
  2. On this page, click the Jobs tab, next to Pipeline
  3. Click the green Passed button
  4. Click Download in the right-hand sidebar
  5. Unzip the artifacts.zip file, and also the hypriotos-rpi-camera_web.img.zip within it
  6. Use a program like https://etcher.io/ to flash it to an SD card

You'll also be able to read the output of the image generation in this window.

We hope to create a bot to report back the completed image URL in each pull request. If you can help create such a bot, please contact us at:

#16

Thanks!

@jywarren jywarren added the recipe label Aug 1, 2019
builder/build.sh Outdated
@@ -84,7 +84,7 @@ ls -alh /image_with_kernel_*.tar.gz

# download the ready-made raw image for the RPi
if [ ! -f "${BUILD_RESULT_PATH}/${RAW_IMAGE}.zip" ]; then
wget -q -O "${BUILD_RESULT_PATH}/${RAW_IMAGE}.zip" "https://github.com/hypriot/image-builder-raw/releases/download/${RAW_IMAGE_VERSION}/${RAW_IMAGE}.zip"
wget -q -O "${BUILD_RESULT_PATH}/${RAW_IMAGE}.zip" "https://jenkins.laboratoriopublico.org/job/image-builder-raw/ws/${RAW_IMAGE}.zip"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should revert this, I think?

@jywarren
Copy link
Member Author

jywarren commented Aug 1, 2019

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

ok, and when we had used just python, not python2.7, we had:

+ cp /etc/rpicam_config.txt config.txt
+ bash ./install.sh q
Unknown host QEMU_IFLA type: 50
...
...
...
Unknown host QEMU_IFLA type: 43
sudo: unable to resolve host a872b2f58b43
Pulling docker image gitlab/gitlab-runner-helper:x86_64-de7731dd ...
ERROR: Job failed: execution took longer than 1h0m0s seconds

Hm. Actually it looks like that had worked -- ran past all the npm/javascript installs and just timed out on installing RPi_Cam_Web_Interface. Looking at the silvanmelchior to see if we got that wrong or reverted something...

@jywarren
Copy link
Member Author

jywarren commented Aug 1, 2019

I'll try reverting it back to regular python and seeing if we can get it to not time out on that install script. For record, the script that was running when it timed out was:

https://github.com/silvanmelchior/RPi_Cam_Web_Interface/blob/master/install.sh

And, GitLab can only run jobs for an hour, i think.

versions.config Outdated
@@ -4,11 +4,11 @@ ROOTFS_TAR_CHECKSUM="d1e7e6d48a25b4a206c5df99ecb8815388ec6945e4f97e78413d5a80778

# name of the ready made raw image for RPi
RAW_IMAGE="rpi-raw.img"
RAW_IMAGE_VERSION="v0.2.2"
RAW_IMAGE_CHECKSUM="2fbeb13b7b0f2308dbd0d82780b54c33003ad43d145ff08498b25fb8bbe1c2c6"
RAW_IMAGE_VERSION="master"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And should this be reverted too?

@icarito
Copy link
Member

icarito commented Aug 1, 2019

I tried it a couple of times - the issue I think is that it takes a lot of time to compile image-sequencer dependencies on emulated arm - it takes past the 1H allowed maximum at Gitlab.
It's annoying - we would have to save some time by precompiling - but I don't know how to upload precompiled binaries to npm.

@@ -4,11 +4,11 @@ ROOTFS_TAR_CHECKSUM="d1e7e6d48a25b4a206c5df99ecb8815388ec6945e4f97e78413d5a80778

# name of the ready made raw image for RPi
RAW_IMAGE="rpi-raw.img"
RAW_IMAGE_VERSION="v0.2.2"
RAW_IMAGE_CHECKSUM="2fbeb13b7b0f2308dbd0d82780b54c33003ad43d145ff08498b25fb8bbe1c2c6"
RAW_IMAGE_VERSION="master"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried reverting this file but seem not to be able to???

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how so "not able to" is it a permissions issue?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are finding issues building, it's a good idea to check the upstream project https://github.com/hypriot/image-builder-rpi/blob/master/versions.config - as Raspbian is a moving target that gets updated and requires tweaking the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants