This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
forked from silinternational/ecs-deploy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
increased tests and added Codeship for CI
- Loading branch information
Showing
7 changed files
with
140 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
FROM silintl/ubuntu:14.04 | ||
MAINTAINER Phillip Shipley <[email protected]> | ||
FROM alpine:3.5 | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y \ | ||
curl \ | ||
python-setuptools \ | ||
jq \ | ||
&& easy_install pip \ | ||
&& pip install awscli | ||
# Update APK cache | ||
RUN apk update | ||
|
||
COPY ecs-deploy /usr/local/bin/ecs-deploy | ||
# Install packges needed | ||
RUN apk add ca-certificates curl bash jq py2-pip && \ | ||
pip install awscli | ||
|
||
RUN chmod a+x /usr/local/bin/ecs-deploy | ||
COPY ecs-deploy /ecs-deploy | ||
RUN chmod a+x /ecs-deploy | ||
|
||
ENTRYPOINT ["/usr/local/bin/ecs-deploy"] | ||
COPY test.bats /test.bats | ||
COPY run-tests.sh /run-tests.sh | ||
RUN chmod a+x /run-tests.sh | ||
|
||
ENTRYPOINT ["/ecs-deploy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ecsdeploy: | ||
build: | ||
image: silintl/ecs-deploy | ||
dockerfile_path: ./Dockerfile | ||
entrypoint: bash | ||
command: /run-tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- name: test | ||
service: ecsdeploy | ||
command: /run-tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
ecsdeploy: | ||
image: silintl/ecs-deploy | ||
image: ecs-deploy | ||
env_file: | ||
- local.env | ||
- local.env | ||
volumes: | ||
- ./ecs-deploy:/ecs-deploy | ||
|
||
test: | ||
image: ecs-deploy | ||
env_file: | ||
- local.env | ||
entrypoint: ["bash"] | ||
command: ["/run-tests.sh"] | ||
volumes: | ||
- ./ecs-deploy:/ecs-deploy | ||
- ./run-tests.sh:/run-tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
apk add bats --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted | ||
|
||
bats test.bats |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters