Skip to content

Commit 5e94276

Browse files
committed
add Dockerfiles for ci
1 parent 178f930 commit 5e94276

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This Dockerfile is used to create the image quay.io/coreos/origin-release:bazel used in CI
2+
# to build smoke tests.
3+
# EX: docker build --rm -t this-image:latest .
4+
5+
FROM docker.io/openshift/origin-release:golang-1.10
6+
7+
RUN wget -P /etc/yum.repos.d https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo
8+
9+
RUN yum install -y bazel gcc-c++ libtool && \
10+
yum clean all
11+
12+
WORKDIR /go/src/github.com/openshift/origin
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This Dockerfile is used as a CI job to build smoke tests for OpenShift installer
2+
# FIXME: Move this image to an openshift repo?
3+
4+
FROM quay.io/coreos/origin-release-oc:bazel
5+
WORKDIR /go/src/github.com/openshift/installer
6+
COPY . .
7+
8+
ENV USER="bazel"
9+
ENV HOME="/tmp"
10+
11+
RUN bazel --output_base=/tmp build smoke_tests && \
12+
cp bazel-bin/tests/smoke/linux_amd64_stripped/go_default_test /usr/bin/smoke && \
13+
bazel clean

0 commit comments

Comments
 (0)