mirror of
https://github.com/luscis/openlan.git
synced 2025-10-06 00:57:03 +08:00
19 lines
372 B
Docker
Executable File
19 lines
372 B
Docker
Executable File
FROM centos:7
|
|
|
|
ARG BIN
|
|
|
|
WORKDIR /root
|
|
|
|
ADD ${BIN} /tmp
|
|
|
|
RUN yum install -y epel-release centos-release-openstack-train \
|
|
&& yum install -y rdma-core libibverbs
|
|
RUN DOCKER=yes /tmp/${BIN}
|
|
|
|
RUN rm -rf /tmp/* && rm -rf /var/cache/yum/*
|
|
|
|
LABEL application="OpenLAN Switch Application"
|
|
LABEL maintainer="danieldin95@163.com"
|
|
|
|
CMD ["/var/openlan/script/switch.sh", "start"]
|