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

build: Support docker to build ARM package #1028

Closed
wants to merge 3 commits into from

Conversation

rzr
Copy link
Contributor

@rzr rzr commented Jul 24, 2018

It was build on Raspbian using docker and binfmt+qemu

Usage:
curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
ls tmp/out/node-sqlite3/sqlite3-*.tgz

Or run.sh can be run insources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: #418
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval p.coval@samsung.com

rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jul 24, 2018
It was build on Raspbian using docker and binfmt+qemu

Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/sqlite3-*.tgz

Or run.sh can be run insources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jul 24, 2018
It was built on Raspbian using docker and binfmt+qemu

Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/sqlite3-*.tgz

Or run.sh can be run insources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Aug 9, 2018
It was built on Raspbian using docker and binfmt+qemu

Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/sqlite3-*.tgz

Or run.sh can be run insources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Aug 9, 2018
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/sqlite3-*.tgz

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Aug 9, 2018
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/sqlite3-*.tgz

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Aug 9, 2018
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/sqlite3-*.tgz

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Aug 9, 2018
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/stage/sqlite3/*/node-*-*-*

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
@rzr
Copy link
Contributor Author

rzr commented Nov 9, 2018

download package from https://bintray.com/rzr/devel/

rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Nov 9, 2018
Result expected in build/stage/

Forwarded: TryGhost#1028
Change-Id: If0fd4574924149a59d510914cb872eab259bc6d5
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Nov 9, 2018
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/stage/sqlite3/*/node-*-*-*

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Nov 9, 2018
Result expected in build/stage/

Relate-to: TryGhost#1028
Change-Id: If0fd4574924149a59d510914cb872eab259bc6d5
Signed-off-by: Philippe Coval <p.coval@samsung.com>
@kewde
Copy link
Collaborator

kewde commented Dec 10, 2018

Hi @rzr

First of all, thank you for your contributions. I think I can merge this as is. Is this still a WIP?
Ideally we would run this the Travis CI environment. It does not directly support ARM but it can be emulated. Ideally we publish builds for ARM too, are you interested in adding this?.

@rzr rzr changed the title WIP: build: Support docker to build ARM package build: Support docker to build ARM package Dec 10, 2018
@tkurki
Copy link

tkurki commented Jan 27, 2019

@kewde see #418 (comment) for a working example of Travis building ARM binary with Docker. I had missed this PR and started from Travis perspective. The approach there is a bit simpler and I assume faster, as it uses a prebuilt arm32v7/node Docker image.

rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jan 27, 2019
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/stage/sqlite3/*/node-*-*-*

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jan 27, 2019
This can be then declined for several arch

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1112
TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
@tkurki
Copy link

tkurki commented Jan 27, 2019

@rzr you force pushed something and this PR no longer does what the title and description say?

@kewde
Copy link
Collaborator

kewde commented Jan 27, 2019

The interesting QEMU bits for ARM can be found in here:
CrossStream@e969908

I'll keep this PR open until the author decides to close it. I prefer dealing with the PRs in a more split up way. The run.sh file was of not much use to run in TravisCI, it did however contain the essentials to make it work on Travis but lacked the node-pre-gyp builds.

rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jan 28, 2019
This can be then declined for several arch

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1112
TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jan 28, 2019
Just shared as demo May be changed

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1112
TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jan 28, 2019
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/stage/sqlite3/*/node-*-*-*

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jan 29, 2019
Usage:
```
docker build .
```
This can be then declined for several arch, elsewhere.

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1112
TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
kewde pushed a commit that referenced this pull request Feb 4, 2019
Usage:
```
docker build .
```
This can be then declined for several arch, elsewhere.

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: #418
Forwarded: #1112
#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
@rzr
Copy link
Contributor Author

rzr commented Feb 28, 2019

See updates in:
#418

@rzr
Copy link
Contributor Author

rzr commented Apr 17, 2019

Which version of ARM is proffered ? I assume raspbian's one

Meanwhile check this ARMv8 change:

Relate-to: #1147

I will adapt it for ARMv7 then

@rzr
Copy link
Contributor Author

rzr commented Apr 23, 2019

May this one be merged 1st:
#1147

Just shared as demo May be changed

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1112
TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/stage/sqlite3/*/node-*-*-*

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
For community conveinance, built package is uploaded to:

https://bintray.com/rzr/devel/sqlite3

Relate-to: TryGhost#795
Change-Id: I184efcd2940e29437711e12cc8cfb1eaafbc3117
Signed-off-by: Philippe Coval <p.coval@samsung.com>
@rzr rzr closed this Sep 30, 2019
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jul 1, 2020
Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Relate-to: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <rzr@users.sf.net>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jul 1, 2020
Just shared as demo May be changed

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1112
TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jul 1, 2020
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/stage/sqlite3/*/node-*-*-*

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jul 1, 2020
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/stage/sqlite3/*/node-*-*-*

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jul 1, 2020
Just shared as demo May be changed

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1112
TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
rzr added a commit to CrossStream/node-sqlite3 that referenced this pull request Jul 1, 2020
Usage:

    curl -sL https://rawgit.com/$org/$project/$branch/run.sh | bash -x -
    ls tmp/out/node-sqlite3/stage/sqlite3/*/node-*-*-*

Or run.sh can be run in sources

Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: TryGhost#418
Forwarded: TryGhost#1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
kewde pushed a commit that referenced this pull request Jul 2, 2020
Change-Id: I79000463955d16eec8809c870f7d02c60da53432
Bug: #418
Relate-to: #1028
Origin: https://github.com/tizenteam/node-sqlite3
Signed-off-by: Philippe Coval <rzr@users.sf.net>
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.

3 participants