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

Add ARM support by building OCTI with multi-arch #1271

Closed
Dviros opened this issue Apr 18, 2021 · 6 comments
Closed

Add ARM support by building OCTI with multi-arch #1271

Dviros opened this issue Apr 18, 2021 · 6 comments
Assignees
Labels
feature use for describing a new feature to develop solved use to identify issue that has been solved (must be linked to the solving PR)
Milestone

Comments

@Dviros
Copy link

Dviros commented Apr 18, 2021

Hi there,
Having the exact same issue, even when running with the latest default docker.yml config:
standard_init_linux.go:211: exec user process caused "exec format error"

Running on Ubuntu 18.04

Originally posted by @Dviros in #88 (comment)

@richard-julien
Copy link
Member

Hi @Dviros , do you use x86 or ARM hardware?

@richard-julien richard-julien added the question Further information is requested label Apr 18, 2021
@Dviros
Copy link
Author

Dviros commented Apr 18, 2021

Hey @richard-julien, attempting to run on Nvidia Jetson Nano (which is ARM based...)
Could that be the issue? Are the docker images not optimized for ARM?

@richard-julien
Copy link
Member

Hi @Dviros, today the OCTI docker images is only built for x86.
Supporting ARM looks interesting. I change a bit your ticket to make it a feature request.
Interesting link https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
Of course if you have some time you can try directly yourself to build OCTI for ARM with buildx.

@richard-julien richard-julien changed the title exec format error Add ARM support buy building OCTI with multi-arch Apr 18, 2021
@richard-julien richard-julien added feature use for describing a new feature to develop and removed question Further information is requested labels Apr 18, 2021
@richard-julien richard-julien changed the title Add ARM support buy building OCTI with multi-arch Add ARM support by building OCTI with multi-arch Apr 18, 2021
@Dviros
Copy link
Author

Dviros commented Apr 19, 2021

Thanks a lot for the clarifications. Will take a deeper look into that

@richard-julien
Copy link
Member

Start trying to build for ARM.

First result for building the frontend

#12 431.5 error /opt/opencti-build/opencti-front/node_modules/node-sass: Command failed.
Looks like node-sass are not built for ARM yet. See sass/node-sass#3033

First result for building the API

Compiled with success.

So looks like we need to wait for node-sass or try to remove it from the front stack. We currently used it with react-timeline-range-slider, so maybe not so easy to do :) @SamuelHassine ?

@kirintwn
Copy link
Contributor

kirintwn commented May 5, 2021

FYI, node-sass is also not compatible with node.js 16: sass/node-sass#3077.

@SamuelHassine SamuelHassine added the solved use to identify issue that has been solved (must be linked to the solving PR) label May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature use for describing a new feature to develop solved use to identify issue that has been solved (must be linked to the solving PR)
Projects
None yet
Development

No branches or pull requests

4 participants