Skip to content

Commit

Permalink
Nats-bitnami temporary fix
Browse files Browse the repository at this point in the history
Signed-off-by: nrupen <[email protected]>
  • Loading branch information
nrupen committed Dec 21, 2023
1 parent 4bede43 commit aecf68d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
12 changes: 12 additions & 0 deletions community_images/nats/bitnami/commands.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e
set -x
GO111MODULE=off go get github.com/nats-io/nats.go
go env -w GOPROXY=direct
go env -w GOSUMDB=off
# go install golang.org/x/crypto/blake2b/my.go
# go install golang.org/x/crypto/[email protected]
cd "$GOPATH"/src/github.com/nats-io/nats.go/examples/nats-pub && go get golang.org/x/crypto/[email protected] && go install && cd || exit
cd "$GOPATH"/src/github.com/nats-io/nats.go/examples/nats-echo && go install && cd || exit
nats-echo -s nats://nats_client:[email protected]:4222 SomeSubject &
nats-pub -s nats://nats_client:[email protected]:4222 -reply Hi SomeSubject 'Hi everyone'
9 changes: 5 additions & 4 deletions community_images/nats/bitnami/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ function test_nats() {
set -e
set -x
GO111MODULE=off go get github.com/nats-io/nats.go
go env -w GOPROXY=http://${NATS_SERVER}:8222,direct
go install golang.org/x/crypto/[email protected]
go mod tidy
cd \"\$GOPATH\"/src/github.com/nats-io/nats.go/examples/nats-pub && go install && cd || exit
go env -w GOPROXY=direct
go env -w GOSUMDB=off
# go install golang.org/x/crypto/blake2b/my.go
# go install golang.org/x/crypto/[email protected]
cd \"\$GOPATH\"/src/github.com/nats-io/nats.go/examples/nats-pub && go get golang.org/x/crypto/[email protected] && go install && cd || exit
cd \"\$GOPATH\"/src/github.com/nats-io/nats.go/examples/nats-echo && go install && cd || exit
nats-echo -s nats://$NATS_USER:$NATS_PASS@${HELM_RELEASE}.${NAMESPACE}.svc.cluster.local:4222 SomeSubject &
nats-pub -s nats://$NATS_USER:$NATS_PASS@${HELM_RELEASE}.${NAMESPACE}.svc.cluster.local:4222 -reply Hi SomeSubject 'Hi everyone'" > "$SCRIPTPATH"/commands.sh
Expand Down
18 changes: 9 additions & 9 deletions community_images/nats/bitnami/overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ image:
pullSecrets: ["rf-regcred"]
pullPolicy: Always
containerSecurityContext:
enabled: true
runAsUser: 1001
allowPrivilegeEscalation: true
# enabled: true
# runAsUser: 1001
# allowPrivilegeEscalation: true
capabilities:
add: ["SYS_PTRACE"]
resourceType: deployment
replicaCount: 1
extraEnvVars:
- name: "RF_VERBOSE"
value: "0"
livenessProbe:
initialDelaySeconds: 30
timeoutSeconds: 30
readinessProbe:
initialDelaySeconds: 30
timeoutSeconds: 30
# livenessProbe:
# initialDelaySeconds: 30
# timeoutSeconds: 30
# readinessProbe:
# initialDelaySeconds: 30
# timeoutSeconds: 30
1 change: 1 addition & 0 deletions community_images/nats/bitnami/run_param.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"namespace_name": "nats-1hksgmwnq0", "release_name": "rf-nats", "image_tag_details": {"nats": {"repo_path": "kirandeepkhehra/nats", "tag": "2.10.2-debian-11-r1-rfstub"}}, "image_script_dir": "/root/rapidfort/community-images-ssh/community_images/nats/bitnami", "runtime_props": {"type": "k8s", "script": "k8s_coverage.sh", "helm": {"repo": "bitnami", "repo_url": "https://charts.bitnami.com/bitnami", "chart": "nats"}, "image_keys": {"nats": {"repository": "image.repository", "tag": "image.tag"}}, "override_file": "overrides.yml"}}

0 comments on commit aecf68d

Please sign in to comment.