8000 GitHub - rlggyp/cepio: CEPIO - Container Environment for PlatformIO Core. · GitHub
[go: up one dir, main page]

Skip to content
rlggypPublic

About

CEPIO - Container Environment for PlatformIO Core.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cepio

CEPIO - Container Environment for PlatformIO Core.

Host Setup (Linux)

Install PlatformIO udev rules for serial port access:

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
sudo udevadm control --reload-rules && sudo udevadm trigger

Add your user to the serial group:

# Debian/Ubuntu
sudo usermod -a -G dialout $USER

# Arch Linux
sudo usermod -a -G uucp $USER

Re-plug your board after applying rules.

Run Container

Docker Compose

services:
  cepio:
    image: rlggyp/cepio:latest
    container_name: cepio
    init: true
    privileged: true
    stdin_open: true
    tty: true
    user: "${UID:-1000}:${GID:-1000}"
    working_dir: /workspace
    volumes:
      - ${PWD}:/workspace
      - ${PWD}/.platformio:/home/cepio/.platformio
      - /dev:/dev
    environment:
      - PLATFORMIO_CORE_DIR=/home/cepio/.platformio
docker compose up -d

Docker CLI

docker run -d \
  --name cepio \
  --init \
  --privileged \
  --user "$(id -u):$(id -g)" \
  -v "${PWD}:/workspace" \
  -v "${PWD}/.platformio:/home/cepio/.platformio" \
  -v /dev:/dev \
  -e PLATFORMIO_CORE_DIR=/home/cepio/.platformio \
  -w /workspace \
  rlggyp/cepio:latest

Usage

# Build
docker exec -it cepio pio run

# Flash
docker exec -it cepio pio run -t upload

# Serial Monitor
docker exec -it cepio pio device monitor -b 115200

# Shell
docker exec -it cepio bash

About

CEPIO - Container Environment for PlatformIO Core.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0