Skip to content

Commit

Permalink
chore: update 3rd party dependencies (#1330)
Browse files Browse the repository at this point in the history
* chore: update 3rd party dependencies

Signed-off-by: Derek Wang <[email protected]>

* fix

Signed-off-by: Derek Wang <[email protected]>

* manifests

Signed-off-by: Derek Wang <[email protected]>
  • Loading branch information
whynowy authored Sep 2, 2021
1 parent a6e23a9 commit f763e68
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- name: NATS_STREAMING_IMAGE
value: nats-streaming:0.22.1
- name: NATS_METRICS_EXPORTER_IMAGE
value: synadia/prometheus-nats-exporter:0.6.2
value: natsio/prometheus-nats-exporter:0.8.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
2 changes: 1 addition & 1 deletion manifests/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ spec:
- name: NATS_STREAMING_IMAGE
value: nats-streaming:0.22.1
- name: NATS_METRICS_EXPORTER_IMAGE
value: synadia/prometheus-nats-exporter:0.6.2
value: natsio/prometheus-nats-exporter:0.8.0
image: quay.io/argoproj/argo-events:latest
imagePullPolicy: Always
livenessProbe:
Expand Down
2 changes: 1 addition & 1 deletion manifests/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ spec:
- name: NATS_STREAMING_IMAGE
value: nats-streaming:0.22.1
- name: NATS_METRICS_EXPORTER_IMAGE
value: synadia/prometheus-nats-exporter:0.6.2
value: natsio/prometheus-nats-exporter:0.8.0
image: quay.io/argoproj/argo-events:latest
imagePullPolicy: Always
livenessProbe:
Expand Down
2 changes: 1 addition & 1 deletion third_party/nats-streaming-docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ This is a partial copy of
current
[nats-streaming-server](https://github.com/nats-io/nats-streaming-server)
version is
[v0.17.0](https://github.com/nats-io/nats-streaming-server/tree/v0.17.0).
[v0.22.1](https://github.com/nats-io/nats-streaming-server/tree/v0.22.1).
Binary file modified third_party/nats-streaming-docker/amd64/nats-streaming-server
Binary file not shown.
29 changes: 4 additions & 25 deletions third_party/nats-streaming-docker/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,12 @@ fi

VERSION=$1

# cd to the current directory so the script can be run from anywhere.
cd `dirname $0`

echo "Fetching and building nats-streaming-server $VERSION..."
echo "Downloading nats-streaming-server $VERSION..."

# Create a tmp build directory.
TEMP=/tmp/nats-streaming.build
mkdir $TEMP

git clone -b $VERSION https://github.com/nats-io/nats-streaming-server $TEMP

docker build -t nats-streaming-builder $TEMP

# Create a dummy nats streaming builder container so we can run a cp against it.
ID=$(docker create nats-streaming-builder)

# Update the local binaries.
docker cp $ID:/go/src/github.com/nats-io/nats-streaming-server/pkg/linux-amd64/nats-streaming-server amd64/
#docker cp $ID:/go/src/github.com/nats-io/nats-streaming-server/pkg/linux-arm6/nats-streaming-server arm32v6/
#docker cp $ID:/go/src/github.com/nats-io/nats-streaming-server/pkg/linux-arm7/nats-streaming-server arm32v7/
#docker cp $ID:/go/src/github.com/nats-io/nats-streaming-server/pkg/linux-arm64/nats-streaming-server arm64v8/
#docker cp $ID:/go/src/github.com/nats-io/nats-streaming-server/pkg/win-amd64/nats-streaming-server.exe windows/nanoserver-1809/
#docker cp $ID:/go/src/github.com/nats-io/nats-streaming-server/pkg/win-amd64/nats-streaming-server.exe windows/windowsservercore/

# Cleanup.
rm -fr $TEMP
docker rm -f $ID
docker rmi nats-streaming-builder
wget -O nats-streaming-server.tar.gz "https://github.com/nats-io/nats-streaming-server/releases/download/${VERSION}/nats-streaming-server-${VERSION}-linux-amd64.tar.gz"
tar -xf nats-streaming-server.tar.gz
rm nats-streaming-server.tar.gz

echo "Done."
2 changes: 1 addition & 1 deletion third_party/prometheus-nats-exporter-docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
This is a partial copy of
[prometheus-nats-exporter-docker](https://github.com/nats-io/prometheus-nats-exporter/tree/master/docker),
current version is
[v0.6.2](https://github.com/nats-io/prometheus-nats-exporter/releases/tag/v0.6.2).
[v0.8.0](https://github.com/nats-io/prometheus-nats-exporter/releases/tag/v0.8.0).
10 changes: 3 additions & 7 deletions third_party/prometheus-nats-exporter-docker/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# Golang binary building stage
FROM golang:1.14

# download the source
WORKDIR /go/src/github.com/nats-io/prometheus-nats-exporter
RUN git clone --branch v0.6.2 https://github.com/nats-io/prometheus-nats-exporter.git .

# build
FROM golang:1.16
WORKDIR $GOPATH/src/github.com/nats-io/prometheus-nats-exporter
RUN git clone --branch v0.8.0 https://github.com/nats-io/prometheus-nats-exporter.git .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -a -tags netgo -installsuffix netgo -ldflags "-s -w"

# Final docker image building stage
Expand Down

0 comments on commit f763e68

Please sign in to comment.