English 中文(简体)
Building docker image is failing
原标题:

I have created below docker file to install JDK 16.0.2 version and Jmeter 5.5. While pushing changes in GitHub the "Build Jmeter Docker Image" steps are getting failed:

I could see following Error: debconf: delaying package configuration, since apt-utils is not installed. Could someone please advise the reason for the failure

jmeter.yml file

  name: JMeter Tests
    on:
      push:
        branches:
          - "booking-*"
    jobs:
      jmeter:
        runs-on: ubuntu-latest
        steps:
        - name: Checkout code
          uses: actions/checkout@v2
        - name: Build JMeter Docker image
          run: docker build -t my-jmeter:latest .
        - name: Run JMeter tests
          run: |
     docker run --rm 
      -v ${PWD}:${PWD} 
      -w ${PWD} 
      my-jmeter:latest 
      -n -t test/CloudRun.jmx -l results/CloudRdunResults.jtl

Below is my Dockerfile:

FROM openjdk:16-jdk-slim-buster

ENV JMETER_VERSION 5.5

RUN apt-get update && 
    apt-get install -y wget && 
    rm -rf /var/lib/apt/lists/*

RUN wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-${JMETER_VERSION}.tgz && 
    tar zxvf apache-jmeter-${JMETER_VERSION}.tgz && 
    rm apache-jmeter-${JMETER_VERSION}.tgz

ENV PATH $PATH:/apache-jmeter-${JMETER_VERSION}/bin
问题回答

This debconf: delaying package configuration, since apt-utils is not installed. can be safely ignored as it s not an "error", it s a "warning".

It s hard to say why exactly your pipeline fail without seeing its full output, from the first glance your YAML syntax is invalid.

Try out this one:

name: JMeter Tests
on:
  push:
    branches:
      - "booking-*"
jobs:
  jmeter:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Build JMeter Docker image
        run: docker build -t my-jmeter:latest .
      - name: Run JMeter tests
        run: |
          docker run --rm 
          my-jmeter:latest 
          jmeter -n -t /apache-jmeter-5.5/extras/Test.jmx

It should build the image and run the test successfully. Then amend it according to your needs.

More information: How to Use Docker with JMeter





相关问题
热点-记录问题

我试图用JMeter 2.3.3版本记录一个网页。 我设立了“JMeter”代理机构,并进行了尝试,但做了一些工作。 我采取了以下步骤。

benchmarking a asp.net website, can I use jmeter?

just looking at jmeter, from what I can I see it is a desktop application, so is it safe to say I can use it to benchmark a windows server running asp.net? any other recommended tools?

How many requests can SQL Server handle per second?

I am using JMeter to test our application s performance. but I found when I send 20 requests from JMeter, with this the reason result should be add 20 new records into the sql server, but I just find ...

Why didn t see 10 records in database?

I use JMeter to test my web application. and my test case is to add a record in database. and then I set the "number of thread user" to 20, it means that it will simulate 20 users work at the same ...

Recorded test plan does not work

I use jmeter to record the requests and then perform a performance test. After I ve recorded all the requests with proxy server and they contain post form, I run these test-cases, but I found the ...

Tomcat平均同时用户人数

我正在与JMeter一道对网络应用进行压力测试(与春季、Stuts2 REST共同设计,使用PogreSQL)。

JMeter with Windows Authentication?

I am using JMeter to load test some pages that reside in a SharePoint 2007 Site. The farm that contains the pages resides in a different domain than the machine running the test, and uses Windows ...

Jmeter alternative [closed]

I m looking for a freeware / simpler alternative to JMeter. It is a very complete yet complex tool and all I need is to simulate a number of simultaneous calls to a site, grab stats about performance (...

热门标签