Skip to content

Commit

Permalink
Bumping verison
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmattox committed Jun 8, 2024
1 parent 7c73dd4 commit 5fff757
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Connect to server",
"type": "go",
"request": "attach",
"mode": "remote",
"remotePath": "${workspaceFolder}",
"port": 2345,
"host": "127.0.0.1"
}
]
}
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Start from the official Go image
FROM golang:1.22 as builder
FROM golang:1.22.4 as builder

# Set the Current Working Directory inside the container
WORKDIR /app
Expand All @@ -8,16 +8,16 @@ WORKDIR /app
COPY . .

# Build the Go app
RUN go build -o Prometheus-Tunnel .
RUN go build -o prometheus-tunnel .

# Start a new stage from scratch
FROM scratch

# Copy the Pre-built binary file from the previous stage
COPY --from=builder /app/Prometheus-Tunnel /Prometheus-Tunnel
COPY --from=builder /app/prometheus-tunnel /prometheus-tunnel

# Expose port 9000 to the outside world
EXPOSE 9000

# Command to run the executable
CMD ["/Prometheus-Tunnel"]
CMD ["/prometheus-tunnel"]
7 changes: 7 additions & 0 deletions charts/prometheus-tunnel/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ questions:
type: int
group: "Metrics Settings"

- variable: settings.name
default: "server01"
description: "Name of the server for which the tunnel will be established."
label: "Server Name"
type: string
group: "Server Settings"

- variable: settings.serverIP
default: "1.2.3.4"
description: "IP address of the server to which the tunnel will be established."
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-tunnel/values.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ settings:
port: 9182
serverIP: "1.2.3.4"
serverPort: 9182
name: "server01"
rules: enabled

replicaCount: 1
Expand Down

0 comments on commit 5fff757

Please sign in to comment.