File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:16.04
2+ MAINTAINER Gruntwork < info@gruntwork.io>
3+
4+ # Install basic dependencies
5+ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
6+ apt-get install -y vim python-pip jq sudo curl
7+
8+ # Install Bats
9+ RUN apt-get install -y software-properties-common && \
10+ add-apt-repository ppa:duggan/bats && \
11+ DEBIAN_FRONTEND=noninteractive apt-get update && \
12+ apt-get install -y bats
13+
14+ # Install AWS CLI
15+ RUN pip install awscli --upgrade --user
16+
17+ # Install moto: https://github.com/spulec/moto
18+ RUN pip install flask moto moto[server]
19+
20+ # Install tools we'll need to create a mock EC2 metadata server
21+ RUN apt-get install -y net-tools iptables
22+
23+ # Copy mock AWS CLI into the PATH
24+ COPY ./.circleci/aws-local.sh /usr/local/bin/aws
File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ services:
33 shellcheck :
44 build :
55 context : ./
6+ dockerfile : Dockerfile.shellcheck
67 volumes :
78 - ./:/usr/local/src/bash-commons
89 working_dir : /usr/local/src/bash-commons/.circleci
910 command : ./shellcheck.sh
1011 bats :
11- image : gruntwork/bash-commons-circleci-tests
12+ # image: gruntwork/bash-commons-circleci-tests
13+ build :
14+ context : ./
15+ dockerfile : Dockerfile.bats
1216 volumes :
1317 # Mount all the files so you have "hot reload" of all changes from the host
1418 - ./:/usr/local/src/bash-commons
@@ -20,4 +24,4 @@ services:
2024 # For moto
2125 - " 5000:5000"
2226 # For ec2-metadata-mock
23- - " 8111:8111"
27+ - " 8111:8111"
You can’t perform that action at this time.
0 commit comments