Skip to content

Commit

Permalink
Merge pull request #1114 from tomdee/calico/felix-fixes
Browse files Browse the repository at this point in the history
Calico/felix image fixes
  • Loading branch information
tomdee committed Sep 28, 2016
2 parents 82cf203 + 7e7321f commit b582d1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ FROM alpine:3.4
MAINTAINER Tom Denham <tom@projectcalico.org>

# Download and install glibc in one layer
RUN apk --no-cache add wget ca-certificates && \
RUN apk --no-cache add wget ca-certificates libgcc && \
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-2.23-r3.apk && \
apk add glibc-2.23-r3.apk && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-bin-2.23-r3.apk && \
apk add glibc-2.23-r3.apk glibc-bin-2.23-r3.apk && \
/usr/glibc-compat/sbin/ldconfig /lib /usr/glibc/usr/lib && \
apk del wget ca-certificates && \
rm -f glibc-2.23-r3.apk
rm -f glibc-2.23-r3.apk glibc-bin-2.23-r3.apk

RUN apk --no-cache add ip6tables ipset iputils iproute2 conntrack-tools

Expand Down
7 changes: 2 additions & 5 deletions docker_build_and_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

docker build -t calico/felix -f Dockerfile \
--build-arg VCS_URL=`git config --get remote.origin.url` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` .
docker run --privileged --net=host -ti --rm calico/felix calico-felix
docker build -t calico/felix .
docker run --privileged --net=host -ti --rm calico/felix

0 comments on commit b582d1a

Please sign in to comment.