Browse Source

Update Dockerfile

Signed-off-by: Shubhangi-dell <shubhangi_srivastava@dell.com>
Shubhangi-dell 3 years ago
parent
commit
e2d276d0a7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      control_plane/roles/control_plane_ib/files/Dockerfile

+ 3 - 0
control_plane/roles/control_plane_ib/files/Dockerfile

@@ -1,5 +1,6 @@
 FROM rockylinux/rockylinux:docker_os
 FROM rockylinux/rockylinux:docker_os
 
 
+RUN dnf -y update && dnf clean all
 RUN dnf install -y epel-release
 RUN dnf install -y epel-release
 RUN dnf install dhcp-server -y \
 RUN dnf install dhcp-server -y \
   ansible \
   ansible \
@@ -20,5 +21,7 @@ COPY opensm.conf /etc/rdma/opensm.conf
 COPY start.sh /
 COPY start.sh /
 
 
 RUN systemctl enable dhcpd
 RUN systemctl enable dhcpd
+RUN chmod +x /start.sh
 
 
+ENTRYPOINT ["/start.sh"]
 CMD ["sbin/init"]
 CMD ["sbin/init"]