Skip to content
This repository was archived by the owner on Oct 22, 2019. It is now read-only.

Commit 8219a60

Browse files
authored
Merge pull request #135 from robbrockbank/multiple-build-versions
Update build to use jessie and add separate wheezy build container
2 parents f83d175 + 5b4793a commit 8219a60

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
FROM python:2.7.9-wheezy
14+
FROM python:2.7.12
1515
MAINTAINER Tom Denham <tom@projectcalico.org>
1616

1717
WORKDIR /code/

Dockerfile.build_wheezy

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (c) 2015 Tigera, Inc. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# The wheezy build container is used to build calicoctl with older versions
16+
# of glibc (2.13).
17+
FROM python:2.7.12-wheezy
18+
MAINTAINER Tom Denham <tom@projectcalico.org>
19+
20+
WORKDIR /code/
21+
22+
RUN apt-get update && \
23+
apt-get install -qy python-dev python-pip git libffi-dev libssl-dev procps
24+
25+
# Install the python packages needed for building binaries for Calico Python components.
26+
# Git is installed to allow pip installation from a Github repository.
27+
RUN pip install --upgrade pip
28+
ADD build-requirements-frozen.txt /code/
29+
RUN pip install -r build-requirements-frozen.txt
30+
ADD . /tmp/pycalico
31+
RUN pip install /tmp/pycalico

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ update-frozen:
2121
docker run --rm calico/build pip freeze | grep -v pycalico > build-requirements-frozen.txt
2222

2323
calicobuild.created: $(BUILD_FILES) $(PYCALICO)
24-
docker build -t calico/build .
24+
docker build -t calico/build:latest .
25+
docker build -f Dockerfile.build_wheezy -t calico/build:latest-wheezy .
2526
touch calicobuild.created
2627

2728
dist/pycalico-$(WHEEL_VERSION)-py2-none-any.whl: $(PYCALICO)

0 commit comments

Comments
 (0)