first commit
This commit is contained in:
commit
338257abca
|
@ -0,0 +1,13 @@
|
|||
FROM alpine:latest
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache openssh-client nfs-utils zstd
|
||||
|
||||
# RUN mkdir -p /mnt/nfs
|
||||
|
||||
COPY copy_files.sh /usr/local/bin/copy_files.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/copy_files.sh
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/copy_files.sh"]
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
FTP_SERVER=$FTP_SERVER
|
||||
FTP_USER=$FTP_USER
|
||||
FTP_PATH=$FTP_PATH
|
||||
#NFS_SERVER=$NFS_SERVER
|
||||
#NFS_PATH=$NFS_PATH
|
||||
|
||||
# mount -t nfs $NFS_SERVER:$NFS_PATH /mnt/nfs
|
||||
|
||||
sftp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no $FTP_USER@$FTP_SERVER:$FTP_PATH /mnt/beacon_data
|
||||
|
||||
umount /mnt/beacon_data
|
Loading…
Reference in New Issue