Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
71 changes: 71 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Dockerfile
FROM archlinux:base
RUN pacman -Syu --noconfirm

# Install misc packages
RUN pacman -S --noconfirm \
7zip \
arm-none-eabi-gcc \
arm-none-eabi-newlib \
avr-gcc \
avr-libc \
base-devel \
bc \
clang \
cpio \
curl \
cmake \
dos2unix \
erofs-utils \
git \
less \
nano \
platformio-core \
python \
python-pip \
python-pillow \
python-lz4 \
python-jinja \
qt6-base \
qt5-base \
qt6-tools \
qt6-translations \
qt6-multimedia \
qt6-serialport \
qt6-svg \
qt6-tools \
screen \
tree \
unzip \
vim \
wget \
zip

# HACK: Allow base-devel to run with root user
RUN sed -i '/E_ROOT/d' /usr/bin/makepkg

# Install yay
#RUN git clone https://aur.archlinux.org/yay-bin.git /tmp/yay-bin && \
# cd /tmp/yay-bin && \
# makepkg -si --noconfirm && \
# cd && rm -rf /tmp/yay-bin

#RUN git clone --recursive https://github.com/STMicroelectronics/STM32CubeG0.git /workspace/STM32CubeG0
#RUN git clone --recursive https://github.com/STMicroelectronics/STM32CubeG4.git /workspace/STM32CubeG4

# Personal dir dotfiles
#ADD home /home/

# Personal uploader scripts
#ADD root/bin /usr/local/bin/

ARG USERNAME=csp
ARG USER_UID=1000
ARG USER_GID=$USER_UID

# Create the user
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME

USER $USERNAME

11 changes: 11 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "Arch Linux Codespace with Dockerfile",
"build": {
"dockerfile": "Dockerfile"
},
"remoteUser": "csp",
"postCreateCommand": {
// "git1": "git clone --recursive https://github.com/wimalopaan/edgetx.git edgetx.wm"
}
}