summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Zhukov <33721692+LeaveMyYard@users.noreply.github.com>2023-07-11 12:40:21 +0300
committerGitHub <noreply@github.com>2023-07-11 12:40:21 +0300
commit6aa6eded147ef95ba7ca26fb90b918af2dec0643 (patch)
tree2e558a98d66ea78ff35ead4ca9ef5ae470e1e1f3
parentca545cd6610808c81dc8c4663f445512ea894f7b (diff)
parent145ea7f2bd37e84f53660b4eb3b14ffd4d16806c (diff)
Merge pull request #102 from ironsource-mobile/aws_dockerfile
Docker dir for specific clouds and AWS dockerfile
-rw-r--r--docker/README.md12
-rw-r--r--docker/aws.Dockerfile28
2 files changed, 40 insertions, 0 deletions
diff --git a/docker/README.md b/docker/README.md
new file mode 100644
index 0000000..a1bf1da
--- /dev/null
+++ b/docker/README.md
@@ -0,0 +1,12 @@
+# Dockerfiles for specific clouds
+
+This directory will include Dockerfiles for various cloud providers.
+
+## AWS
+
+For the usage of `krr` container we need the Dockerfile to have `awscli` installed on it.
+The `aws.Dockerfile` is a modified `krr` dockerfile which includes:
+ - installation of curl & zip
+ - installation of awscli
+
+
diff --git a/docker/aws.Dockerfile b/docker/aws.Dockerfile
new file mode 100644
index 0000000..13d79b8
--- /dev/null
+++ b/docker/aws.Dockerfile
@@ -0,0 +1,28 @@
+# Use the official Python 3.9 slim image as the base image
+FROM python:3.9-slim as builder
+
+# Set the working directory
+WORKDIR /app
+
+# Install system dependencies required for Poetry
+RUN apt-get update && \
+ dpkg --add-architecture arm64
+
+COPY ./requirements.txt requirements.txt
+
+# Install the project dependencies
+RUN pip install -r requirements.txt
+
+# Install curl and unzip for awscli
+RUN apt-get -y update; apt-get -y install curl; apt-get -y install unzip
+
+# Download awscli and unzip it
+RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
+ unzip awscliv2.zip && \
+ ./aws/install
+
+# Copy the rest of the application code
+COPY . .
+
+# Run the application using 'poetry run krr simple'
+ENTRYPOINT ["python", "krr.py", "simple"]