2018-10-18 16:21:50 +03:00
|
|
|
#
|
2020-01-06 16:52:41 +02:00
|
|
|
# Copyright © 2016-2020 The Thingsboard Authors
|
2018-10-18 16:21:50 +03:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
#
|
|
|
|
|
|
2019-05-27 17:55:27 +03:00
|
|
|
FROM thingsboard/openjdk8
|
2018-10-18 16:21:50 +03:00
|
|
|
|
2018-11-06 18:00:38 +02:00
|
|
|
COPY start-tb-http-transport.sh ${pkg.name}.deb /tmp/
|
2018-10-18 16:21:50 +03:00
|
|
|
|
|
|
|
|
RUN chmod a+x /tmp/*.sh \
|
|
|
|
|
&& mv /tmp/start-tb-http-transport.sh /usr/bin
|
|
|
|
|
|
2020-04-30 09:37:08 +03:00
|
|
|
RUN yes | dpkg -i /tmp/${pkg.name}.deb
|
2018-10-18 16:21:50 +03:00
|
|
|
|
2020-05-25 15:55:36 +03:00
|
|
|
RUN systemctl --no-reload disable --now ${pkg.name}.service > /dev/null 2>&1 || :
|
2018-10-18 16:21:50 +03:00
|
|
|
|
2020-04-30 09:37:08 +03:00
|
|
|
RUN chmod 555 ${pkg.installFolder}/bin/${pkg.name}.jar
|
|
|
|
|
|
2020-03-10 16:52:50 +02:00
|
|
|
USER ${pkg.user}
|
|
|
|
|
|
2018-10-18 16:21:50 +03:00
|
|
|
CMD ["start-tb-http-transport.sh"]
|