Add tool pre-commit to suport source linting.
Makefile
requirements.txt
.pre-commit-config.yaml
-----------------------
o Add project copyright notice with SPDX tokens.
o Added makefile targets for installing a virtualenv and the
tool/library pre-commit.
o .pre-commit-config added for basic linting config.
Change-Id: Ib225221e1db149715d015a71877655299657d6a7
Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org>
diff --git a/docker/Dockerfile.voltha-go-controller b/docker/Dockerfile.voltha-go-controller
index d05d6e5..ecfc87c 100644
--- a/docker/Dockerfile.voltha-go-controller
+++ b/docker/Dockerfile.voltha-go-controller
@@ -1,3 +1,22 @@
+# -----------------------------------------------------------------------
+# Copyright 2017-2024 Open Networking Foundation Contributors
+#
+# 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.
+# -----------------------------------------------------------------------
+# SPDX-FileCopyrightText: 2017-2024 Open Networking Foundation Contributors
+# SPDX-License-Identifier: Apache-2.0
+# -----------------------------------------------------------------------
+
FROM --platform=linux/amd64 golang:1.16.3-alpine3.13 AS dev
RUN adduser -h /home/voltha-go-controller -s /bin/bash -D voltha-go-controller
@@ -46,10 +65,11 @@
RUN chown -R voltha-go-controller.voltha-go-controller /app/voltha-go-controller /usr/local/bin/
RUN apk add --no-cache openssh=8.4_p1-r4
-RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/init.d/sshd
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22
+
+# [EOF]
\ No newline at end of file