Skip to content

Commit

Permalink
Comment out x86/test/fs and x86/test/net configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksejZhmulin committed Apr 2, 2024
1 parent d14ae02 commit 899253a
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,28 +96,30 @@ ENV PATH=$PATH:\
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

## x86/test/fs
RUN for i in $(seq 0 9); do \
mknod /dev/loop$i -m0660 b 7 $i; done
# RUN for i in $(seq 0 9); do \
# mknod /dev/loop$i -m0660 b 7 $i; done

## x86/test/fs nfs
RUN mkdir -p -m 777 /var/nfs_test
COPY exports /etc/
# RUN mkdir -p -m 777 /var/nfs_test
# COPY exports /etc/

## x86/test/fs cifs
RUN mkdir -p -m 777 /var/cifs_test
COPY smb.conf.public /etc/samba/
RUN cat /etc/samba/smb.conf.public >> /etc/samba/smb.conf && \
rm /etc/samba/smb.conf.public
# RUN mkdir -p -m 777 /var/cifs_test
# COPY smb.conf.public /etc/samba/
# RUN cat /etc/samba/smb.conf.public >> /etc/samba/smb.conf && \
# rm /etc/samba/smb.conf.public

## x86/test/net
COPY dhcpd.conf /etc/dhcp/
COPY isc-dhcp-server /etc/default/
COPY ntp.conf /etc/
# COPY dhcpd.conf /etc/dhcp/
# COPY isc-dhcp-server /etc/default/
# COPY ntp.conf /etc/

CMD mount -t tmpfs none /var/nfs_test && \
systemctl restart rpcbind && \
systemctl restart nfs-kernel-server && \
systemctl restart nmbd && \
systemctl restart smbd && \
systemctl restart ntp && \
systemctl restart inetd
# CMD mount -t tmpfs none /var/nfs_test && \
# systemctl restart rpcbind && \
# systemctl restart nfs-kernel-server && \
# systemctl restart nmbd && \
# systemctl restart smbd && \
# systemctl restart ntp && \
# systemctl restart inetd

CMD [""]

0 comments on commit 899253a

Please sign in to comment.