I have tried both
options:
docker: true
and
services:
- docker
but I am still receiving the error:
bash: docker: command not found
My bitbucket-pipelines.yml file:
- step:
name: Get latest versions of libraries
script:
- docker build . -t selenium-chrome && \ docker run -it selenium-chrome python3
- pip install selenium
- pip install beautifulsoup4
- pip install lxml
- python webscrape.py
services:
- docker
artifacts:
- latest_vers.json
My Dockerfile:
FROM selenium/standalone-chrome
USER root
RUN apt-get update && apt-get install python3-distutils -y
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python3 get-pip.py
RUN python3 -m pip install selenium
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.