From 792789e4799d74da4d426b16a5ed835f62bad77c Mon Sep 17 00:00:00 2001 From: "Melchor O. Abcede Jr" Date: Tue, 12 Sep 2017 04:13:44 +0800 Subject: [PATCH] added eb cli container --- aws/.gitignore | 1 + aws/Dockerfile | 17 +++++++++++++++++ docker-compose.yml | 10 ++++++++++ 3 files changed, 28 insertions(+) create mode 100644 aws/.gitignore create mode 100644 aws/Dockerfile diff --git a/aws/.gitignore b/aws/.gitignore new file mode 100644 index 00000000..46194830 --- /dev/null +++ b/aws/.gitignore @@ -0,0 +1 @@ +./ssh_keys diff --git a/aws/Dockerfile b/aws/Dockerfile new file mode 100644 index 00000000..4f03e9dc --- /dev/null +++ b/aws/Dockerfile @@ -0,0 +1,17 @@ +FROM python:slim + +MAINTAINER melchabcede@gmail.com + +RUN pip install --upgrade --no-cache-dir awsebcli +RUN apt-get -yqq update && apt-get -yqq install git-all + +#NOTE: make sure ssh keys are added to ssh_keys folder + +RUN mkdir root/tmp_ssh +COPY /ssh_keys/. /root/.ssh/ +RUN cd /root/.ssh && chmod 600 * && chmod 644 *.pub + +# Set default work directory +WORKDIR /var/www + + diff --git a/docker-compose.yml b/docker-compose.yml index d7ddf84f..3d8d9d86 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -638,6 +638,16 @@ services: - frontend - backend +### AWS EB-CLI #### + aws: + build: + context: ./aws + volumes_from: + - applications + depends_on: + - workspace + tty: true + ### Networks Setup ############################################ networks: