Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .devcontainer/Dockerfile
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
Comment thread
ryan-steel marked this conversation as resolved.
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}
9 changes: 9 additions & 0 deletions .devcontainer/devcontainer-lock.json
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"
}
}
}
32 changes: 32 additions & 0 deletions .devcontainer/devcontainer.json
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": [
Comment thread
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"
}
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ styles/
.venv
__pycache__/
/.coverage

# Compilation databases for code completion in IDEs
.cache/*
compile_commands.json
rust-project.json
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ docs(
copyright_checker(
name = "copyright",
srcs = [
".devcontainer",
".github",
"docs",
"examples",
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ It provides a **standardized project structure**, ensuring best practices for:

## 🚀 Getting Started

### 0️⃣ Set up development environment

Use devcontainer as default path. It includes Bazel tooling and dependencies.

1. Install Docker.
2. Open repository in a devcontainer-capable editor (for example VS Code with Dev Containers extension).
3. Reopen workspace in container.

Official setup guide:
https://eclipse-score.github.io/score/main/contribute/development/development_environment.html

If devcontainer not available, follow manual setup steps in same guide.


### 1️⃣ Clone the Repository

```sh
Expand Down
Loading