Expunge sensitive hostnames and IPs
[logging-analytics.git] / reference / logging-docker-root / logging-docker-demo / build.sh
1 #!/bin/bash
2 #############################################################################
3 #
4 # Copyright © 2018 Amdocs.
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #        http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 #############################################################################
18 # v20180625
19 # https://wiki.onap.org/display/DW/Cloud+Native+Deployment
20 # source from https://jira.onap.org/browse/LOG-135
21 # Michael O'Brien
22
23
24 mkdir target
25 cp ../../logging-demo/target/*.war target
26 docker build -t oomk8s/logging-demo-nbi -f DockerFile .
27 docker images | grep logging-demo-nbi
28 docker tag oomk8s/logging-demo-nbi oomk8s/logging-demo-nbi:0.0.3
29 docker login
30 docker push oomk8s/logging-demo-nbi:0.0.3
31 #docker run -d -it --rm -p 8888:8080 oomk8s/logging-demo-nbi:latest