Skip to content

Commit 5609fd2

Browse files
committed
feat(docker): implemented docker file for installing and verifying sdk
1 parent 563200b commit 5609fd2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docker/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#Import python runtime with desired python version
2+
FROM python:3-slim
3+
4+
#Install Git
5+
RUN apt-get update && \
6+
apt-get install -y git
7+
8+
#Clone SDK repo to app directory
9+
RUN git clone https://github.com/watson-developer-cloud/python-sdk.git
10+
11+
#Set working directory to python-sdk
12+
WORKDIR /python-sdk
13+
14+
#Pip install dependencies for SDK
15+
RUN pip install --editable .
16+
RUN pip install -r requirements-dev.txt
17+
18+
#Run tests to validate installation
19+
CMD [ "py.test" , "test" ]
20+
21+

0 commit comments

Comments
 (0)