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 (wrong branch) #53

Closed
wants to merge 24 commits into from

Conversation

jywarren
Copy link
Member

@jywarren jywarren commented Nov 9, 2018

Note: this is opened against the master branch instead of the correct main branch. However another PR already exists (#73) for this branch against main so we cannot repoint this PR. Keeping it open to preserve the discussion!


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!

Note: a working image can be downloaded here:

https://gitlab.com/publiclab/pi-builder/-/jobs/121890022/artifacts/download

@jywarren
Copy link
Member Author

jywarren commented Nov 9, 2018

trying to do it from a branch in the same repo... based on #50

@jywarren jywarren changed the title Image sequencer Image sequencer, infragram, and RPi Cam for Raspberry Pi camera Nov 9, 2018
@jywarren jywarren added the recipe label Nov 9, 2018
@jywarren

This comment has been minimized.

@jywarren
Copy link
Member Author

Rebuilding for new version of image sequencer!

@jywarren
Copy link
Member Author

New image available! https://gitlab.com/publiclab/pi-builder/-/jobs/121890022/artifacts/download

@jywarren
Copy link
Member Author

Hi @icarito i've just published a new v0.2.0 version of https://github.com/publiclab/infragram on npm; if I want to rebuild with that version, should I just make a small arbitrary change here to trigger GitLab to generate a new image artifact? Thanks!

@jywarren
Copy link
Member Author

Same error as in #68 !

@jywarren
Copy link
Member Author

OK, this needs rebase now after #69 !

@jywarren
Copy link
Member Author

jywarren commented Jul 1, 2019

Rebased! Update Hmm. not rebuilding. will try adding one more small commit.

Copy link
Member Author

@jywarren jywarren left a comment

Choose a reason for hiding this comment

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

@icarito would you mind checking if my rebase introduced a bunch of unnecessary stuff vs. https://github.com/publiclab/pi-builder/pull/40/files ? Thank you!

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.

@icarito can you check if this should be here? It exists on https://github.com/publiclab/pi-builder/pull/40/files but not sure if it's an artifact of rebasing.

get_gpg "${PACKAGECLOUD_FPR}" "${PACKAGECLOUD_KEY_URL}"

echo 'deb https://packagecloud.io/Hypriot/rpi/debian/ stretch main' > /etc/apt/sources.list.d/hypriot.list
# set up hypriot rpi repository for raspbian specific packages
Copy link
Member Author

Choose a reason for hiding this comment

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

Same here... is this right for this PR or is this reverting something?

@@ -0,0 +1,14 @@
#!/bin/sh -e
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 one more spot I'm uncertain - this doesn't exist in https://github.com/publiclab/pi-builder/pull/40/files for example, which builds properly and is supposed to be almost the same as this PR.

versions.config Outdated
@@ -4,14 +4,15 @@ 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.

Ah, one more, apologies. this is the last spot.

@icarito
Copy link
Member

icarito commented Jul 15, 2019

Sorry I just got around to check this!

I think that the issue is you're rebasing into master branch, but we're using main branch.

@jywarren
Copy link
Member Author

Ah, this makes sense, but actually all our PRs are against master - maybe we did the transition to main after these PRs were open? Should we merge to master from main to sync them, or are they forked in two different directions?

@icarito
Copy link
Member

icarito commented Jul 16, 2019

You're right our PR's are for master branch anyway. I'll review with more detail.

Merge branch 'image-sequencer' of https://gitlab.com/publiclab/pi-builder into image-sequencer
@icarito
Copy link
Member

icarito commented Jul 16, 2019

Hey, i figured out the issue is that you force-pushed and this stalled the repository synchronization. It's building now, fingers crossed!


# install infragram in the web public folder:
# prerequisites:
sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config
Copy link
Member Author

Choose a reason for hiding this comment

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

Ok @icarito do I need to rebase this again?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah looks like no, it's building now!

@Divy123
Copy link
Member

Divy123 commented Jul 16, 2019

@jywarren is there something I can help here?

@jywarren
Copy link
Member Author

@Divy123 is python a requirement to build headless-gl?

[email protected] install /var/www/image-sequencer/node_modules/gl
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=9.7.1 runtime=node arch=arm libc= platform=linux)
gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> 

@Divy123
Copy link
Member

Divy123 commented Jul 17, 2019

yes, we do require!!

@jywarren
Copy link
Member Author

jywarren commented Jul 19, 2019

Hmm:

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


# install infragram in the web public folder:
# prerequisites:
sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config python2.7 python2.7-dev
Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe this doesn't install as python?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe this doesn't install as python?

I think this may be needed:
sudo apt-get install -y build-essential libxi-dev libgl1-mesa-dev libglew-dev pkg-config python2.7 python2.7-dev. Just confirming!!

@jywarren
Copy link
Member Author

jywarren commented Aug 1, 2019

Hmm, switching back to python 2.7, but really just trying to not have a force push so that this will build properly...

@jywarren
Copy link
Member Author

jywarren commented Aug 1, 2019

We may need to close this and move to a new PR which is against main... ok, opened #73 against main branch!

@icarito
Copy link
Member

icarito commented Aug 1, 2019

Hey, I just went to check the Gitlab repository configuration and I found I could modify the CI timeout - I set it to 4 hours! So maybe let's try again with the build that timed out? Thanks and sorry I didn't know that was possible!

@icarito
Copy link
Member

icarito commented Aug 1, 2019

Here I restarted the build from last week:
https://gitlab.com/publiclab/pi-builder/-/jobs/264078267

@icarito
Copy link
Member

icarito commented Aug 1, 2019

https://gitlab.com/publiclab/pi-builder/-/jobs/264059463 (revert builder/build.sh) timed out at one hour because it started before I changed the setting (the max is 3 hours). I'm restarting this build!

@fennsen64
Copy link

Testimage

@jywarren jywarren changed the title Image sequencer, infragram, and RPi Cam for Raspberry Pi camera Image sequencer, infragram, and RPi Cam for Raspberry Pi camera (wrong branch) Jun 24, 2020
@jtravs
Copy link

jtravs commented Jan 20, 2021

Hi, can someone tell me where I should download this image? There is no green check mark?

@jywarren
Copy link
Member Author

Hi! It looks like the build didn't correctly complete -- so it shows a red X instead. The link is under the word Details below -- here it is: https://gitlab.com/publiclab/pi-builder/-/pipelines/74183616

The error was:

ln: failed to create symbolic link '/sys/fs/cgroup/systemd/name=systemd': Operation not permitted

In the log here: https://gitlab.com/publiclab/pi-builder/-/jobs/264061251

Not sure why that happened!

It looks like even in the new issue we moved to from here, we are seeing some issues as well: #73

@jywarren jywarren closed this Jan 21, 2021
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.

5 participants