Skip to content

Commit

Permalink
Merge pull request #4 from Cepat-Kilat-Teknologi/develop
Browse files Browse the repository at this point in the history
Add GTGO 1
  • Loading branch information
sumitroajiprabowo authored Aug 9, 2024
2 parents 7bd32e7 + 52ddd8b commit 9670a49
Show file tree
Hide file tree
Showing 8 changed files with 201 additions and 205 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM golang:1.21-alpine as dev
RUN go install github.com/cosmtrek/air@latest
FROM golang:1.22-alpine AS dev
RUN go install github.com/air-verse/air@latest
WORKDIR /app
COPY . /app/
RUN go mod download
RUN CGO_ENABLED=0 go build -o /go/bin/app ./cmd/api

FROM gcr.io/distroless/static-debian11 as prod
FROM gcr.io/distroless/static-debian11 AS prod
ENV APP_ENV=production
COPY --from=dev go/bin/app /
COPY --from=dev app/config/config-prod.yaml /config/config-prod.yaml
COPY --from=dev /go/bin/app /
COPY --from=dev /app/config/config-prod.yaml /config/config-prod.yaml
EXPOSE 8081
ENTRYPOINT ["/app"]
ENTRYPOINT ["/app"]
126 changes: 63 additions & 63 deletions config/cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,84 +25,84 @@ OltCfg:
onu_type: ".3.50.11.2.1.17"

Board1Pon1:
onu_id_name : ".500.10.2.3.3.1.2.285278721"
onu_type: ".3.50.11.2.1.17.268566784"
onu_serial_number : ".500.10.2.3.3.1.18.285278721"
onu_rx_power: ".500.20.2.2.2.1.10.285278721"
onu_tx_power: ".3.50.12.1.1.14.268566784"
onu_status_id : ".500.10.2.3.8.1.4.285278721"
onu_ip_address : ".3.50.16.1.1.10.268566784"
onu_description : ".500.10.2.3.3.1.3.285278721"
onu_id_name : ".500.10.2.3.3.1.2.285278465"
onu_type: ".3.50.11.2.1.17.268501248"
onu_serial_number : ".500.10.2.3.3.1.18.285278465"
onu_rx_power: ".500.20.2.2.2.1.10.285278465"
onu_tx_power: ".3.50.12.1.1.14.268501248"
onu_status_id : ".500.10.2.3.8.1.4.285278465"
onu_ip_address : ".3.50.16.1.1.10.268501248"
onu_description : ".500.10.2.3.3.1.3.285278465"

Board1Pon2:
onu_id_name : ".500.10.2.3.3.1.2.285278722"
onu_type: ".3.50.11.2.1.17.268567040"
onu_serial_number : ".500.10.2.3.3.1.18.285278722"
onu_rx_power: ".500.20.2.2.2.1.10.285278722"
onu_tx_power: ".3.50.12.1.1.14.268567040"
onu_status_id : ".500.10.2.3.8.1.4.285278722"
onu_ip_address : ".3.50.16.1.1.10.268567040"
onu_description : ".500.10.2.3.3.1.3.285278722"
onu_id_name : ".500.10.2.3.3.1.2.285278466"
onu_type: ".3.50.11.2.1.17.268501504"
onu_serial_number : ".500.10.2.3.3.1.18.285278466"
onu_rx_power: ".500.20.2.2.2.1.10.285278466"
onu_tx_power: ".3.50.12.1.1.14.268501504"
onu_status_id : ".500.10.2.3.8.1.4.285278466"
onu_ip_address : ".3.50.16.1.1.10.268501504"
onu_description : ".500.10.2.3.3.1.3.285278466"

