forked from Mario1159/osic-stacks
Set default distribution to arch & analog-xk-web working
This commit is contained in:
parent
336186d626
commit
71a576c373
13
README.md
13
README.md
@ -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>
|
||||
```
|
||||
```
|
||||
|
28
stacks/analog-xk.Dockerfile
Normal file
28
stacks/analog-xk.Dockerfile
Normal 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"]
|
@ -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"]
|
@ -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"]
|
Loading…
Reference in New Issue
Block a user