相关文章推荐
满身肌肉的饼干  ·  ARR 的优缺点| O2C ...·  1 月前    · 
火星上的猴子  ·  宝骏310_百度百科·  2 月前    · 
坚强的板栗  ·  尔湾Irvine·  2 年前    · 

Tutorial: Integrating Gauge with Docker

Gauge can be easily installed on Docker container.

Prerequisites

  • Docker
  • Docker image for Gauge

  • Create a Dockerfile file in your project root.
  • Add these lines in Dockerfile according to the platform on which you want to build.
  • DockerFile

    FROM ubuntu
    # Install Java.
    RUN apt-get update && apt-get install -q -y \
        curl \
        zip \
        openjdk-11-jdk \
        apt-transport-https \
        gnupg2 \
        ca-certificates
    RUN curl -SsL https://downloads.gauge.org/stable | sh
    # Install gauge plugins
    RUN gauge install java && \
        gauge install screenshot
    ENV PATH=$HOME/.gauge:$PATH