Board1Pon3:
onu_id_name : ".500.10.2.3.3.1.2.285278723"
onu_type: ".3.50.11.2.1.17.268567296"
onu_serial_number : ".500.10.2.3.3.1.18.285278723"
onu_rx_power: ".500.20.2.2.2.1.10.285278723"
onu_tx_power: ".3.50.12.1.1.14.268567296"
onu_status_id : ".500.10.2.3.8.1.4.285278723"
onu_ip_address : ".3.50.16.1.1.10.268567296"
onu_description : ".500.10.2.3.3.1.3.285278723"
onu_id_name : ".500.10.2.3.3.1.2.285278467"
onu_type: ".3.50.11.2.1.17.268501760"
onu_serial_number : ".500.10.2.3.3.1.18.285278467"
onu_rx_power: ".500.20.2.2.2.1.10.285278467"
onu_tx_power: ".3.50.12.1.1.14.268501760"
onu_status_id : ".500.10.2.3.8.1.4.285278467"
onu_ip_address : ".3.50.16.1.1.10.268501760"
onu_description : ".500.10.2.3.3.1.3.285278467"

Board1Pon4:
onu_id_name : ".500.10.2.3.3.1.2.285278724"
onu_type: ".3.50.11.2.1.17.268567552"
onu_serial_number : ".500.10.2.3.3.1.18.285278724"
onu_rx_power: ".500.20.2.2.2.1.10.285278724"
onu_tx_power: ".3.50.12.1.1.14.268567552"
onu_status_id : ".500.10.2.3.8.1.4.285278724"
onu_ip_address : ".3.50.16.1.1.10.268567552"
onu_description : ".500.10.2.3.3.1.3.285278724"
onu_id_name : ".500.10.2.3.3.1.2.285278468"
onu_type: ".3.50.11.2.1.17.268502016"
onu_serial_number : ".500.10.2.3.3.1.18.285278468"
onu_rx_power: ".500.20.2.2.2.1.10.285278468"
onu_tx_power: ".3.50.12.1.1.14.268502016"
onu_status_id : ".500.10.2.3.8.1.4.285278468"
onu_ip_address : ".3.50.16.1.1.10.268502016"
onu_description : ".500.10.2.3.3.1.3.285278468"

Board1Pon5:
onu_id_name : ".500.10.2.3.3.1.2.285278725"
onu_type: ".3.50.11.2.1.17.268567808"
onu_serial_number : ".500.10.2.3.3.1.18.285278725"
onu_rx_power: ".500.20.2.2.2.1.10.285278725"
onu_tx_power: ".3.50.12.1.1.14.268567808"
onu_status_id : ".500.10.2.3.8.1.4.285278725"
onu_ip_address : ".3.50.16.1.1.10.268567808"
onu_description : ".500.10.2.3.3.1.3.285278725"
onu_id_name : ".500.10.2.3.3.1.2.285278469"
onu_type: ".3.50.11.2.1.17.268502272"
onu_serial_number : ".500.10.2.3.3.1.18.285278469"
onu_rx_power: ".500.20.2.2.2.1.10.285278469"
onu_tx_power: ".3.50.12.1.1.14.268502272"
onu_status_id : ".500.10.2.3.8.1.4.285278469"
onu_ip_address : ".3.50.16.1.1.10.268502272"
onu_description : ".500.10.2.3.3.1.3.285278469"

Board1Pon6:
onu_id_name : ".500.10.2.3.3.1.2.285278726"
onu_type: ".3.50.11.2.1.17.268568064"
onu_serial_number : ".500.10.2.3.3.1.18.285278726"
onu_rx_power: ".500.20.2.2.2.1.10.285278726"
onu_tx_power: ".3.50.12.1.1.14.268568064"
onu_status_id : ".500.10.2.3.8.1.4.285278726"
onu_id_name : ".500.10.2.3.3.1.2.285278470"
onu_type: ".3.50.11.2.1.17.268502528"
onu_serial_number : ".500.10.2.3.3.1.18.285278470"
onu_rx_power: ".500.20.2.2.2.1.10.285278470"
onu_tx_power: ".3.50.12.1.1.14.268502528"
onu_status_id : ".500.10.2.3.8.1.4.285278470"
onu_ip_address : ".3.50.16.1.1.10.268568064"
onu_description : ".500.10.2.3.3.1.3.285278726"
onu_description : ".500.10.2.3.3.1.3.285278470"

