Compare commits
3 Commits
efa6733ba8
...
4b5b7b38a2
Author | SHA1 | Date | |
---|---|---|---|
4b5b7b38a2 | |||
979f886e20 | |||
cf862afc6b |
@ -1,6 +1,12 @@
|
|||||||
param([switch] $remote = $false)
|
param([switch] $remote = $false)
|
||||||
|
|
||||||
Write-Host "OSIC-Stacks Container Creation" -ForegroundColor Green
|
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:"
|
Write-Host "Please select an image index:"
|
||||||
|
|
||||||
$imageoptions = @(
|
$imageoptions = @(
|
||||||
@ -38,7 +44,7 @@ $dockercommand = ("docker run -d " +
|
|||||||
"-e XDG_RUNTIME_DIR=/mnt/wslg " +
|
"-e XDG_RUNTIME_DIR=/mnt/wslg " +
|
||||||
$image)
|
$image)
|
||||||
|
|
||||||
wsl bash -ic $dockercommand
|
wsl -d Ubuntu bash -ic $dockercommand
|
||||||
|
|
||||||
if ($?) {
|
if ($?) {
|
||||||
Write-Host "Container created successfully!" -ForegroundColor Green
|
Write-Host "Container created successfully!" -ForegroundColor Green
|
||||||
|
@ -1,24 +1,15 @@
|
|||||||
# OSIC Stacks - analog-xm-arch
|
# OSIC Stacks - analog-xm-arch
|
||||||
# Dev enviroment for analog circuits development using xschem and magic.
|
# Dev enviroment for analog circuits development using xschem and magic.
|
||||||
FROM greyltc/archlinux-aur:paru
|
FROM osicstack-base-arch
|
||||||
|
|
||||||
# Update packages
|
# Update packages
|
||||||
RUN pacman -Syuq --noconfirm
|
RUN sudo pacman -Syuq --noconfirm
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN aur-install sudo xschem magic python python-pipx xz git gnu-free-fonts
|
RUN sudo aur-install xschem magic
|
||||||
|
|
||||||
# Install volare
|
|
||||||
RUN pipx install volare
|
|
||||||
|
|
||||||
# Clean cache
|
# Clean cache
|
||||||
RUN pacman -Scc
|
RUN sudo 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
|
|
||||||
|
|
||||||
# Initialize the enviroment keeping container alive
|
# Initialize the enviroment keeping container alive
|
||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
@ -3,15 +3,13 @@
|
|||||||
FROM osicstack-base-arch
|
FROM osicstack-base-arch
|
||||||
|
|
||||||
# Update packages
|
# Update packages
|
||||||
RUN pacman -Syuq --noconfirm
|
RUN sudo pacman -Syuq --noconfirm
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN aur-install verilator gtkwave base-devel cmake
|
RUN sudo aur-install verilator gtkwave base-devel cmake
|
||||||
|
|
||||||
# Clean cache
|
# Clean cache
|
||||||
RUN pacman -Scc
|
RUN sudo pacman -Scc
|
||||||
|
|
||||||
USER designer
|
|
||||||
|
|
||||||
# Initialize the enviroment keeping container alive
|
# Initialize the enviroment keeping container alive
|
||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
Loading…
Reference in New Issue
Block a user