summaryrefslogtreecommitdiffstats
path: root/packages/policy-api-tarball/src/main/package
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2022-06-29 13:51:39 +0100
committerdanielhanrahan <daniel.hanrahan@est.tech>2022-07-13 11:35:32 +0100
commita5dd0e0e1dc12c693b338ca94212b2bf5f32c53b (patch)
tree0576cf4fb5b8480b277185685f08916982ff7434 /packages/policy-api-tarball/src/main/package
parentfdd186004f61cd22688116515a27a2efd4550072 (diff)
Reduce size of docker images for API
Remove unused jar files from image (not needed since spring boot) Avoid creating extra layers when extracting tarball Reduce size of Alpine image by 73% (956MB to 259MB) Reduce size of OpenSuse image by 62% (1.12GB to 423MB) Issue-ID: POLICY-4265 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I321cd42ade294a8af40c64612037d3ca1cf58341
Diffstat (limited to 'packages/policy-api-tarball/src/main/package')
-rw-r--r--packages/policy-api-tarball/src/main/package/tarball/assembly.xml14
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/policy-api-tarball/src/main/package/tarball/assembly.xml b/packages/policy-api-tarball/src/main/package/tarball/assembly.xml
index 777ea85c..29ed3433 100644
--- a/packages/policy-api-tarball/src/main/package/tarball/assembly.xml
+++ b/packages/policy-api-tarball/src/main/package/tarball/assembly.xml
@@ -2,6 +2,7 @@
============LICENSE_START=======================================================
Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
Modifications Copyright (C) 2022 Bell Canada. All rights reserved.
+ Modifications Copyright (C) 2022 Nordix Foundation.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -25,17 +26,6 @@
<format>tar.gz</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
- <dependencySets>
- <dependencySet>
- <useProjectArtifact>true</useProjectArtifact>
- <outputDirectory>${file.separator}lib</outputDirectory>
- <unpack>false</unpack>
- <scope>runtime</scope>
- <includes>
- <include>*:jar</include>
- </includes>
- </dependencySet>
- </dependencySets>
<fileSets>
<fileSet>
<directory>${project.basedir}/src/main/resources/etc
@@ -60,4 +50,4 @@
<lineEnding>keep</lineEnding>
</fileSet>
</fileSets>
-</assembly> \ No newline at end of file
+</assembly>