1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-06 15:37:33 +00:00
kata-containers/tests/metrics/storage/web-tooling-dockerfile/Dockerfile.in
David Esparza 35d096b607
metrics: Adds blogbench and webtool metrics tests
This PR adds blogbench and webtooling metrics checks to this repo.
The function running the test intentionally returns zero, so
the test will be enabled in another PR once the workflow is
green.

Fixes: 

Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
2023-07-04 14:38:52 -06:00

29 lines
916 B
Docker
Executable File

# Copyright (c) 2020-2021 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
# Set up an Ubuntu image with 'web tooling' installed
# Usage: FROM [image name]
# hadolint ignore=DL3007
FROM @UBUNTU_REGISTRY@/ubuntu:latest
# Version of the Dockerfile
LABEL DOCKERFILE_VERSION="1.0"
# URL for web tooling test
ENV WEB_TOOLING_URL "https://github.com/v8/web-tooling-benchmark"
ENV NODEJS_VERSION "setup_14.x"
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential git curl sudo && \
apt-get remove -y unattended-upgrades && \
curl -OkL https://deb.nodesource.com/${NODEJS_VERSION} && chmod +x ${NODEJS_VERSION} && ./${NODEJS_VERSION} && \
apt-get install -y --no-install-recommends nodejs && \
apt-get clean && rm -rf /var/lib/apt/lists && \
git clone ${WEB_TOOLING_URL} /web-tooling-benchmark
WORKDIR /web-tooling-benchmark/
RUN npm install --unsafe-perm
CMD ["/bin/bash"]