Image 1.4: Update with ONIE build dependencies.

This commit is contained in:
Jeffrey Townsend
2016-07-21 09:39:39 -07:00
parent e67083e5b1
commit 06d5f3c1a4
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
############################################################
#
# Update with ONIE build dependencies.
#
############################################################
FROM opennetworklinux/builder8:1.3
MAINTAINER Jeffrey Townsend <jeffrey.townsend@bigswitch.com>
RUN apt-get update && apt-get install -y \
stgit \
gperf \
gawk \
automake \
libexpat1-dev \
libtool-bin \
xorriso
#
# Docker shell and other container tools.
#
COPY docker_shell /bin/docker_shell
COPY container-id /bin/container-id

View File

@@ -0,0 +1,19 @@
VERSION=1.4
USER=opennetworklinux
REPO=builder8
TOOLS=../../../tools/docker_shell ../../../tools/container-id
build: check_version
cp $(TOOLS) .
docker build -t $(USER)/$(REPO):$(VERSION) .
rm -rf $(notdir $(TOOLS))
#
# Todo: Query remote repository to see if the request version already exists to avoid accidental overwrites
# when a new image is built but the VERSION variable is not updated.
#
check_version:
push:
docker push $(USER)/$(REPO):$(VERSION)