# ============LICENSE_START=======================================================
# org.onap.dcae
# ================================================================================
-# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# limitations under the License.
# ============LICENSE_END=========================================================
#
-FROM node:10.14.1
-RUN mkdir -p /opt/app
+FROM node:12.15.0
+RUN mkdir -p /opt/app \
+ && useradd -d /opt/app health
COPY *.js /opt/app/
COPY package.json /opt/app/
+RUN chown -R health:health /opt/app
WORKDIR /opt/app
-EXPOSE 80
+USER health
+EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/node", "healthcheck.js"]
/*
-Copyright(c) 2018-2019 AT&T Intellectual Property. All rights reserved.
+Copyright(c) 2018-2020 AT&T Intellectual Property. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
res.end(JSON.stringify(ret.body || {}), 'utf8');
});
});
-server.listen(80);
+server.listen(8080);
<?xml version="1.0"?>
<!--
================================================================================
-Copyright (c) 2018-2019 AT&T Intellectual Property. All rights reserved.
+Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
<groupId>org.onap.dcaegen2.deployments</groupId>
<artifactId>healthcheck-container</artifactId>
<name>dcaegen2-deployments-healthcheck-container</name>
- <version>1.2.5</version>
+ <version>1.3.0</version>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>