-
Notifications
You must be signed in to change notification settings - Fork 18
Added functionalities for integrating Vault or an SSM alternative into Aether Core #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
ab81b6a
91dfd33
7e8dbaf
30e9cf3
bf52fb4
217150a
a0df3c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
|
|
||
| FROM golang:1.25.5-bookworm@sha256:09f53deea14d4019922334afe6258b7b776afc1d57952be2012f2c8c4076db05 AS builder | ||
| FROM golang:1.24.5-bookworm AS builder | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get -y install --no-install-recommends \ | ||
|
|
@@ -20,23 +20,45 @@ RUN apt-get update && \ | |
| unzip && \ | ||
| apt-get clean | ||
|
|
||
| RUN go install github.com/go-task/task/v3/cmd/task@latest | ||
|
|
||
| WORKDIR $GOPATH/src/webconsole | ||
|
|
||
| COPY go.mod . | ||
| COPY go.sum . | ||
| COPY Taskfile.yml . | ||
|
|
||
| RUN task mod-start | ||
|
|
||
|
|
||
| COPY . . | ||
| RUN make all && \ | ||
| CGO_ENABLED=0 go build -a -installsuffix nocgo -o webconsole -x server.go | ||
|
|
||
| FROM alpine:3.23@sha256:51183f2cfa6320055da30872f211093f9ff1d3cf06f39a0bdb212314c5dc7375 AS webui | ||
| ARG BUILD_UI=true | ||
| RUN if [ "$BUILD_UI" = "true" ]; then \ | ||
| task webconsole-ui; \ | ||
| else \ | ||
| task all; \ | ||
| fi | ||
|
Comment on lines
+23
to
+41
|
||
|
|
||
| FROM alpine:3.22 AS webui | ||
|
|
||
| LABEL maintainer="Aether SD-Core <dev@lists.aetherproject.org>" \ | ||
| description="ONF open source 5G Core Network" \ | ||
| version="Stage 3" | ||
|
|
||
| ARG DEBUG_TOOLS | ||
| ARG BUILD_UI=true | ||
|
|
||
| # Install debug tools ~85MB (if DEBUG_TOOLS is set to true) | ||
| RUN if [ "$DEBUG_TOOLS" = "true" ]; then \ | ||
| apk update && apk add --no-cache -U vim strace net-tools curl netcat-openbsd bind-tools; \ | ||
| fi | ||
| apk update && apk add --no-cache -U vim strace net-tools curl netcat-openbsd bind-tools; \ | ||
| fi | ||
|
|
||
| # Copy executable - choose the right binary based on BUILD_UI | ||
| RUN if [ "$BUILD_UI" = "true" ]; then \ | ||
| echo "Copying UI-enabled binary"; \ | ||
| else \ | ||
| echo "Copying standard binary"; \ | ||
| fi | ||
|
|
||
| # Copy executable | ||
| COPY --from=builder /go/src/webconsole/webconsole /usr/local/bin/. | ||
| COPY --from=builder /go/src/webconsole/bin/* /usr/local/bin/. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these changes are not correct. It seems to me that you are using an older version of the
webconsole. The Latest version has to have the permissions you are removing. Please revert these changes