Compare commits

...

3 Commits

Author SHA1 Message Date
4b5b7b38a2 Check WSL updates and force default distribution 2023-09-06 15:02:42 -03:00
979f886e20 Already on user designer 2023-09-06 11:27:28 -03:00
cf862afc6b Update analog-xm (arch) 2023-09-06 11:22:16 -03:00
3 changed files with 14 additions and 19 deletions

View File

@ -1,6 +1,12 @@
param([switch] $remote = $false)
Write-Host "OSIC-Stacks Container Creation" -ForegroundColor Green
Write-Host "Checking WSL updates" -ForegroundColor DarkGray
Write-Host ""
wsl --update
Write-Host ""
Write-Host "Please select an image index:"
$imageoptions = @(
@ -38,7 +44,7 @@ $dockercommand = ("docker run -d " +
"-e XDG_RUNTIME_DIR=/mnt/wslg " +
$image)
wsl bash -ic $dockercommand
wsl -d Ubuntu bash -ic $dockercommand
if ($?) {
Write-Host "Container created successfully!" -ForegroundColor Green

View File

@ -1,24 +1,15 @@
# OSIC Stacks - analog-xm-arch
# Dev enviroment for analog circuits development using xschem and magic.
FROM greyltc/archlinux-aur:paru
FROM osicstack-base-arch
# Update packages
RUN pacman -Syuq --noconfirm
RUN sudo pacman -Syuq --noconfirm
# Install packages
RUN aur-install sudo xschem magic python python-pipx xz git gnu-free-fonts
# Install volare
RUN pipx install volare
RUN sudo aur-install xschem magic
# Clean cache
RUN pacman -Scc
# Add main user
RUN useradd -m designer
RUN echo "designer ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/designer
USER designer
RUN sudo pacman -Scc
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]

View File

@ -3,15 +3,13 @@
FROM osicstack-base-arch
# Update packages
RUN pacman -Syuq --noconfirm
RUN sudo pacman -Syuq --noconfirm
# Install packages
RUN aur-install verilator gtkwave base-devel cmake
RUN sudo aur-install verilator gtkwave base-devel cmake
# Clean cache
RUN pacman -Scc
USER designer
RUN sudo pacman -Scc
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]