Skip to content

Commit 89e4fac

Browse files
author
James Lee
committed
Merge branch 'branch-v0.6' into branch-v0.7
2 parents 8cfc5d4 + a73e6a0 commit 89e4fac

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

.circleci/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: /dockerapp
5+
docker:
6+
- image: docker:17.05.0-ce-git
7+
steps:
8+
- checkout
9+
- setup_remote_docker
10+
- run:
11+
name: Install dependencies
12+
command: |
13+
apk add --no-cache \
14+
py-pip=9.0.0-r1
15+
pip install \
16+
docker-compose==1.15.0
17+
- run:
18+
name: Run tests
19+
command: |
20+
docker-compose up -d
21+
docker-compose run dockerapp python test.py

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ FROM python:3.5
22
RUN pip install Flask==0.11.1 redis==2.10.5
33
RUN useradd -ms /bin/bash admin
44
USER admin
5+
COPY app /app
56
WORKDIR /app
67
CMD ["python", "app.py"]

docker-compose.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
version: '2'
1+
version: "3.0"
22
services:
33
dockerapp:
44
build: .
55
ports:
66
- "5000:5000"
7-
volumes:
8-
- ./app:/app
9-
7+
depends_on:
8+
- redis
109
redis:
1110
image: redis:3.2.0

0 commit comments

Comments
 (0)