Board1Pon7:
onu_id_name : ".500.10.2.3.3.1.2.285278727"
onu_type: ".3.50.11.2.1.17.268568320"
onu_serial_number : ".500.10.2.3.3.1.18.285278727"
onu_rx_power: ".500.20.2.2.2.1.10.285278727"
onu_tx_power: ".3.50.12.1.1.14.268568320"
onu_status_id : ".500.10.2.3.8.1.4.285278727"
onu_ip_address : ".3.50.16.1.1.10.268568320"
onu_description : ".500.10.2.3.3.1.3.285278727"
onu_id_name : ".500.10.2.3.3.1.2.285278471"
onu_type: ".3.50.11.2.1.17.268502784"
onu_serial_number : ".500.10.2.3.3.1.18.285278471"
onu_rx_power: ".500.20.2.2.2.1.10.285278471"
onu_tx_power: ".3.50.12.1.1.14.268502784"
onu_status_id : ".500.10.2.3.8.1.4.285278471"
onu_ip_address : ".3.50.16.1.1.10.268502528"
onu_description : ".500.10.2.3.3.1.3.285278471"

Board1Pon8:
onu_id_name : ".500.10.2.3.3.1.2.285278728"
onu_type: ".3.50.11.2.1.17.268568576"
onu_serial_number : ".500.10.2.3.3.1.18.285278728"
onu_rx_power: ".500.20.2.2.2.1.10.285278728"
onu_tx_power: ".3.50.12.1.1.14.268568576"
onu_status_id : ".500.10.2.3.8.1.4.285278728"
onu_ip_address : ".3.50.16.1.1.10.268568576"
onu_description : ".500.10.2.3.3.1.3.285278728"
onu_id_name : ".500.10.2.3.3.1.2.285278472"
onu_type: ".3.50.11.2.1.17.268503040"
onu_serial_number : ".500.10.2.3.3.1.18.285278472"
onu_rx_power: ".500.20.2.2.2.1.10.285278472"
onu_tx_power: ".3.50.12.1.1.14.268503040"
onu_status_id : ".500.10.2.3.8.1.4.285278472"
onu_ip_address : ".3.50.16.1.1.10.268503040"
onu_description : ".500.10.2.3.3.1.3.285278472"

Board2Pon1:
onu_id_name : ".500.10.2.3.3.1.2.285278721"
Expand Down
126 changes: 63 additions & 63 deletions config/config-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,84 +5,84 @@ OltCfg:
onu_type: ".3.50.11.2.1.17"

Board1Pon1:
onu_id_name : ".500.10.2.3.3.1.2.285278721"
onu_type: ".3.50.11.2.1.17.268566784"
onu_serial_number : ".500.10.2.3.3.1.18.285278721"
onu_rx_power: ".500.20.2.2.2.1.10.285278721"
onu_tx_power: ".3.50.12.1.1.14.268566784"
onu_status_id : ".500.10.2.3.8.1.4.285278721"
onu_ip_address : ".3.50.16.1.1.10.268566784"
onu_description : ".500.10.2.3.3.1.3.285278721"
onu_id_name : ".500.10.2.3.3.1.2.285278465"
onu_type: ".3.50.11.2.1.17.268501248"
onu_serial_number : ".500.10.2.3.3.1.18.285278465"
onu_rx_power: ".500.20.2.2.2.1.10.285278465"
onu_tx_power: ".3.50.12.1.1.14.268501248"
onu_status_id : ".500.10.2.3.8.1.4.285278465"
onu_ip_address : ".3.50.16.1.1.10.268501248"
onu_description : ".500.10.2.3.3.1.3.285278465"

