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

Build container images with race flag enabled #1300

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion docker/Dockerfile-controller
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG basetag=latest
ARG baserepo=quay.io/noirolabs
FROM ${baserepo}/aci-containers-controller-base:${basetag}
ARG binarypath=dist-static
# Required OpenShift Labels
LABEL name="ACI CNI Containers Controller" \
vendor="Cisco" \
Expand All @@ -11,7 +12,7 @@ description="This will deploy a single instance of ACI CNI Containers Controller
# Required Licenses
COPY docker/licenses /licenses
COPY pkg/istiocrd/upstream-istio-cr.yaml /usr/local/var/lib/aci-cni/upstream-istio-ctrlplane-resource.yaml
COPY dist-static/aci-containers-controller /usr/local/bin/
COPY ${binarypath}/aci-containers-controller /usr/local/bin/
ENV AWS_SUBNETS="None"
ENV AWS_VPCID="None"
ENTRYPOINT exec /usr/local/bin/aci-containers-controller -config-path /usr/local/etc/aci-containers/controller.conf -aws-subnets $AWS_SUBNETS -vpc-id $AWS_VPCID
3 changes: 2 additions & 1 deletion docker/Dockerfile-host
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG basetag=latest
ARG baserepo=quay.io/noirolabs
FROM ${baserepo}/aci-containers-host-base:${basetag}
ARG binarypath=dist-static
# Required OpenShift Labels
LABEL name="ACI CNI Host-Agent" \
vendor="Cisco" \
Expand All @@ -10,7 +11,7 @@ summary="This is an ACI CNI Host-Agent." \
description="This will deploy a single instance of ACI CNI Host-Agent."
# Required Licenses
COPY docker/licenses /licenses
COPY dist-static/aci-containers-host-agent dist-static/opflex-agent-cni dist-static/netop-cni docker/launch-hostagent.sh docker/enable-hostacc.sh docker/enable-droplog.sh /usr/local/bin/
COPY ${binarypath}/aci-containers-host-agent dist-static/opflex-agent-cni dist-static/netop-cni docker/launch-hostagent.sh docker/enable-hostacc.sh docker/enable-droplog.sh /usr/local/bin/
COPY docker/launch-lsyncd.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/launch-lsyncd.sh
RUN echo "send dhcp-client-identifier = hardware;" > /usr/local/etc/dhclient.conf
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile-operator
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG basetag=latest
ARG baserepo=quay.io/noirolabs
FROM ${baserepo}/aci-containers-operator-base:${basetag}
ARG binarypath=dist-static
# Required OpenShift Labels
LABEL name="ACI CNI Operator" \
vendor="Cisco" \
Expand All @@ -10,5 +11,5 @@ summary="This is an ACI CNI Operator." \
description="This operator will deploy a single instance of ACI CNI Operator."
# Required Licenses
COPY docker/licenses /licenses
COPY dist-static/aci-containers-operator /usr/local/bin/
COPY ${binarypath}/aci-containers-operator /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/aci-containers-operator"]
3 changes: 2 additions & 1 deletion docker/travis/Dockerfile-controller
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM registry.access.redhat.com/ubi9/ubi:latest
ARG binarypath=dist-static
# Required OpenShift Labels
LABEL name="ACI CNI Containers Controller" \
vendor="Cisco" \
Expand All @@ -16,7 +17,7 @@ RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s
&& chmod u+x istio-1.18.2/bin/istioctl && mv istio-1.18.2/bin/istioctl /usr/local/bin/istioctl \
&& mkdir -p /usr/local/var/lib/aci-cni
COPY pkg/istiocrd/upstream-istio-cr.yaml /usr/local/var/lib/aci-cni/upstream-istio-ctrlplane-resource.yaml
COPY dist-static/aci-containers-controller /usr/local/bin/
COPY ${binarypath}/aci-containers-controller /usr/local/bin/
ENV AWS_SUBNETS="None"
ENV AWS_VPCID="None"
ENTRYPOINT exec /usr/local/bin/aci-containers-controller -config-path /usr/local/etc/aci-containers/controller.conf -aws-subnets $AWS_SUBNETS -vpc-id $AWS_VPCID
3 changes: 2 additions & 1 deletion docker/travis/Dockerfile-host
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ RUN mv /usr/local/bin/aci-containers-host-agent-ovscni /usr/local/bin/aci-contai
CMD ["/usr/local/bin/launch-hostagent.sh"]

FROM base as without-ovscni
COPY dist-static/aci-containers-host-agent dist-static/opflex-agent-cni dist-static/netop-cni docker/launch-hostagent.sh docker/enable-hostacc.sh docker/enable-droplog.sh /usr/local/bin/
ARG binarypath=dist-static
COPY ${binarypath}/aci-containers-host-agent dist-static/opflex-agent-cni dist-static/netop-cni docker/launch-hostagent.sh docker/enable-hostacc.sh docker/enable-droplog.sh /usr/local/bin/
CMD ["/usr/local/bin/launch-hostagent.sh"]
3 changes: 2 additions & 1 deletion docker/travis/Dockerfile-operator
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM registry.access.redhat.com/ubi9/ubi:latest
ARG binarypath=dist-static
# Required OpenShift Labels
LABEL name="ACI CNI Operator" \
vendor="Cisco" \
Expand All @@ -12,5 +13,5 @@ RUN yum install --disablerepo=* --enablerepo=ubi-9-appstream-rpms --enablerepo=u
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.21.3/bin/linux/amd64/kubectl \
&& chmod u+x kubectl && mv kubectl /usr/local/bin/kubectl
COPY docker/licenses /licenses
COPY dist-static/aci-containers-operator /usr/local/bin/
COPY ${binarypath}/aci-containers-operator /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/aci-containers-operator"]