-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.ci
More file actions
28 lines (22 loc) · 1.09 KB
/
Copy pathDockerfile.ci
File metadata and controls
28 lines (22 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Stage: Runtime image
# Copies binaries from the Goreleaser build context
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
LABEL io.k8s.display-name="virtwork" \
io.k8s.description="Creates virtual machines on OpenShift with continuous workloads for metrics generation" \
io.openshift.tags="virtwork,kubevirt,openshift,workload-generator" \
summary="virtwork workload generator for OpenShift Virtualization" \
description="CLI tool that creates VMs on OpenShift clusters with KubeVirt and runs continuous CPU, memory, database, network, and disk I/O workloads" \
name="virtwork"
# Create data directory for audit database.
# OpenShift runs containers with an arbitrary UID but always GID 0.
# Setting group ownership to 0 and mode 775 ensures writability.
RUN mkdir -p /data && \
chown 1001:0 /data && \
chmod 775 /data
COPY linux/amd64/virtwork /usr/local/bin/virtwork
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
USER 1001
WORKDIR /data
ENV VIRTWORK_AUDIT_DB=/data/virtwork.db
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]