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

ARM version #51

Closed
ind3x opened this issue Sep 13, 2016 · 18 comments
Closed

ARM version #51

ind3x opened this issue Sep 13, 2016 · 18 comments
Assignees

Comments

@ind3x
Copy link

ind3x commented Sep 13, 2016

Hi,

Actually I have been porting official Docker images for Elasticsearch, Logstash and Kibana to Raspberry with the intention of having a RPi version similar to officials ones.

Due to this reason I forked the repository with de purpouse of bulding a ARM (tested on RPi 2, ARMv7) version of Tini (https://github.com/ind3x/rpi-tini).

Would you mind to build and ARM version? I think that could be such a good idea to have option.

Kind regards!

@krallin
Copy link
Owner

krallin commented Sep 14, 2016

Thanks; it's not the first time the issue of cross-compiling comes up (see: #30). I'll take another look.

Thanks!

@krallin krallin self-assigned this Sep 14, 2016
@ind3x
Copy link
Author

ind3x commented Sep 15, 2016

Thanks!

I read that issue before write this. But I was thinking that could be good idea to comment that there is a workaround until a official solution.

Kind regards!

@schwab
Copy link

schwab commented Oct 24, 2016

Is there anyway to get this working on a Raspberry PI? I don't mind a work around, but it appears this issue has been abandoned. What needs to be done still to get the ARM compile done?

@krallin
Copy link
Owner

krallin commented Oct 24, 2016

@schwab:

This issue is about providing pre built binaries for ARM, which is a build system issue - I need to cross compile for ARM, but testing the resulting binary is the harder part.

However, Tini compiles as-is for ARM, there's no extra work to do on that front. You have two options to use it on a Pi:

  • Use a distribution that packages Tini and install from a package. Alpine Linux for example has ARM Tini packages.

  • Compile Tini yourself. You'll need Cmake, xxd, and a C compiler. Instructions are in the README.

    Cheers,

@ind3x
Copy link
Author

ind3x commented Oct 24, 2016

@schwab

Also, if you prefer, you can use my compilation that I share in my repo https://github.com/ind3x/rpi-tini.

It has been tested in a Raspberry Pi 2.

@KurtStam
Copy link

KurtStam commented Oct 25, 2016

@krallin It'd be great if cross compilation can be added for arm64. For now I'm building and releasing them here https://github.com/Project31/tini. I have a jenkins instance on arm64, so if you want to setup some automated testing then please let me know.

@Valantin
Copy link

hi, I'm start to port Dockerfile to armhf devices https://github.com/Valantin/rpimage based on armhf semiofficial image https://hub.docker.com/r/armhf/.

I'm intrested to a cross-compiled version of tini in the official repository

@krallin
Copy link
Owner

krallin commented Oct 30, 2016

Hey everyone here, I have some good news: official ARM builds of Tini 😄

Please this give this latest pre-release a shot: https://github.com/krallin/tini/releases/tag/v0.11.0.pre1.

These are cross-builds, so while I've tested them myself on VMs, I'm interested in hearing a bit of feedback from ARM users before I merge those into an official release :)

I still have a little fix to do in #54, but this is pretty close.

Thanks for your patience!

Cheers,

@KurtStam
Copy link

KurtStam commented Oct 30, 2016

Great :). I'm traveling now but will give it a go later this week. Thx!
--Kurt

@ind3x
Copy link
Author

ind3x commented Oct 31, 2016

Great news!! I'm going to test it this days in my projects for being sure that works fine in my RPi 2.

@krallin
Copy link
Owner

krallin commented Oct 31, 2016

Awesome; thanks for giving it a shot. Note that if you're on a RPI, the binary you want is the armhf one (as opposed to the arm64 one).

Cheers,

@ind3x
Copy link
Author

ind3x commented Oct 31, 2016

Yes! I let you know about result and also, in case of working fine, I will deprecate mi forked repository.

@ind3x
Copy link
Author

ind3x commented Oct 31, 2016

Hi again! I tested following the most common configuration:

