Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 624 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 624 Bytes

Create the following config.js file and set the loginUrl:

global.config = {
    loginUrl : "xxxxxxx",
    urls : [
        {
            "url": "https://cbioportal.mskcc.org/study/summary?id=mskimpact"
        }
    ]
}

Run the following command:

docker run -i --init --cap-add=SYS_ADMIN --rm ghcr.io/puppeteer/puppeteer:latest node -e "$(cat ./config.js); $(cat ./main.js)"

Running in Kubernetes cluster

kubectl delete po cache-warmer; kubectl run cache-warmer --env="LOGIN_URLxxx" --image cbioportal/cache_warmer:docker-run-edits5 --attach --leave-stdin-open --rm -it -- node main.js