-
Notifications
You must be signed in to change notification settings - Fork 16
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
cstrans-df-run: introduce the --shell-form option #217
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0d111d3
CI: use the latest Python release on macOS
lzaoral 4e74860
cstrans-df-run: introduce readListFromValMap() helper
kdudka 5e89e70
cstrans-df-run: introduce TransformerProps struct
kdudka 4829d0a
cstrans-df-run: make runCmdFromExecList() a member function
kdudka 0e38ed7
cstrans-df-run: introduce the --shell-form option
kdudka b87e7a4
tests/cstrans-df-run: fix typo in CMake macro name
kdudka b05206d
tests/cstrans-df-run: cover the --shell-form option
kdudka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM openshift/golang-builder:1.11 AS builder | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
|
||
ARG ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager | ||
ARG BUILD_PROMU=false | ||
COPY . ${ALERTMANAGER_GOPATH} | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' 'cd ${ALERTMANAGER_GOPATH} && yum install -y prometheus-promu && make build && yum clean all' | ||
|
||
FROM ubi7:7.6-159 | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
|
||
ARG ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager | ||
COPY --from=builder ${ALERTMANAGER_GOPATH}/amtool /bin/amtool | ||
COPY --from=builder ${ALERTMANAGER_GOPATH}/alertmanager /bin/alertmanager | ||
COPY --from=builder ${ALERTMANAGER_GOPATH}/examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml | ||
|
||
EXPOSE 9093 | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' 'mkdir -p /alertmanager' | ||
VOLUME [ "/alertmanager" ] | ||
WORKDIR /etc/alertmanager | ||
ENTRYPOINT [ "/bin/alertmanager" ] | ||
CMD [ "--storage.path=/alertmanager" ] | ||
|
||
LABEL \ | ||
io.k8s.description="This is the Prometheus Alert Manager image." \ | ||
com.redhat.component="golang-github-prometheus-alertmanager-container" \ | ||
maintainer="OpenShift Development <[email protected]>" \ | ||
name="openshift/ose-prometheus-alertmanager" \ | ||
License="ASL 2.0" \ | ||
io.k8s.display-name="Prometheus Alert Manager" \ | ||
io.openshift.build.source-location="https://github.com/openshift/prometheus-alertmanager" \ | ||
io.openshift.build.commit.url="https://github.com/openshift/prometheus-alertmanager/commit/39c2c111ea818cd16dbd11e31cc682cf2b4042d3" \ | ||
version="v4.1.0" \ | ||
io.openshift.build.commit.id="39c2c111ea818cd16dbd11e31cc682cf2b4042d3" \ | ||
release="201905191700" \ | ||
vendor="Red Hat" \ | ||
io.openshift.tags="openshift,prometheus" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM openshift/golang-builder:1.11 AS builder | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
COPY . ${ALERTMANAGER_GOPATH} | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' 'cd ${ALERTMANAGER_GOPATH} && yum install -y prometheus-promu && make build && yum clean all' | ||
FROM ubi7:7.6-159 | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
|
||
CMD [ "--storage.path=/alertmanager" ] | ||
|
||
LABEL \ | ||
io.k8s.description="This is the Prometheus Alert Manager image." \ | ||
com.redhat.component="golang-github-prometheus-alertmanager-container" \ | ||
maintainer="OpenShift Development <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM openshift/golang-builder:1.11 AS builder | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
COPY . ${ALERTMANAGER_GOPATH} | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'make' | ||
FROM ubi7:7.6-159 | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
|
||
CMD [ "--storage.path=/alertmanager" ] | ||
|
||
LABEL \ | ||
io.k8s.description="This is the Prometheus Alert Manager image." \ | ||
com.redhat.component="golang-github-prometheus-alertmanager-container" \ | ||
maintainer="OpenShift Development <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM openshift/golang-builder:1.11 AS builder | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
COPY . ${ALERTMANAGER_GOPATH} | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'go' 'build' '--verbose' | ||
FROM ubi7:7.6-159 | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
|
||
CMD [ "--storage.path=/alertmanager" ] | ||
|
||
LABEL \ | ||
io.k8s.description="This is the Prometheus Alert Manager image." \ | ||
com.redhat.component="golang-github-prometheus-alertmanager-container" \ | ||
maintainer="OpenShift Development <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM openshift/golang-builder:1.11 AS builder | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
COPY . ${ALERTMANAGER_GOPATH} | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' $'echo \"OK\"' | ||
FROM ubi7:7.6-159 | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
|
||
CMD [ "--storage.path=/alertmanager" ] | ||
|
||
LABEL \ | ||
io.k8s.description="This is the Prometheus Alert Manager image." \ | ||
com.redhat.component="golang-github-prometheus-alertmanager-container" \ | ||
maintainer="OpenShift Development <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM openshift/golang-builder:1.11 AS builder | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
COPY . ${ALERTMANAGER_GOPATH} | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' $'echo \"OK\"' | ||
FROM ubi7:7.6-159 | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
|
||
CMD [ "--storage.path=/alertmanager" ] | ||
|
||
LABEL \ | ||
io.k8s.description="This is the Prometheus Alert Manager image." \ | ||
com.redhat.component="golang-github-prometheus-alertmanager-container" \ | ||
maintainer="OpenShift Development <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# | ||
# This is the OpenShift ovn overlay network image. | ||
# it provides an overlay network using ovs/ovn/ovn-kube | ||
# | ||
# The standard name for this image is ovn-kube | ||
|
||
# Notes: | ||
# This is for a build where the ovn-kubernetes utilities | ||
# are built in this Dockerfile and included in the image (instead of the rpm) | ||
# | ||
|
||
FROM openshift/golang-builder:1.10 AS builder | ||
ENV SOURCE_GIT_COMMIT=674977b1fdf0f966970179b9fae338f8347b2dfe SOURCE_GIT_TAG=674977b | ||
|
||
WORKDIR /go-controller | ||
COPY go-controller/ . | ||
|
||
# build the binaries | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' 'make' | ||
|
||
FROM openshift/ose-cli:v4.1.0-201905191700 AS cli | ||
ENV SOURCE_GIT_COMMIT=674977b1fdf0f966970179b9fae338f8347b2dfe SOURCE_GIT_TAG=674977b | ||
|
||
FROM openshift/ose-base:v4.1.0-201905191700 | ||
ENV SOURCE_GIT_COMMIT=674977b1fdf0f966970179b9fae338f8347b2dfe SOURCE_GIT_TAG=674977b | ||
|
||
USER root | ||
|
||
ENV PYTHONDONTWRITEBYTECODE yes | ||
|
||
# install needed rpms - openvswitch must be 2.9.2 or higher | ||
# install selinux-policy first to avoid a race | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' $'yum install -y \tselinux-policy && \tyum clean all' | ||
|
||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' $'yum install -y \tPyYAML bind-utils \topenssl \tnumactl-libs \tfirewalld-filesystem \tlibpcap \thostname \t\"openvswitch2.11\" \t\"openvswitch2.11-ovn-common\" \t\"openvswitch2.11-ovn-central\" \t\"openvswitch2.11-ovn-host\" \t\"openvswitch2.11-ovn-vtep\" \t\"openvswitch2.11-devel\" \tcontainernetworking-plugins \tiproute strace socat && \tyum clean all' | ||
|
||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' 'rm -rf /var/cache/yum' | ||
|
||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' 'mkdir -p /var/run/openvswitch && mkdir -p /etc/cni/net.d && mkdir -p /opt/cni/bin && mkdir -p /usr/libexec/cni/' | ||
|
||
COPY --from=builder /go-controller/_output/go/bin/ovnkube /usr/bin/ | ||
COPY --from=builder /go-controller/_output/go/bin/ovn-kube-util /usr/bin/ | ||
COPY --from=builder /go-controller/_output/go/bin/ovn-k8s-cni-overlay /usr/libexec/cni/ovn-k8s-cni-overlay | ||
|
||
COPY --from=cli /usr/bin/oc /usr/bin | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' 'ln -s /usr/bin/oc /usr/bin/kubectl' | ||
|
||
# copy git commit number into image | ||
COPY .git/HEAD /root/.git/HEAD | ||
COPY .git/refs/heads/ /root/.git/refs/heads/ | ||
|
||
# ovnkube.sh is the entry point. This script examines environment | ||
# variables to direct operation and configure ovn | ||
COPY dist/images/ovnkube.sh /root/ | ||
COPY dist/images/ovn-debug.sh /root/ | ||
# override the rpm's ovn_k8s.conf with this local copy | ||
COPY dist/images/ovn_k8s.conf /etc/openvswitch/ovn_k8s.conf | ||
|
||
|
||
|
||
WORKDIR /root | ||
ENTRYPOINT /root/ovnkube.sh | ||
|
||
LABEL \ | ||
io.k8s.description="This is a component of OpenShift Container Platform that provides an overlay network using ovn." \ | ||
com.redhat.component="ose-ovn-kubernetes-container" \ | ||
maintainer="Phil Cameron <[email protected]>" \ | ||
name="openshift/ose-ovn-kubernetes" \ | ||
License="GPLv2+" \ | ||
io.k8s.display-name="ovn kubernetes" \ | ||
io.openshift.build.source-location="https://github.com/openshift/ovn-kubernetes" \ | ||
summary="This is a component of OpenShift Container Platform that provides an overlay network using ovn." \ | ||
io.openshift.build.commit.url="https://github.com/openshift/ovn-kubernetes/commit/674977b1fdf0f966970179b9fae338f8347b2dfe" \ | ||
version="v4.1.0" \ | ||
io.openshift.build.commit.id="674977b1fdf0f966970179b9fae338f8347b2dfe" \ | ||
release="201905231545" \ | ||
vendor="Red Hat" \ | ||
io.openshift.tags="openshift" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM openshift/golang-builder:1.11 AS builder | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
COPY . ${ALERTMANAGER_GOPATH} | ||
RUN '/opt/cov-sa-2019.09/bin/cov-build' '--dir=/cov' '--append-log' 'sh' '-c' $'echo \tOK\n' | ||
FROM ubi7:7.6-159 | ||
ENV SOURCE_GIT_COMMIT=39c2c111ea818cd16dbd11e31cc682cf2b4042d3 SOURCE_GIT_TAG=golang-github-prometheus-alertmanager-4.0.0-0.100.0-115-g39c2c11 | ||
|
||
CMD [ "--storage.path=/alertmanager" ] | ||
|
||
LABEL \ | ||
io.k8s.description="This is the Prometheus Alert Manager image." \ | ||
com.redhat.component="golang-github-prometheus-alertmanager-container" \ | ||
maintainer="OpenShift Development <[email protected]>" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wild! 🔥 🔥 🔥 😮