ENV TINI_VERSION 0.11.0.pre1
RUN set -x \
    && apt-get update && apt-get install -y ca-certificates curl \
        --no-install-recommends \
    && curl -fSL "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-armhf" -o /usr/local/bin/tini \
    && curl -fSL "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-armhf.asc" -o /usr/local/bin/tini.asc \
    && export GNUPGHOME="$(mktemp -d)" \
    && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 6380DC428747F6C393FEACA59A84159D7001A4E5 \
    && gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini \
    && rm -r "$GNUPGHOME" /usr/local/bin/tini.asc \
    && chmod +x /usr/local/bin/tini \
    && tini -h \
    && apt-get purge --auto-remove -y ca-certificates curl \
    && rm -rf /var/lib/apt/lists/*

and seems like it works fine.

As an anotation, when I execute tini -h the output prints tini (version 0.10.0 - git.271c097) instead of version 0.11.0.

+ tini -h
tini (version 0.10.0 - git.271c097)
Usage: tini [OPTIONS] PROGRAM -- [ARGS]

Execute a program under the supervision of a valid init process (tini)

  -h: Show this help message and exit.
  -s: Register as a process subreaper (requires Linux >= 3.4).
  -v: Generate more verbose output. Repeat up to 3 times.
  -g: Send signals to the child's process group.
  -l: Show license and exit.

@krallin
Copy link
Owner

krallin commented Oct 31, 2016

Perfect, thanks for testing.

It's expected that the version reports a lower number since I have not
actually bumped it yet! :)

On Monday, 31 October 2016, Imanol Urra notifications@github.com wrote:

Hi again! I tested following the most common configuration:
ENV TINI_VERSION 0.11.0.pre1
RUN set -x
&& apt-get update && apt-get install -y ca-certificates curl vim
--no-install-recommends
&& curl -fSL "https://github.com/krallin/tini/releases/download/v${
TINI_VERSION}/tini-armhf" -o /usr/local/bin/tini
&& curl -fSL "https://github.com/krallin/tini/releases/download/v${
TINI_VERSION}/tini-armhf.asc" -o /usr/local/bin/tini.asc
&& export GNUPGHOME="$(mktemp -d)"
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys
6380DC428747F6C393FEACA59A84159D7001A4E5
&& gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini
&& rm -r "$GNUPGHOME" /usr/local/bin/tini.asc
&& chmod +x /usr/local/bin/tini
&& tini -h
&& apt-get purge --auto-remove -y ca-certificates curl
&& rm -rf /var/lib/apt/lists/*

and seems like it works fine.

As an anotation, when I execute tini -h the output prints tini
(version 0.10.0 - git.271c097)
instead of version 0.11.0
`+ tini -h
tini (version 0.10.0 - git.271c097)
Usage: tini [OPTIONS] PROGRAM -- [ARGS]

Execute a program under the supervision of a valid init process (tini)

-h: Show this help message and exit.
-s: Register as a process subreaper (requires Linux >= 3.4).
-v: Generate more verbose output. Repeat up to 3 times.
-g: Send signals to the child's process group.
-l: Show license and exit.`


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#51 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABqD1oXKdl6IMoLxs_Iqfw2DICIAvv5Cks5q5js8gaJpZM4J79iO
.

@krallin krallin mentioned this issue Nov 2, 2016
@krallin
Copy link
Owner

krallin commented Nov 2, 2016

I just released Tini 0.11.0, which now includes ARM builds! 😄

Let me know if you run into any trouble of course.

Cheers,

@krallin krallin closed this as completed Nov 2, 2016
@krallin krallin mentioned this issue Nov 2, 2016
@ind3x
Copy link
Author

ind3x commented Nov 4, 2016

Hi @krallin, just for notify, I've deprecated the forked repo I created a month ago in favor of yours 😄.

@krallin
Copy link
Owner

krallin commented Nov 4, 2016

Sounds good; thanks @ind3x

@KurtStam
Copy link

KurtStam commented Nov 4, 2016

All looks good on arm64 too. Cheers! --Kurt

On Sun, Oct 30, 2016 at 1:20 PM, Kurt Stam kstam@redhat.com wrote:

Great :). I'm traveling now but will give it a go later this week. Thx!
--Kurt

On Oct 30, 2016, at 08:06, Thomas Orozco notifications@github.com wrote:

Hey everyone here, I have some good news: official ARM builds of Tini 😄

Please this give this latest pre-release a shot:
https://github.com/krallin/tini/releases/tag/v0.11.0.pre1.

These are cross-builds, so while I've tested them myself on VMs, I'm
interested in hearing a bit of feedback from ARM users before I merge those
into an official release :)

I still have a little fix to do in #54
#54, but this is pretty close.

Thanks for your patience!

Cheers,


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#51 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AACK-D5ByubxsEobaZGor7ulagBiCvpPks5q5LJlgaJpZM4J79iO
.

Kurt T. Stam

twitter: @KurtStam
google+: kurt.stam@gmail.com

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

No branches or pull requests

5 participants