Skip to content

Commit

Permalink
add Dockerfiles for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sallyom committed Sep 8, 2018
1 parent 178f930 commit 5e94276
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions images/installer-origin-release/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This Dockerfile is used to create the image quay.io/coreos/origin-release:bazel used in CI
# to build smoke tests.
# EX: docker build --rm -t this-image:latest .

FROM docker.io/openshift/origin-release:golang-1.10

RUN wget -P /etc/yum.repos.d https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo

RUN yum install -y bazel gcc-c++ libtool && \
yum clean all

WORKDIR /go/src/github.com/openshift/origin
13 changes: 13 additions & 0 deletions images/installer-origin-release/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This Dockerfile is used as a CI job to build smoke tests for OpenShift installer
# FIXME: Move this image to an openshift repo?

FROM quay.io/coreos/origin-release-oc:bazel
WORKDIR /go/src/github.com/openshift/installer
COPY . .

ENV USER="bazel"
ENV HOME="/tmp"

RUN bazel --output_base=/tmp build smoke_tests && \
cp bazel-bin/tests/smoke/linux_amd64_stripped/go_default_test /usr/bin/smoke && \
bazel clean

0 comments on commit 5e94276

Please sign in to comment.