Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create dockerfile for Appium Robot framework #1618

Open
bhadmus opened this issue Jan 1, 2021 · 0 comments
Open

Cannot create dockerfile for Appium Robot framework #1618

bhadmus opened this issue Jan 1, 2021 · 0 comments

Comments

@bhadmus
Copy link

bhadmus commented Jan 1, 2021

I am trying to create a docker file for a simple mobile test script I tried my hands on. below is the Dockerfile I created. The build has not been successful, I need help in getting it right

    MAINTAINER  Ademola Bhadmus, [email protected]
    ENV env=/root/env
    ENV PATH="$env/bin:$PATH"
    WORKDIR  /root
    # Copy relevant files to work directory
    COPY Resources .
    COPY Results .
    COPY Tests .
    # Install Python, Robot, and Appium
    COPY requirements.txt .
    RUN pip3 install --no-cache-dir --upgrade pip
    RUN python3 -m venv $env
    RUN pip3 install --no-cache-dir -r requirements.txt
    FROM node:latest
    RUN mkdir -p /usr/app
    WORKDIR /usr/app
    COPY . .
    RUN npm install -g appium
    # Execute file
    CMD ["appium"]
    CMD ["robot", "-d", "results", "index.robot"]

ERROR:

npm ERR! code ENOENT
    npm ERR! syscall chmod
    npm ERR! path /usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios
    npm ERR! errno -2
    npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios'
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent 
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2021-01-01T06_52_36_641Z-debug.log
    What am I doing wrong?

Please what am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant