Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 02 15:12
    kb2ma commented #2329
  • Jul 02 15:02
    kb2ma synchronize #2329
  • Jul 02 03:31
    renovate[bot] edited #887
  • Jul 01 23:25
    jellyfish-bot commented #1934
  • Jul 01 23:25
    jellyfish-bot commented #1906
  • Jul 01 20:57
    jakogut synchronize #2263
  • Jul 01 20:33
    renovate[bot] edited #188
  • Jul 01 20:33
    renovate[bot] edited #188
  • Jul 01 20:33
    renovate[bot] synchronize #188
  • Jul 01 20:24
    renovate[bot] synchronize #2715
  • Jul 01 19:57
    renovate[bot] edited #887
  • Jul 01 19:57
    renovate[bot] edited #887
  • Jul 01 19:57
    renovate[bot] synchronize #887
  • Jul 01 19:27
    alexgg synchronize #2702
  • Jul 01 19:15
    klutchell synchronize #2690
  • Jul 01 18:31
    bulldozer-balena[bot] closed #2708
  • Jul 01 17:46
    renovate[bot] edited #2715
  • Jul 01 17:46
    renovate[bot] edited #2715
  • Jul 01 17:46
    renovate[bot] synchronize #2715
  • Jul 01 16:53
    versionbot3[bot] commented #851
Gergely Imreh
@imrehg
@valentinalexeev you have to set named volumes for the different services, in your docker-compose.yml filet
https://www.balena.io/docs/learn/develop/multicontainer/#named-volumes and more particularly similarly how in this Stack Overflow answer https://stackoverflow.com/a/44284993 as we only support these named volumes format (and inside the two container you can set the path where to mount it different)
Valentin Alexeev
@valentinalexeev
@imrehg "inside the two container you can set the path where to mount it different" - this is where the problem is. One of the containers exposes a mount point /config which I want to be somewhere on resin-data shared volume in e.g. folder /[container-name]/config
Gergely Imreh
@imrehg

@valentinalexeev I'm not sure I understand what you are trying to do.
So far I gather:

  • there's one service that should have a volume at /config
  • another service might access that in a shared volume, that you want to mount inside another existing volume?

I think the important part is that you can have volumes and mount them in different places in different service, don't have to be at the same place. Just set their internal endpoint to the right one your service needs. So for a simplified version, here's a docker-compose.yml, that you can try on your development machine (if you have docker and docker compose installed) with docker-compose run, so you can play with the volumes:

version: '2.1'
services:
  service1:
    image: "alpine"
    command: touch /config/test
    volumes:
      - service1-config:/config
  service2:
    image: "alpine"
    command: ls -la /data/other-config
    volumes:
      - resin-data:/data
      - service1-config:/data/other-config
    depends_on:
      - service1

volumes:
  resin-data:
  service1-config:

This will result in something like:

$ docker-compose up
Starting volumes_service1_1 ... done
Starting volumes_service2_1 ... done
Attaching to volumes_service1_1, volumes_service2_1
service2_1  | total 8
volumes_service1_1 exited with code 0
service2_1  | drwxr-xr-x    2 root     root          4096 Apr  9 17:20 .
service2_1  | drwxr-xr-x    3 root     root          4096 Apr  9 17:18 ..
service2_1  | -rw-r--r--    1 root     root             0 Apr  9 17:24 test
volumes_service2_1 exited with code 0

thus in service2 you can see the test file created by service1.

