-
Notifications
You must be signed in to change notification settings - Fork 8
Devcontainer setup with QNX support #117
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
Open
ryan-steel
wants to merge
8
commits into
eclipse-score:main
Choose a base branch
from
etas-contrib:add-devcontainer-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8a146ea
feature: initial devcontainer setup with qnx support
e7308b2
add docker-in-docker feature
4ae6874
fix mounts
9346f05
add compilation databases to .gitignore
729e425
chore: update readme with dev environment setup steps
614b829
format devcontainer.json
afe5d8f
add license header and .devcontainer to copyright_checker
5d12a14
Merge branch 'main' of https://github.com/etas-contrib/score_inc_time…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| # Use Dockerfile to get Dependabot version bumps after new image is released | ||
| FROM ghcr.io/eclipse-score/devcontainer:v1.8.0 | ||
|
|
||
| ARG USERNAME=vscode | ||
|
|
||
| # Rename 'vscode' to the host username for QNX-related user expectations. | ||
| # In environments using a license server, the QNX license might be bound to a username. | ||
| RUN if [ "$USERNAME" != "vscode" ]; then \ | ||
| usermod -l ${USERNAME} vscode \ | ||
| && groupmod -n ${USERNAME} vscode \ | ||
| && usermod -d /home/${USERNAME} -m ${USERNAME} \ | ||
| && ln -s /home/${USERNAME} /home/vscode \ | ||
| && echo "${USERNAME} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/${USERNAME} \ | ||
| && chmod 0440 /etc/sudoers.d/${USERNAME}; \ | ||
| fi | ||
|
|
||
| USER ${USERNAME} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/docker-in-docker:4.0.0": { | ||
| "version": "4.0.0", | ||
| "resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:4fa87399214366e320d489991769c4f3f461e1ffe461f54eea78a41b34945bb5", | ||
| "integrity": "sha256:4fa87399214366e320d489991769c4f3f461e1ffe461f54eea78a41b34945bb5" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "name": "eclipse-s-core", | ||
| "build": { | ||
| "dockerfile": "Dockerfile", | ||
| "args": { | ||
| "USERNAME": "${localEnv:USER}" | ||
| } | ||
| }, | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/docker-in-docker:4.0.0": {} | ||
| }, | ||
| "runArgs": [ | ||
| "--privileged" | ||
| ], | ||
| "remoteUser": "${localEnv:USER}", | ||
| "mounts": [ | ||
|
ryan-steel marked this conversation as resolved.
|
||
| { | ||
| "source": "${localEnv:HOME}/.qnx/license/licenses", | ||
| "target": "/opt/score_qnx/license/licenses", | ||
| "type": "bind" | ||
| }, | ||
| { | ||
| "source": "${localEnv:HOME}/.netrc", | ||
| "target": "/home/${localEnv:USER}/.netrc", | ||
| "type": "bind" | ||
| } | ||
| ], | ||
| "initializeCommand": { | ||
| "Make sure QNX license exists": "mkdir -p ~/.qnx/license && touch -a ~/.qnx/license/licenses", | ||
| "Make sure .netrc exists": "touch -a ~/.netrc" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.