Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Dockerfiles for ci #223

Merged
merged 1 commit into from
Sep 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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