国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Instructions to hack up WSL2 on Windows 10 Build 18917 to run k3s (Kubernetes) and rio
https://docs.microsoft.com/en-us/windows/wsl/wsl2-install
I already had Ubuntu-18.04 installed in wsl 1. So I just did wsl --set-version Ubuntu-18.04 2
Using Ubuntu 18.04 (I'm sure any distro will work), inside WSL2 download https://thirdpartysource.microsoft.com/download/Windows%20Subsystem%20for%20Linux%20v2/May%202019/WSLv2-Linux-Kernel-master.zip and extract to a folder. The latest version of the kernel source is available at (https://github.com/microsoft/WSL2-Linux-Kernel)
from gremlin_python.structure.graph import Graph | |
from gremlin_python.process.graph_traversal import __ | |
# I use a property instead of directly setting the ID because I could not get it to work, and this works | |
# just as well for now. I'd imagine setting the id directly is better for runtime. | |
# If you figure out how to set the id directly with gremlin-python, feel free to make a pull request and I'll merge it. | |
IDENTIFICATION_PROPERTY = 'identification' | |
WEIGHT_PROPERTY = 'weight' | |
""" |