From 065cad1580709a51242c9501614be0abe79a4dd5 Mon Sep 17 00:00:00 2001 From: Adriano Santos Date: Mon, 25 May 2020 13:02:13 -0300 Subject: [PATCH 1/2] Build shoppingcart image --- shoppingcart/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shoppingcart/Dockerfile b/shoppingcart/Dockerfile index f10f773..3696e01 100644 --- a/shoppingcart/Dockerfile +++ b/shoppingcart/Dockerfile @@ -1,10 +1,10 @@ FROM python:3.8.0-slim COPY . /app -RUN apt-get update \ - && apt-get install gcc -y \ - && apt-get clean +WORKDIR /app +RUN pip install --user -r requirements.txt && \ + pip install wheel && \ + python setup.py bdist_wheel && \ + pip install dist/cloudstate-0.5.0-py3-none-any.whl -WORKDIR app -RUN pip install --user -r requirements.txt ENTRYPOINT python shopping_cart.py \ No newline at end of file From 4ec4adfd13e949d3b7a09be7a37893dd1cc457d1 Mon Sep 17 00:00:00 2001 From: Adriano Santos Date: Thu, 28 May 2020 23:38:41 -0300 Subject: [PATCH 2/2] Add deploy section to travis ci --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e7b74d8..67ffb9e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,11 @@ python: - "3.8" install: - pip install -r requirements.txt -script: pytest \ No newline at end of file +script: pytest +deploy: + provider: pypi + username: "__token__" + password: + secure: "wHyj8a0t6Ub4BmJYSwDQO5wJphX3Wz55bDAlWrb4KaJGD4XzjFs5VWDqgZRAJ6JSM8WF9xQqVPxniXRpyBO41VDNGkyT5ytf0yohnw6kud/xwm8+y5BbJ1ZxmGmpxoJumc1R/tJNABlabLEvSr10OtuMnR7kW5d4WCBR/baugr8sCEXnNLDdxNOnCZhC36cm+yWRIi8ih8eUhkbJRLb/KQO1PDrHEf7V35PwLktSkhWkjr0mtSvbthPPn6hmH2PV+OnMD102oYbDO2eGWr8nhHAPcfXaDQgdBy9WQ20SgZqNmZc6LIwNV6MWdCV/BSk4sLithT/r5aZcL99fzxy+PFmJdbxJibPEqJyf8DVSQa9Pa2ndjNXnHJuqeEh4Xdcp90z1aRGEr988P/llFFnq8pDXCapAvdGeALh3IdANhTYJcQtZfcJ0D/aAnq0le8X5i4X39aPazbR4VPXDoDiFCPqxy5MJ2Y3skqX9dyXsKuqUMlfpfUsEnhW5RbnSCA53BYw9FoykLA9tvFtjnxywwHo1iFfDdhXU0z7L/bE5dlafct1WST6cnDHaqew8ew03OE3Z2DTBiV/aNDON2JvqgnqT4JW3T3xDUYR7pKbzEnVGq8oGS9nmxLU4ciXad7dRtrwb92Wv2Jbs4wkeLFCmoDhshtT7KEDANTxBS4tAk50=" + on: + tags: true \ No newline at end of file