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

Try to host a general-purpose express app #68

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

Try to host a general-purpose express app #68

wants to merge 4 commits into from

Conversation

jywarren
Copy link
Member

@jywarren jywarren commented Jun 21, 2019

If this works (needs testing on a Pi) we can add more utilities, like a commandline prompt, maybe, a file uploader, a bulk image downloader, or maybe most importantly, a way to change the WiFi settings:

This basic test addresses #66, read access to filesystem.


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
Copy link
Member Author

Hmm, seeing:

gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: /root/.gnupg/trustdb.gpg: trustdb created
+ FINGERPRINT_OF_FILE=6A037BB52DF7D46D99DC59C101666247EBFF1218
+ [[ 40 -eq 16 ]]
+ [[ 40 -eq 8 ]]
+ echo 'compare fingerprint'
compare fingerprint
++ clean_print fpr 6A037BB52DF7D46D99DC59C101666247EBFF1218
++ local fingerprint=6A037BB52DF7D46D99DC59C101666247EBFF1218
++ local func=fpr
++ nospaces=6A037BB52DF7D46D99DC59C101666247EBFF1218
++ tolowercase=6a037bb52df7d46d99dc59c101666247ebff1218
++ KEYID_long=01666247ebff1218
++ KEYID_short=ebff1218
++ [[ fpr == \f\p\r ]]
++ echo 6a037bb52df7d46d99dc59c101666247ebff1218
+ CHECK=6a037bb52df7d46d99dc59c101666247ebff1218
+ [[ 418a7f2fb0e1e6e7eabf6fe8c2e73424d59097ab == \6\a\0\3\7\b\b\5\2\d\f\7\d\4\6\d\9\9\d\c\5\9\c\1\0\1\6\6\6\2\4\7\e\b\f\f\1\2\1\8 ]]
+ echo 'key invalid'
key invalid
+ exit 1
make: *** [sd-image] Error 1
ln: failed to create symbolic link '/sys/fs/cgroup/systemd/name=systemd': Operation not permitted
ERROR: Job failed: exit code 1

@icarito do you have any ideas about this? Thanks!

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

Successfully merging this pull request may close these issues.

1 participant