-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from LCAS/addition_opengl_devcontainer
2 dev containers to chose from
- Loading branch information
Showing
4 changed files
with
81 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 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,46 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
{ | ||
"name": "L-CAS Humble CUDA-OpenGL Devcontainer", | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"args": { | ||
"BASE_IMAGE": "lcas.lincoln.ac.uk/lcas/ros:jammy-humble-cuda-opengl" | ||
}, | ||
"context": "../.." | ||
}, | ||
|
||
"forwardPorts": [5801], | ||
"portsAttributes": { | ||
"5801": { | ||
"label": "desktop", | ||
"onAutoForward": "openBrowser" | ||
} | ||
}, | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// Here we run `colcon build` to build the workspace initially, (to speed up later builds), and we keep going if it fails for some packages to get as much compiled as possible | ||
"postCreateCommand": "/opt/entrypoint.sh /bin/true; .devcontainer/post-create.sh", | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
"remoteUser": "ros", | ||
"updateRemoteUserUID": true, // ensure internal user has the same UID as the host user and update file permissions | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.python", | ||
"GitHub.vscode-pull-request-github", | ||
"ms-vscode.cpptools", | ||
"JaehyunShim.vscode-ros2", | ||
"nonanonno.vscode-ros2", | ||
"deitry.colcon-helper", | ||
"github.vscode-github-actions" | ||
] | ||
} | ||
}, | ||
"hostRequirements": { | ||
"gpu": "optional", | ||
"cpus": 2, | ||
"memory": "8gb" | ||
} | ||
} |
This file contains 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 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 |
---|---|---|
|
@@ -11,6 +11,11 @@ on: | |
jobs: | ||
build_devcontainer: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
config: | ||
- default | ||
- cuda-opengl | ||
steps: | ||
- name: Checkout from github | ||
uses: actions/checkout@v3 | ||
|
@@ -23,6 +28,7 @@ jobs: | |
uses: devcontainers/[email protected] | ||
with: | ||
imageName: lcas.lincoln.ac.uk/devcontainer/${{ steps.docker_image_name.outputs.docker_image }} | ||
configFile: ./.devcontainer/${{ matrix.config }}/devcontainer.json | ||
push: never | ||
imageTag: ${{ env.BRANCH }} | ||
imageTag: ${{ matrix.config }}-${{ env.BRANCH }} | ||
#runCmd: "bash .devcontainer/run-ci.sh" |