platformio-docker (latest)

Published 2025-07-14 10:48:23 +02:00 by Rafal

Installation

docker pull git.agin.rocks/rafal/platformio-docker:latest
sha256:a55978ebc59dd2ee9cdfb7face9d44b4aeead4b96ce5a8c72438c9a07f1e8653

Image layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1751241600'
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* # buildkit
COPY meta.env /usr/local/etc/vscode-dev-containers/ # buildkit
LABEL version=1.0.25
LABEL dev.containers.id=base-debian
LABEL dev.containers.variant=bookworm
LABEL dev.containers.release=v0.4.17
LABEL dev.containers.source=https://github.com/devcontainers/images
LABEL dev.containers.timestamp=Thu, 10 Jul 2025 11:39:48 GMT
USER root
RUN /bin/sh -c mkdir -p /tmp/dev-container-features # buildkit
COPY /tmp/build-features/ /tmp/dev-container-features # buildkit
RUN /bin/sh -c echo "_CONTAINER_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env && echo "_REMOTE_USER_HOME=$( (command -v getent >/dev/null 2>&1 && getent passwd 'vscode' || grep -E '^vscode|^[^:]*:[^:]*:vscode:' /etc/passwd || true) | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env # buildkit
RUN /bin/sh -c cp -ar /tmp/build-features-src/common-utils_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/common-utils_0 && cd /tmp/dev-container-features/common-utils_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/common-utils_0 # buildkit
RUN /bin/sh -c cp -ar /tmp/build-features-src/git_1 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/git_1 && cd /tmp/dev-container-features/git_1 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/git_1 # buildkit
ARG _DEV_CONTAINERS_IMAGE_USER=root
USER root
LABEL devcontainer.metadata=[ {"id":"ghcr.io/devcontainers/features/common-utils:2"}, {"id":"ghcr.io/devcontainers/features/git:1","customizations":{"vscode":{"settings":{"github.copilot.chat.codeGeneration.instructions":[{"text":"This dev container includes an up-to-date version of Git, built from source as needed, pre-installed and available on the `PATH`."}]}}}}, {"remoteUser":"vscode"} ]
ENV DEBIAN_FRONTEND=noninteractive
RUN /bin/sh -c sudo apt-get update && sudo apt-get -y install --no-install-recommends clang python3-venv udev openssh-server # buildkit
RUN /bin/sh -c curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/system/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules # buildkit
RUN /bin/sh -c service udev restart # buildkit
RUN /bin/sh -c usermod -a -G dialout vscode # buildkit
RUN /bin/sh -c usermod -a -G plugdev vscode # buildkit
RUN /bin/sh -c mkdir -p /var/run/sshd && chmod 0755 /var/run/sshd # buildkit
RUN /bin/sh -c sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config # buildkit
EXPOSE map[22/tcp:{}]
ARG FEDORA_COMPAT=0
RUN |1 FEDORA_COMPAT=0 /bin/sh -c if [ "$FEDORA_COMPAT" = "1" ]; then sudo groupadd -g 18 compat_dialout; sudo usermod -a -G compat_dialout vscode; fi # buildkit
USER vscode
RUN |1 FEDORA_COMPAT=0 /bin/sh -c curl -fsSL -o /tmp/get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py # buildkit
RUN |1 FEDORA_COMPAT=0 /bin/sh -c python3 /tmp/get-platformio.py # buildkit
RUN |1 FEDORA_COMPAT=0 /bin/sh -c echo 'export PATH="$PATH:$HOME/.platformio/penv/bin"' | tee -a /home/vscode/.bashrc /home/vscode/.zshrc # buildkit
RUN |1 FEDORA_COMPAT=0 /bin/sh -c echo 'export PATH="$PATH:$HOME/.platformio/penv/bin"' | sudo tee -a /root/.bashrc /root/.zshrc # buildkit

Labels

Key Value
com.docker.compose.project platformio-docker
com.docker.compose.service platformio-docker
com.docker.compose.version 2.34.0
dev.containers.id base-debian
dev.containers.release v0.4.17
dev.containers.source https://github.com/devcontainers/images
dev.containers.timestamp Thu, 10 Jul 2025 11:39:48 GMT
dev.containers.variant bookworm
devcontainer.metadata [ {"id":"ghcr.io/devcontainers/features/common-utils:2"}, {"id":"ghcr.io/devcontainers/features/git:1","customizations":{"vscode":{"settings":{"github.copilot.chat.codeGeneration.instructions":[{"text":"This dev container includes an up-to-date version of Git, built from source as needed, pre-installed and available on the `PATH`."}]}}}}, {"remoteUser":"vscode"} ]
version 1.0.25
Details
Container
2025-07-14 10:48:23 +02:00
14
OCI / Docker
linux/amd64
456 MiB
Versions (1) View all
latest 2025-07-14