2021年5月2日星期日

Wait until docker container is Ready in circleci

I defined start_selenium like this

start_selenium: &start_selenium      name: Download & Run Selenium Stand alone Server      command: |        curl -O https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar        java -jar selenium-server-standalone-3.141.59.jar -log selenium.log        java --version      background: true  

And also jobs like this

jobs:     docker:        - image: cimg/openjdk:16.0.0    steps:        - run: *start_selenium  

But the problem is start_selenium runs before docker image is ready and it says 'java' command is not defined.

https://stackoverflow.com/questions/67363076/wait-until-docker-container-is-ready-in-circleci May 03, 2021 at 11:09AM

没有评论:

发表评论