Compare commits
3 Commits
efa6733ba8
...
4b5b7b38a2
Author | SHA1 | Date | |
---|---|---|---|
4b5b7b38a2 | |||
979f886e20 | |||
cf862afc6b |
@ -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
|
||||
|
@ -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"]
|
@ -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"]
|
Loading…
Reference in New Issue
Block a user