Skip to content

Commit 0a86a3f

Browse files
committed
tweak
1 parent 0a3f333 commit 0a86a3f

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.devcontainer/Dockerfile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
FROM ghcr.io/nrfconnect/sdk-nrf-toolchain:v3.1.1
1+
ARG NCS_VERSION=v3.1.1
2+
3+
FROM ghcr.io/nrfconnect/sdk-nrf-toolchain:${NCS_VERSION}
4+
ARG NCS_VERSION
25
RUN rm /opt/ncs/toolchains/*/nrfutil/home/locked
3-
RUN nrfutil install sdk-manager=1.8.0
4-
RUN nrfutil sdk-manager install v3.1.1
6+
7+
# Manually install nRF-Connect SDK
8+
RUN west init -m https://github.com/nrfconnect/sdk-nrf --mr ${NCS_VERSION} /opt/ncs/${NCS_VERSION} && \
9+
cd /opt/ncs/${NCS_VERSION} && \
10+
west update --narrow -o=--depth=1 && \
11+
west zephyr-export
12+
513
RUN rm /opt/.bashrc
14+
RUN echo "source /opt/toolchain-env.sh" >> /opt/.bashrc
15+
16+
LABEL org.opencontainers.image.source="https://github.com/memfault/memfault-ncs-quickstart-fw"

.devcontainer/devcontainer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"name": "nRF Connect SDK Dev Container",
3-
"build": {
4-
"dockerfile": "Dockerfile"
5-
},
6-
// "features": {
7-
// "ghcr.io/devcontainers/features/docker-in-docker:2": {},
3+
"image": "ghcr.io/memfault/memfault-ncs-quickstart-fw:2025-10-29",
4+
// To build the image from source, uncomment the following lines
5+
// "build": {
6+
// "dockerfile": "Dockerfile"
87
// },
98
"customizations": {
109
"vscode": {

0 commit comments

Comments
 (0)