added sysco poller

This commit is contained in:
2021-12-18 17:10:23 -08:00
parent d8322bf498
commit fcdc00ed16
3 changed files with 149 additions and 0 deletions

7
sysco-poller/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM public.ecr.aws/amazonlinux/amazonlinux:latest
RUN yum install -y openssh-clients
RUN yum install -y lftp
RUN yum install -y aws-cli
COPY script.sh /
CMD /script.sh

3
sysco-poller/script.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
lftp "sftp://NICKGREEK:Nic_$&^632@sb2b.sysco.com" -e "mirror Outbound /home; exit;"
aws s3 sync /home/ s3://data.prod.app.integreatconsult.com/sysco/pending