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

Fixed Secret type value #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
29 changes: 24 additions & 5 deletions secret-sync-operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
FROM golang
ENV RELEASE_VERSION v0.8.0
ENV GOPATH /go
ADD . /go/src/github.com/ibm/secret-sync-operator

# Allow setting up proxies:
ARG http_proxy
ARG no_proxy
# maybe you have a (caching) proxy set for GO as well:
ARG GOPROXY


RUN apt update \
&& apt install -y curl
RUN curl -OJL https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu \
&& chmod +x operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu && cp operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu /usr/local/bin/operator-sdk && rm operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu

# the following download is big, so let caching proxies do their best
RUN \
set -e \
; proto=https \
; test -n "$http_proxy" && proto=http \
; curl -OJL $proto://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu \
; chmod +x operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu \
; cp operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu /usr/local/bin/operator-sdk \
; rm operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu

RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

ADD . /go/src/github.com/ibm/secret-sync-operator


WORKDIR /go/src/github.com/ibm/secret-sync-operator
RUN PATH=$GOPATH/bin:$PATH dep ensure
RUN PATH=$GOPATH/bin:$PATH go build -o build/_output/bin/secret-sync-operator cmd/manager/main.go

RUN PATH=$GOPATH/bin:$PATH go build -o build/_output/bin/secret-sync-operator cmd/manager/main.go


FROM registry.access.redhat.com/ubi7-dev-preview/ubi-minimal:7.6
Expand Down
Loading