start docker
docker compose -f ubuntu.yaml up -dgo into container
docker exec -ti ubuntu bashstart docker
docker compose -f ubuntu.yaml up -dgo into container
docker exec -ti ubuntu bash| version: '3.7' | |
| services: | |
| ubuntu: | |
| container_name: ubuntu | |
| image: ubuntu:latest | |
| hostname: ubuntu | |
| tty: true | |
| volumes: | |
| - ./dump:/dump:ro |
| import {Block} from 'payload/types'; | |
| const createRecursiveLinksBlock = (current = 0, maxDepth = 3): Block => { | |
| if (current < maxDepth - 1) { | |
| current++; | |
| return { | |
| slug: `Level ${current}`, | |
| fields: [ | |
| { | |
| name: 'name', |