Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

dev-docker: fix to work with current Dockerfile #513

Merged
merged 2 commits into from
Apr 18, 2019

Conversation

terceiro
Copy link
Member

No description provided.

@@ -7,7 +7,10 @@


def javascript_tests():
if os.path.exists(karma):
if not shutil.which('nodejs'):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a scenario where "node_modules/.bin/karma" exists where "nodejs" doesn't? When installing npm, Debian seems to be installing nodejs too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the scenario that I hit, which is I had this stuff installed in my host machine, but not in the container created by dev-docker

(I tried to add nodejs etc to it, but chromium crashes weirdly inside docker and I didn't want to investigate that at the moment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(just saw you other comment)

@chaws
Copy link
Collaborator

chaws commented Apr 17, 2019

Maybe we should have javascript tests within the dev-docker? Just a suggestion...I added npm and chromium to apt in dev dockerfile then added no-sandbox to karma config and it worked fine, it just added a much greater amount of time and space

@terceiro
Copy link
Member Author

@chaws so that's the trick, --no-sandbox. I will amend

@chaws chaws merged commit 0e68eb2 into Linaro:master Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants