forked from ShaneMcC/docker-omsa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (22 loc) · 977 Bytes
/
Dockerfile
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
FROM almalinux:latest
LABEL org.opencontainers.image.authors="tigerblue77"
# Set environment variables
ENV PATH $PATH:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin
# Update local packages list
RUN dnf -y update
# Install Dell OpenManage Server Administrator dependancies
RUN dnf -y install wget perl passwd procps kmod
# Add Dell Linux repository
RUN wget -q -O - https://linux.dell.com/repo/hardware/dsu/bootstrap.cgi | bash
# Install all Dell OpenManage Server Administrator packages (we could select specific components instead)
RUN dnf -y install srvadmin-all
# Uninstall dependencies which are no longer required
RUN dnf -y remove wget
# Clean cache files and repository metadata
RUN dnf clean all
# Prevent daemon helper scripts from making systemd calls
ENV SYSTEMCTL_SKIP_REDIRECT=1
# Copy Docker container's script to Docker image
ADD configure_and_run_Dell_OMSA.sh /configure_and_run_Dell_OMSA.sh
# Run the application
CMD /configure_and_run_Dell_OMSA.sh