From 7d37e678ff3abc2d886012206ea282a70a5f9921 Mon Sep 17 00:00:00 2001 From: krishna Date: Thu, 22 Aug 2019 18:43:57 +0530 Subject: [PATCH] Change base image to reduce container footprint Change-Id: I77e2f2a195836cd33be7c323ff268326a9874e65 Issue-ID: DCAEGEN2-1572 Signed-off-by: krishna --- entrypoint.sh | 24 ------------------------ pom.xml | 10 ++-------- 2 files changed, 2 insertions(+), 32 deletions(-) delete mode 100755 entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index 5c4541f..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -#******************************************************************************* -# ============LICENSE_START======================================================= -# son-handler -# ================================================================================ -# Copyright (C) 2019 Wipro Limited. -# ============================================================================== -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -# -#******************************************************************************* - -java -jar /bin/application.jar - diff --git a/pom.xml b/pom.xml index ef1c771..05e5503 100644 --- a/pom.xml +++ b/pom.xml @@ -246,7 +246,7 @@ ${project.version} latest - java:openjdk-8 + openjdk:8-alpine sonhms @@ -254,23 +254,17 @@ ${project.build.directory} ${project.artifactId}-${project.version}.jar - - /bin - ${project.basedir} - entrypoint.sh - adduser --disabled-password sonhms - chmod +x /bin/entrypoint.sh mv /bin/*.jar /bin/application.jar chmod -R 777 /bin 8080 - /bin/entrypoint.sh + java -jar /bin/application.jar