Board1Pon2:
onu_id_name : ".500.10.2.3.3.1.2.285278722"
onu_type: ".3.50.11.2.1.17.268567040"
onu_serial_number : ".500.10.2.3.3.1.18.285278722"
onu_rx_power: ".500.20.2.2.2.1.10.285278722"
onu_tx_power: ".3.50.12.1.1.14.268567040"
onu_status_id : ".500.10.2.3.8.1.4.285278722"
onu_ip_address : ".3.50.16.1.1.10.268567040"
onu_description : ".500.10.2.3.3.1.3.285278722"
onu_id_name : ".500.10.2.3.3.1.2.285278466"
onu_type: ".3.50.11.2.1.17.268501504"
onu_serial_number : ".500.10.2.3.3.1.18.285278466"
onu_rx_power: ".500.20.2.2.2.1.10.285278466"
onu_tx_power: ".3.50.12.1.1.14.268501504"
onu_status_id : ".500.10.2.3.8.1.4.285278466"
onu_ip_address : ".3.50.16.1.1.10.268501504"
onu_description : ".500.10.2.3.3.1.3.285278466"

Board1Pon3:
onu_id_name : ".500.10.2.3.3.1.2.285278723"
onu_type: ".3.50.11.2.1.17.268567296"
onu_serial_number : ".500.10.2.3.3.1.18.285278723"
onu_rx_power: ".500.20.2.2.2.1.10.285278723"
onu_tx_power: ".3.50.12.1.1.14.268567296"
onu_status_id : ".500.10.2.3.8.1.4.285278723"
onu_ip_address : ".3.50.16.1.1.10.268567296"
onu_description : ".500.10.2.3.3.1.3.285278723"
onu_id_name : ".500.10.2.3.3.1.2.285278467"
onu_type: ".3.50.11.2.1.17.268501760"
onu_serial_number : ".500.10.2.3.3.1.18.285278467"
onu_rx_power: ".500.20.2.2.2.1.10.285278467"
onu_tx_power: ".3.50.12.1.1.14.268501760"
onu_status_id : ".500.10.2.3.8.1.4.285278467"
onu_ip_address : ".3.50.16.1.1.10.268501760"
onu_description : ".500.10.2.3.3.1.3.285278467"

Board1Pon4:
onu_id_name : ".500.10.2.3.3.1.2.285278724"
onu_type: ".3.50.11.2.1.17.268567552"
onu_serial_number : ".500.10.2.3.3.1.18.285278724"
onu_rx_power: ".500.20.2.2.2.1.10.285278724"
onu_tx_power: ".3.50.12.1.1.14.268567552"
onu_status_id : ".500.10.2.3.8.1.4.285278724"
onu_ip_address : ".3.50.16.1.1.10.268567552"
onu_description : ".500.10.2.3.3.1.3.285278724"
onu_id_name : ".500.10.2.3.3.1.2.285278468"
onu_type: ".3.50.11.2.1.17.268502016"
onu_serial_number : ".500.10.2.3.3.1.18.285278468"
onu_rx_power: ".500.20.2.2.2.1.10.285278468"
onu_tx_power: ".3.50.12.1.1.14.268502016"
onu_status_id : ".500.10.2.3.8.1.4.285278468"
onu_ip_address : ".3.50.16.1.1.10.268502016"
onu_description : ".500.10.2.3.3.1.3.285278468"

Board1Pon5:
onu_id_name : ".500.10.2.3.3.1.2.285278725"
onu_type: ".3.50.11.2.1.17.268567808"
onu_serial_number : ".500.10.2.3.3.1.18.285278725"
onu_rx_power: ".500.20.2.2.2.1.10.285278725"
onu_tx_power: ".3.50.12.1.1.14.268567808"
onu_status_id : ".500.10.2.3.8.1.4.285278725"
onu_ip_address : ".3.50.16.1.1.10.268567808"
onu_description : ".500.10.2.3.3.1.3.285278725"
onu_id_name : ".500.10.2.3.3.1.2.285278469"
onu_type: ".3.50.11.2.1.17.268502272"
onu_serial_number : ".500.10.2.3.3.1.18.285278469"
onu_rx_power: ".500.20.2.2.2.1.10.285278469"
onu_tx_power: ".3.50.12.1.1.14.268502272"
onu_status_id : ".500.10.2.3.8.1.4.285278469"
onu_ip_address : ".3.50.16.1.1.10.268502272"
onu_description : ".500.10.2.3.3.1.3.285278469"

