Set default distribution to arch & analog-xk-web working

This commit is contained in:
Mario Romero 2023-09-21 04:29:04 -03:00
parent 336186d626
commit 71a576c373
9 changed files with 38 additions and 33 deletions

View File

@ -56,11 +56,18 @@ docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --name <cont
Install `Xquartz` and run the linux previous command.
### 2. Connecting to the container
#### Desktop
After creating and starting the container, enter to it executing a shell with docker.
```sh
docker exec -it <container_name> bash
```
#### Web
Connect from the web to the VNC client at `localhost:8444`.
### 3. Configure Volare
List the available PDKs and choose one to install.
@ -101,8 +108,8 @@ For creating an image with your own pre-installed set of packages for your team
A singular stack image can be builded using docker in the following way from the repository root path.
```sh
docker build -t osicstacks-base-arch -f base/Dockerfile .
docker build -t <tag> -f stacks/<stack>/arch.Dockerfile .
docker build --no-cache -t osicstacks-base-<desktop/web> -f base/<desktop/web>.Dockerfile .
docker build --no-cache --build-arg BASE_IMG=osicstacks-base-<desktop/web> --target <stack>-<desktop/web> -t <tag> -f stacks/<stack>.Dockerfile .
```
### Local Run
@ -117,4 +124,4 @@ powershell.exe -ExecutionPolicy Bypass run.ps1
#### Linux
```sh
docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --name <container_name> <tag>
```
```

View File

@ -0,0 +1,28 @@
# OSIC Stacks - analog-xk
# Dev enviroment for analog circuits development using xschem and klayout.
ARG BASE_IMG=osicstacks-base-native
FROM $BASE_IMG as analog-xk
# Update packages
RUN sudo pacman -Syuq --noconfirm
# Install packages
RUN sudo aur-install xschem klayout
RUN pip install gdsfactory --break-system-packages
RUN pip install gf180 --upgrade --break-system-packages
# Clean cache
RUN sudo pacman -Scc
# - Desktop build
FROM analog-xk as analog-xk-desktop
# Initialize the environment keeping container alive
CMD ["sleep", "infinity"]
# - Web build
FROM analog-xk as analog-xk-web
# Run VNC server & desktop environment
CMD ["startserver"]

View File

@ -1,18 +0,0 @@
# OSIC Stacks - analog-xk-arch
# Dev enviroment for analog circuits development using xschem and klayout.
FROM osicstack-base-arch
# Update packages
RUN sudo pacman -Syuq --noconfirm
# Install packages
RUN sudo aur-install xschem klayout
RUN pip install gdsfactory --break-system-packages
RUN pip install gf180 --upgrade --break-system-packages
# Clean cache
RUN sudo pacman -Scc
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]

View File

@ -1,12 +0,0 @@
# OSIC Stacks - analog-xm-jammy
# Dev enviroment for analog circuits development using xschem and magic.
FROM phusion/baseimage:jammy-1.0.1
# Install packages
RUN install_clean xschem magic python3 python3-pip xz-utils git
# Install volare
RUN python3 -m pip install --upgrade --no-cache-dir volare
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]