But it's in the service1-config volume, not related to the resin-data volume at all (that volume alone is empty), and you don't need that. Just use the volumes you want to share between services, and set the internal mount points where you need them or want to use them. For example if service1 needs a volume mounted at /config, that 's fine, in other service , maybe in service2 you control the code, just mount wherever it makes sense.
Not sure if this helps at all, but hope so. :) If you have some more concrete example of what you want to achieve (maybe the docker-compose.ymlthat you are trying to use?) then we can give more specific advice. Also would recommend posting it in our forums, where there's more chance to get feedback and quicker https://forums.balena.io/
Gutemberg Ribeiro
@galvesribeiro
folks
if anyone can shed a light on this issue https://forums.balena.io/t/build-kernel-modules-on-ci-servers-for-balenaos/5972 I would appreciate that. Thanks!
Gutemberg Ribeiro
@galvesribeiro
@resinio folks, can someone make my post visible again? https://forums.balena.io/t/build-kernel-modules-on-ci-servers-for-balenaos/5972/6
I’ve posted a long log as requested by someone on the team and the Akismet thought it was spam :(
Shaun Mulligan
@shaunmulligan
@galvesribeiro it should be visible now
Gutemberg Ribeiro
@galvesribeiro
:+1: tkz
Gutemberg Ribeiro
@galvesribeiro
@imrehg yo! Updates on the release of the Tinkerboard images?
Gutemberg Ribeiro
@galvesribeiro
@shaunmulligan do you have any updates on the Tinkerboard images?
also, the lack of rotate support for Tinkerboard is really a problem for us :( we’re running kiosks as the main devices for Balena, and without rotation, we’re screwed
Balena team
@balenaio
[Shaun Mulligan (shaunmulligan)] @galvesribeiro i believe @imrehg was doing the final round of testing
[Shaun Mulligan (shaunmulligan)] there will definitely be a way to rotate the screen, but will need to find out from ASUS if there is a hardware specific way to do it, otherwise you will need to do it in software via xorg or whatever windows manager your kiosk system uses
Gutemberg Ribeiro
@galvesribeiro
there is no Xorg/window manager… We use the FB with eglfs directly to the hardware
and, do it via software, will definitively affect performance
Balena team
@balenaio
[Shaun Mulligan (shaunmulligan)] yup, unfortunately if ASUS doesn't provide a way to do it you will have to do it in software :/
[Shaun Mulligan (shaunmulligan)] it would be worth asking in their forums
Gutemberg Ribeiro
@galvesribeiro
okey… will do that
looks like it is indeed possible
the kernel has to be compiled with the support for that @shaunmulligan
Balena team
@balenaio
[Shaun Mulligan (shaunmulligan)] There is a chance it could be enabled in our kernel already, so worth a try. Others you can create and issue on our asus OS repo here https://github.com/balena-os/balena-asus-tinker-board and we can get that compiled in
Gutemberg Ribeiro
@galvesribeiro
great...
  sudo balena ssh --host
? Select a device morning-brook (547930d)
Connecting to: 547930dc64fdd31d896673fd7d422162
gutemberg@ssh.balena-devices.com: Permission denied (publickey).
now I can't login on the host :(
Balena team
@balenaio
[Shaun Mulligan (shaunmulligan)] that usually means you are trying to connect to a "production" device rather than a .dev.
Gutemberg Ribeiro
@galvesribeiro
I dont think so
image.png
Balena team
@balenaio
[Shaun Mulligan (shaunmulligan)] thats odd, can you open a forums thread or support issue and the team can help you investigate
Gutemberg Ribeiro
@galvesribeiro
I think my board is dead :)
I rebooted it from the portal, removed the local mode and enabled again
and it just fail to boot now
will reflash it
Shaun Mulligan
@shaunmulligan
@galvesribeiro I see the ASUS tinkerboard is now released on 2.32 :)
Gutemberg Ribeiro
@galvesribeiro
yay! thanks for letting me know @shaunmulligan
now I just need the freaking rotation to work on it :(
Paul Mölders
@p0wl
Hey =) I just updated my base image on an raspberry pi zero and now the "raspistill" executable is missing (to take a snapshot using the camera) diff of Dockerfile.template:
-FROM resin/%%RESIN_MACHINE_NAME%%-node:6
+FROM balenalib/%%RESIN_MACHINE_NAME%%-debian-node:11
Do I need to install rpi-update now by myself?
Paul Mölders
@p0wl
okay, in the balenalib/raspberrypi3-debian-node image there is the raspistill executable, but it is missing from the balenalib/raspberry-pi-debian-node image. This seems like an error, I'm going to post to the support forum
Antonio Gutierrez
@chibby0ne
Hi @resinio, I just realized that balenalib/intel-nuc-alpine-python:3.7-run has Python2 as default, and no python3 installation and balenalib/intel-nuc-alpine-python:3.7.2-run has Python3 as default with a python3 installation. Why the discrepancy? Is this intended? Seems very unintuitive
Gutemberg Ribeiro
@galvesribeiro
Anyone was ever able to use OpenGL in balena?
particularly, eglfs
I’m having troubles with the PI brcm libraries to properly work on balena inside the container
Philipp Nürnberger
@philippnbg
Hi there! I experience some strange issues with the intel-nuc image. I downloaded a development image, installed it on an advantec device (compareable to intel nuc) with ethernet, disconnected ethernet and instead inserted a working SIM. On the device itself I was able to check, that the host os has access to the internet (pinged a couple of servers), though the device is shown as offline in balena.io .
nmcli shows, that supervisor and cellular-modem are connected
Is this a problem of routing in the hostOS?
Balena team
@balenaio
[Alison Davis Riddell (alisondavis17)] Hi @philippnbg our team is much more active in our forums, if you could post your question there at https://forums.balena.io/; our engineers monitor it every day and will be able to help out quickly!
SX
@stevenjiaweixie
Gutemberg Ribeiro
@galvesribeiro
@resinio any chance we have the DragonBoard supported? https://www.arrow.com/en/products/dragonboard410c/arrow-development-tools or at least any 96Boards