-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZBIO-120:Image and yaml for consumer
- Loading branch information
VIVEK KB
committed
Mar 10, 2020
1 parent
b3551ff
commit cc32ec4
Showing
7 changed files
with
73 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
set -x | ||
echo "Calling Sample consumer" | ||
|
||
echo $PWD | ||
ls -l /zbsample/zbsample_consumer | ||
|
||
export SERVER_CRT=/zbsample/server.crt | ||
#touch i_am_here.txt | ||
PROG=$(ls -lart . | grep zbsample | awk '{print $NF}') | ||
ldd $PROG | ||
./$PROG | ||
|
||
echo "Done" |
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,21 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDbjCCAlYCCQDi7l8EzZo2hDANBgkqhkiG9w0BAQsFADB5MQswCQYDVQQGEwJV | ||
UzELMAkGA1UECAwCQ0ExETAPBgNVBAcMCFNhbiBKb3NlMQ4wDAYDVQQKDAVaYi5p | ||
bzENMAsGA1UECwwEWmJpbzEOMAwGA1UEAwwFemIuaW8xGzAZBgkqhkiG9w0BCQEW | ||
DHN1ZGhpckB6Yi5pbzAeFw0yMDAxMTQxMjM2MTVaFw0zMDAxMTExMjM2MTVaMHkx | ||
CzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTERMA8GA1UEBwwIU2FuIEpvc2UxDjAM | ||
BgNVBAoMBVpiLmlvMQ0wCwYDVQQLDARaYmlvMQ4wDAYDVQQDDAV6Yi5pbzEbMBkG | ||
CSqGSIb3DQEJARYMc3VkaGlyQHpiLmlvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A | ||
MIIBCgKCAQEAyCRRY0H09sSGFckgOrlZCABVWYiIz9XM0PLP7lL+ip+mF2KLc438 | ||
a4S/y7dsPUswIoUyfWXojNJ/VhmiynyuMVHDgeDYuX+rPXoeIXC07xd9VDZ0iG6x | ||
lxhWMfowvkfuhTH48gYjlMy7mQhcCtsCcSMSYCx3pCYQtB7xNnlJ3cchhZAtqQhM | ||
SBIKsQcVuF7yWghWXKitu5cO3dFKPphfFXN2vAaE1UqexIYVmByeSXdScjzU91PO | ||
F/S1uVKg7dWIaP+lPmyXUh9uo7msZgS8JnTy8MDm47ksUwnSufUCbzId7x1sIz4x | ||
hgzExPbZQkcttAKuuG1NAzfbf6sj5szozwIDAQABMA0GCSqGSIb3DQEBCwUAA4IB | ||
AQAD48UpBOg7mzmIw7X11us7pGdu6gAKFk8R/vTfp3YyX8zCYL5T/RaGpH+buJfI | ||
DiJi4RkXRSoslD1hQGK/GVfVgTtOIxJT2xd0ddIt2lcfxaPR83LpACuxAWtzWWis | ||
LEft+yBggoaeakxvfbud8gvpP8Dme76CEU+sEoCI8tmDLHljK6zJTwqyd+jqC1T/ | ||
M0gOlbmkx3621toKzhUdj/n9jf+2f5AaGEEXaGCpC520R82/xd81hsMEdzLaRUwv | ||
SbM5SL8bcgSxOow0ijUB9zPNaXt7CWcSEfvqkcLmB+o8+cJYi0+ZITAgELRbi5Z9 | ||
AWa8bDiglEZ9wPIRDe6MDWx3 | ||
-----END CERTIFICATE----- |
Binary file not shown.
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,13 @@ | ||
kind: Pod | ||
apiVersion: v1 | ||
metadata: | ||
name: zbio-example-consumer | ||
labels: | ||
app: zbio-example-consumer | ||
spec: | ||
containers: | ||
- name: zbio-example-consumer | ||
image: zbio-example/consumer:v1 | ||
imagePullPolicy: Never | ||
restartPolicy: OnFailure | ||
terminationGracePeriodSeconds: 0 |
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 golang:alpine | ||
MAINTAINER VIVEK K B <kbvivek@zb.io> | ||
LABEL Description="This image is used to start consumer " Vendor="Zettabytes" Version="1.0" | ||
|
||
# ADD consumer binary location | ||
ADD bin /consumer | ||
WORKDIR /consumer | ||
|
||
ENV SERVER_CRT="/consumer/server.crt" | ||
|
||
ENTRYPOINT ./consumer.sh | ||
CMD [default] | ||
|
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,12 @@ | ||
all: | ||
export GOPRIVATE="github.com/ZB-io/*" | ||
GOOS=linux GOARCH=amd64 go build -o bin/zbsample_consumer | ||
cp ../../security/cert/server.crt bin/ | ||
ifdef NODOCKER | ||
echo "DO NOT BUILD IMAGE" | ||
else | ||
docker build -f docker/Dockerfile -t zbio-example/consumer:v1 . | ||
endif | ||
|
||
clean: | ||
rm -f bin/zbsample_consumer |