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

get emulator binary as part of image build #124

Closed
edaniszewski opened this issue Apr 5, 2018 · 2 comments · Fixed by #129
Closed

get emulator binary as part of image build #124

edaniszewski opened this issue Apr 5, 2018 · 2 comments · Fixed by #129
Assignees

Comments

@edaniszewski
Copy link
Contributor

Right now, the binary for the emulator plugin that is built-in to some synse server images for convenience get here by:

  • building a linux distribution of the emulator plugin
  • copying it into the synse-server emulator directory
  • rebuilding the synse-server image to include it

Likely, a better approach would be to not have the emulator plugin binary in this repo at all, but instead download it into the image on build via GitHub releases.

@edaniszewski
Copy link
Contributor Author

Tried doing this a variety of ways, but no success. For whatever reason when I install it (either via cURL or via dockerfile ADD, when I chmod and place the binary in the correct place (verified w/ ls that is is actually there) and then run the container w/ emulator enabled, I see:

bin/synse.sh: line 82: ./emulator: No such file or directory

I'll revisit this later, just posting this in case anyone else has seen this before

@edaniszewski
Copy link
Contributor Author

the reason I was having trouble with this is related to: https://stackoverflow.com/a/35613430/8162473

Namely, when building the linux_amd64 variant, its not linked to libc, not muslc which the alpine image uses. there is a fairly simple fix via the SO post linked above, but maybe we will want to have a muslc build of the emulator as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant