-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (22 loc) · 868 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
FROM fedora:35
LABEL name="poc-s3-pull-processor"
LABEL author="[email protected]"
LABEL maintainer="[email protected]"
LABEL description="POC producer and consumer artifact from/to centralized object storage"
# AWS environment variables
ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
ENV AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
ENV AWS_S3_SECURE_CONNECTION=${AWS_S3_SECURE_CONNECTION}
ENV VIRTUAL_ENV=/opt/src/s3-pull-processor/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
WORKDIR /opt/src/s3-pull-processor
# packages required in OS
RUN dnf install git -y
# install from repo
# RUN git clone https://github.com/eduardocerqueira/s3-pull-processor.git .
# install from local source code, files in .dockerignore will be excluded
COPY . .
RUN env
RUN sh ops/scripts/install.sh
CMD s3-pull-processor