-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor path for configuration file, option(s) and Docker image (#247)
* Refactor path for configuration file, option(s) and Docker image Signed-off-by: Arrobo, Gabriel <[email protected]> * Update `golangci` file accordingly Signed-off-by: Arrobo, Gabriel <[email protected]> --------- Signed-off-by: Arrobo, Gabriel <[email protected]>
- Loading branch information
1 parent
17615ca
commit 5ca636f
Showing
5 changed files
with
44 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2024 Intel Corporation | ||
# SPDX-FileCopyrightText: 2023 Open Networking Foundation <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
@@ -27,15 +28,6 @@ run: | |
# default is true. Enables skipping of directories: | ||
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
skip-dirs-use-default: true | ||
# which files to skip: they will be analyzed, but issues from them | ||
# won't be reported. Default value is empty list, but there is | ||
# no need to include all autogenerated files, we confidently recognize | ||
# autogenerated files. If it's not please let us know. | ||
# "/" will be replaced by current OS file path separator to properly work | ||
# on Windows. | ||
skip-files: | ||
- "api_.*\\.go$" | ||
- "model_.*\\.go$" | ||
# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules": | ||
# If invoked with -mod=readonly, the go command is disallowed from the implicit | ||
# automatic updating of go.mod described above. Instead, it fails when any changes | ||
|
@@ -51,7 +43,7 @@ run: | |
# output configuration options | ||
output: | ||
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" | ||
format: colored-line-number | ||
formats: colored-line-number | ||
# print lines of code with issue, default is true | ||
print-issued-lines: true | ||
# print linter name in the end of issue text, default is true | ||
|
@@ -134,10 +126,14 @@ linters-settings: | |
# minimal confidence for issues, default is 0.8 | ||
min-confidence: 0.8 | ||
gomnd: | ||
settings: | ||
mnd: | ||
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description. | ||
checks: argument,case,condition,operation,return,assign | ||
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description. | ||
checks: | ||
- argument | ||
- case | ||
- condition | ||
- operation | ||
- return | ||
- assign | ||
gomodguard: | ||
allowed: | ||
modules: # List of allowed modules | ||
|
@@ -155,8 +151,6 @@ linters-settings: | |
# version: "< 1.1.0" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons | ||
# reason: "testing if blocked version constraint works." # Reason why the version constraint exists. (Optional) | ||
govet: | ||
# report about shadowed variables | ||
check-shadowing: true | ||
# settings per analyzer | ||
settings: | ||
printf: # analyzer name, run `go tool vet help` to see all analyzers | ||
|
@@ -167,6 +161,9 @@ linters-settings: | |
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf | ||
# enable all analyzers | ||
enable-all: true | ||
disable: | ||
- fieldalignment | ||
disable-all: false | ||
depguard: | ||
list-type: blacklist | ||
include-go-root: false | ||
|
@@ -199,8 +196,6 @@ linters-settings: | |
whitespace: | ||
multi-if: false # Enforces newlines (or comments) after every multi-line if statement | ||
multi-func: false # Enforces newlines (or comments) after every multi-line function signature | ||
gci: | ||
local-prefixes: "bitbucket.org" | ||
misspell: | ||
#locale: US | ||
ignore-words: | ||
|
@@ -254,9 +249,9 @@ linters: | |
- dogsled | ||
# - bodyclose | ||
- asciicheck | ||
#- stylecheck | ||
# - unparam | ||
# - wsl | ||
# - stylecheck | ||
# - unparam | ||
# - wsl | ||
|
||
#disable-all: false | ||
fast: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ | |
|
||
FROM golang:1.23.2-bookworm AS builder | ||
|
||
LABEL maintainer="Aether SD-Core <[email protected]>" | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install --no-install-recommends \ | ||
vim \ | ||
|
@@ -20,7 +18,8 @@ RUN make all | |
|
||
FROM alpine:3.20 AS gnbsim | ||
|
||
LABEL description="Aether open source 5G Core Network" \ | ||
LABEL maintainer="Aether SD-Core <[email protected]>" \ | ||
description="Aether open source 5G Core Network" \ | ||
version="Stage 3" | ||
|
||
ARG DEBUG_TOOLS | ||
|
@@ -32,7 +31,7 @@ RUN if [ "$DEBUG_TOOLS" = "true" ]; then \ | |
apk update && apk add --no-cache -U gcompat vim strace net-tools curl netcat-openbsd bind-tools; \ | ||
fi | ||
|
||
WORKDIR /gnbsim/bin | ||
WORKDIR /gnbsim | ||
|
||
# Copy executable | ||
COPY --from=builder /go/src/gnbsim/bin . | ||
COPY --from=builder /go/src/gnbsim/bin /usr/local/bin/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters