-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.layer2
More file actions
36 lines (29 loc) · 1.1 KB
/
Dockerfile.layer2
File metadata and controls
36 lines (29 loc) · 1.1 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
29
30
31
32
33
34
35
36
# Layer 2: Ops Bench Image
# Extends Layer 1b (sys-bench-base) with deployment, CI/CD, and security tools
# Philosophy: "Deliver & Secure" - tools that ship code and guard deployments
# USER-AGNOSTIC: No user creation — Layer 3 handles user setup
ARG BASE_IMAGE=sys-bench-base:latest
FROM ${BASE_IMAGE}
# Container version labels
LABEL layer="2"
LABEL layer.name="ops-bench"
LABEL layer.version="1.0.0"
LABEL layer.description="Ops bench with deployment, CI/CD, and security tools (user-agnostic)"
LABEL bench.type="ops-admin"
# Everything runs as root
USER root
# ========================================
# OPS-SPECIFIC TOOLS
# ========================================
# Install prerequisites for ops tools
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
unzip \
python3-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install ops tools (minimal core set)
COPY install-ops-tools-minimal.sh /tmp/
RUN bash /tmp/install-ops-tools-minimal.sh && rm /tmp/install-ops-tools-minimal.sh
# Default command
CMD ["sleep", "infinity"]