Board1Pon6:
onu_id_name : ".500.10.2.3.3.1.2.285278726"
onu_type: ".3.50.11.2.1.17.268568064"
onu_serial_number : ".500.10.2.3.3.1.18.285278726"
onu_rx_power: ".500.20.2.2.2.1.10.285278726"
onu_tx_power: ".3.50.12.1.1.14.268568064"
onu_status_id : ".500.10.2.3.8.1.4.285278726"
onu_id_name : ".500.10.2.3.3.1.2.285278470"
onu_type: ".3.50.11.2.1.17.268502528"
onu_serial_number : ".500.10.2.3.3.1.18.285278470"
onu_rx_power: ".500.20.2.2.2.1.10.285278470"
onu_tx_power: ".3.50.12.1.1.14.268502528"
onu_status_id : ".500.10.2.3.8.1.4.285278470"
onu_ip_address : ".3.50.16.1.1.10.268568064"
onu_description : ".500.10.2.3.3.1.3.285278726"
onu_description : ".500.10.2.3.3.1.3.285278470"

Board1Pon7:
onu_id_name : ".500.10.2.3.3.1.2.285278727"
onu_type: ".3.50.11.2.1.17.268568320"
onu_serial_number : ".500.10.2.3.3.1.18.285278727"
onu_rx_power: ".500.20.2.2.2.1.10.285278727"
onu_tx_power: ".3.50.12.1.1.14.268568320"
onu_status_id : ".500.10.2.3.8.1.4.285278727"
onu_ip_address : ".3.50.16.1.1.10.268568320"
onu_description : ".500.10.2.3.3.1.3.285278727"
onu_id_name : ".500.10.2.3.3.1.2.285278471"
onu_type: ".3.50.11.2.1.17.268502784"
onu_serial_number : ".500.10.2.3.3.1.18.285278471"
onu_rx_power: ".500.20.2.2.2.1.10.285278471"
onu_tx_power: ".3.50.12.1.1.14.268502784"
onu_status_id : ".500.10.2.3.8.1.4.285278471"
onu_ip_address : ".3.50.16.1.1.10.268502528"
onu_description : ".500.10.2.3.3.1.3.285278471"

Board1Pon8:
onu_id_name : ".500.10.2.3.3.1.2.285278728"
onu_type: ".3.50.11.2.1.17.268568576"
onu_serial_number : ".500.10.2.3.3.1.18.285278728"
onu_rx_power: ".500.20.2.2.2.1.10.285278728"
onu_tx_power: ".3.50.12.1.1.14.268568576"
onu_status_id : ".500.10.2.3.8.1.4.285278728"
onu_ip_address : ".3.50.16.1.1.10.268568576"
onu_description : ".500.10.2.3.3.1.3.285278728"
onu_id_name : ".500.10.2.3.3.1.2.285278472"
onu_type: ".3.50.11.2.1.17.268503040"
onu_serial_number : ".500.10.2.3.3.1.18.285278472"
onu_rx_power: ".500.20.2.2.2.1.10.285278472"
onu_tx_power: ".3.50.12.1.1.14.268503040"
onu_status_id : ".500.10.2.3.8.1.4.285278472"
onu_ip_address : ".3.50.16.1.1.10.268503040"
onu_description : ".500.10.2.3.3.1.3.285278472"

Board2Pon1:
onu_id_name : ".500.10.2.3.3.1.2.285278721"
Expand Down
Loading

0 comments on commit 9670a49

Please sign in to comment.