Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save diyism/42fde1bbb2bd552cdc97c5e7e2da567a to your computer and use it in GitHub Desktop.

Select an option

Save diyism/42fde1bbb2bd552cdc97c5e7e2da567a to your computer and use it in GitHub Desktop.
run_playwright_python_in_ibm_linuxone(S390 cpu)_or_google_idx
apply linuxone trial(60 days) with a github project: https://linuxone.cloud.marist.edu/
activate account from receipt email
login and click "Manage instances", create ubuntu 22.04(CPU 2 core, RAM 4GB, disk 50GB), import pub key
ssh linux1@<ip addr>
sudo apt install docker-ce
sudo apt install -y qemu-user-static binfmt-support
sudo docker run --platform linux/amd64 --volume /run/dbus:/run/dbus --security-opt apparmor=unconfined --cap-add=SYS_PTRACE -it ubuntu:latest /bin/bash
sudo docker attach <container id>
apt install python3-pip
pip3 install playwright
playwright install chromium
wget https://github.com/diyism/big_files_share/releases/download/v1.0.0/tight
chmod 777 tight
apt install libjpeg62
apt install xfonts-base
./tight :10 &
export DISPLAY=:10
service dbus start
python3 my_playwright.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment