Hi, I was able to install and build docker. I atte...
# ieee-sscs-dc-24
f
Hi, I was able to install and build docker. I attempted to follow the rest of the steps in 6. I then tried to test the install by running the phython script but face an issue. All of these commands in 6 should be done in my WSL under the OpenFASOC directory?
r
For the first screenshot, you may want to do these:
Copy code
#Firstly, check whether the gdsfactory package is already there
python3 -m pip show gdsfactory
#Now, manually installed the package
python3 -m pip install -v gdsfactory==7.7.0
f
Yes. It has been installed.
r
Then, if the previous step is done, exit the container by typing
exit
and enter. Now, type in
docker rm -f glayoutcontainer
. Now, if you're working with wsl2 and windows 11 (as in my case), you'd want to install vcxsrv (xserver) to ease the use of GUI later: • Go to vcxsrv and click the download link (the latest version) • Go through the installation steps on this tutorial. Prior to setting the display environment, make sure that you also have set the firewall setting for vcxsrv as explained on the tutorial. • Now, get back to ubuntu terminal. Type in
vim ~/.bashrc
to open the rc file. Press
I
to enter the insert mode. Go down to the bottom of the file and insert these lines:
Copy code
export DISPLAY=$(ip route|awk '/^default/{print $3}'):0.0
export LIBGL_ALWAYS_INDIRECT=1
and then press
Esc
to exit from the insert mode. Next, type :wq to exit and save the changes. After that run
source ~/.bashrc
. • Now, open another ubuntu terminal and type in the following command:
Copy code
docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -v /mnt/wslg:/mnt/wslg -v $(pwd):$(pwd) -w $(pwd)  -e DISPLAY -e WAYLAND_DISPLAY -e XDG_RUNTIME_DIR -e PULSE_SERVER --name glayoutcontainer openfasoc:glayout
By now, you should've entered a new container as indicated by
root@containerID
. • Now, you can go to the location where you store the OpenFASOC directory. The remaining steps are shown in the docs. I'll put it here for convenience:
Copy code
# assuming you are in the OpenFASOC directory
cd openfasoc/generators/glayout
python3 test_glayout.py
f
Okay, will attempt right now. I appreciate your time!
👍 1
Hmm, I exited and face this.
I am running WSL in Windows 11
r
Whoops, sorry. I'll reupload the results.
f
Docker seems to be working
r
Can you do
sudo service docker start
?
f
Docker has started. Do I re enter the previous command?
r
Run
docker ps -a
to see the list of containers
Add sudo at the beginning of the command
f
woah
I have two containers: hello world and openfasoc:glayout
r
Now you can repeat the instructions I showed you
f
do I execute them as is or inside OpenFASOC?
r
It seems that you need to add sudo at the beginning of docker commands 😀
😃 1
Outside OpenFASOC. Just use another terminal if you'd like.
f
Sounds good!
👍 1
So I was able to install KLive. I now need to enter my FASOC container. However, when I run
sudo docker ps -a
my FASOC container is missing. I need the ID to continue following the

video

😮
I was being dumb. Got it all!
👍 1
s
@Freddy Hernandez @reivan glad that I read this thread.....thanks guys
r
You're welcome 👍