timescale/timescaledb-toolkit

toolkit support for armv7 docker containers

Opened this issue · 1 comments

Hi,
I really would like to use the new timescale-toolkit functions like time_weight() in a rpi4 docker environment. Today there is no "ready to use" package available.
The supposed build process on your readme.md is not working inside the timescaledb docker container, since rustup is not available for alpine. Alpine is only tier2.

It would be really helpful if you can add relevant informations for crosscompiling + installing without cargo or prefered to supply a pre-packed docker container for armv7.

MrLight

Update:
I was able to get rust and cargo running directly inside the alpine container.
But I get a type error during the compilation of pgx in the second step. (cargo pgx install --release)
I have a pg12.8 Version running. I have downgraded the postgresql-dev package from 13 to 12.8 without success...

If someone has a hint i would be very happy.


pgx v0.1.19 (https://github.com/JLockerman/pgx.git?branch=timescale#87e0460e)
error[E0308]: mismatched types
  --> /root/.cargo/git/checkouts/pgx-24f98968818058e4/87e0460/pgx/src/enum_helper.rs:33:43
   |
33 |         unsafe { std::ffi::CStr::from_ptr(en.enumlabel.data.as_ptr() as *const i8) }
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8`
   |
   = note: expected raw pointer `*const u8`
              found raw pointer `*const i8`

Hello @MrLight, I'm facing the same issue. Did you manage to make it running on Arm7/Alpine?