Skip to content

Commit 655b9a1

Browse files
authored
Merge pull request laradock#1128 from chkm8/aws-ebcli
Aws ebcli
2 parents 801ccd4 + 7ac37ec commit 655b9a1

4 files changed

Lines changed: 48 additions & 0 deletions

File tree

DOCUMENTATION/content/documentation/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,26 @@ docker-compose up -d minio
922922
```
923923

924924

925+
926+
<br>
927+
<a name="Use-AWS"></a>
928+
## Use AWS
929+
930+
1 - Configure AWS:
931+
- make sure to add your SSH keys in aws/ssh_keys folder
932+
933+
2 - Run the Aws Container (`aws`) with the `docker-compose up` command. Example:
934+
935+
```bash
936+
docker-compose up -d aws
937+
```
938+
939+
3 - Access the aws container with `docker-compose exec aws bash`
940+
941+
4 - To start using eb cli inside the container, initiaze your project first by doing 'eb init'. Read the [aws eb cli](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html) docs for more details.
942+
943+
944+
925945
<br>
926946
<a name="CodeIgniter"></a>
927947

aws/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./ssh_keys

aws/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM python:slim
2+
3+
MAINTAINER melchabcede@gmail.com
4+
5+
RUN pip install --upgrade --no-cache-dir awsebcli
6+
RUN apt-get -yqq update && apt-get -yqq install git-all
7+
8+
#NOTE: make sure ssh keys are added to ssh_keys folder
9+
10+
RUN mkdir root/tmp_ssh
11+
COPY /ssh_keys/. /root/.ssh/
12+
RUN cd /root/.ssh && chmod 600 * && chmod 644 *.pub
13+
14+
# Set default work directory
15+
WORKDIR /var/www
16+
17+

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,16 @@ services:
638638
- frontend
639639
- backend
640640

641+
### AWS EB-CLI ####
642+
aws:
643+
build:
644+
context: ./aws
645+
volumes_from:
646+
- applications
647+
depends_on:
648+
- workspace
649+
tty: true
650+
641651
### Networks Setup ############################################
642652

643653
networks:

0 commit comments

Comments
 (0)