-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
executable file
·32 lines (25 loc) · 896 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:18.04
LABEL maintainer="SoniaGR <[email protected]>"
RUN apt-get update && apt-get install -y \
--no-install-recommends \
--fix-missing \
ca-certificates \
jq \
xxd \
curl \
unzip
## Install the AWS CLI dependency (used to interact with AWS services)
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
## Copy and RUN the s3md5 tool dependency (used to calculate ETag number of file multiparts)
RUN mkdir /usr/src/s3md5
COPY ./s3md5/* /usr/src/s3md5/
RUN chmod -R 777 /usr/src/s3md5
## Copy the aws-s3-integrity-check tool and grant permissions
COPY ./aws_check_integrity.sh /usr/src/aws_check_integrity.sh
RUN chmod 755 /usr/src/aws_check_integrity.sh
## Create folder to store the logs
RUN mkdir /usr/src/logs
RUN chmod 755 /usr/src/logs
ENTRYPOINT ["/usr/src/aws_check_integrity.sh"]