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