Skip to content

Commit d84f51b

Browse files
committed
Added build step for lambda deps
1 parent 1c87ea4 commit d84f51b

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

circle.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ deployment:
3232
- echo "username:$PYPI_USERNAME" >> ~/.pypirc
3333
- echo "password:$PYPI_PASSWORD" >> ~/.pypirc
3434
- python setup.py sdist upload
35-
- cd lambda && docker build .
35+
- export CANARI_VERSION=`python setup.py -V`
36+
- cd lambda && docker build --build-arg GITHUB_API_TOKEN=$GITHUB_API_TOKEN --build-arg CANARI_VERSION=$CANARI_VERSION .

lambda/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
FROM amazonlinux:2017.03.1.20170812
22

3+
ARG GITHUB_API_TOKEN
4+
ARG CANARI_VERSION
5+
36
COPY build_wheels.sh /tmp
47

58
COPY upload-github-release-asset.sh /tmp
69

7-
RUN sudo yum install -y gcc libxml2-devel libxslt-devel
10+
RUN set && yum install -y gcc libxml2-devel libxslt-devel python36 python27-pip
11+
12+
RUN pip-3.6 install wheel && pip-2.7 install wheel
813

9-
RUN ./build_wheels canari lxml safedexml six future setuptools
14+
RUN chmod +x /tmp/build_wheels.sh && /tmp/build_wheels.sh canari==${CANARI_VERSION} lxml safedexml six future setuptools

0 commit comments

Comments
 (0)