diff --git a/community_images/nats/bitnami/commands.sh b/community_images/nats/bitnami/commands.sh new file mode 100755 index 0000000000..071ecf0263 --- /dev/null +++ b/community_images/nats/bitnami/commands.sh @@ -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/blake2b@v0.14.0 + cd "$GOPATH"/src/github.com/nats-io/nats.go/examples/nats-pub && go get golang.org/x/crypto/blake2b@v0.14.0 && 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:Rri8PgO4St@rf-nats.nats-1hksgmwnq0.svc.cluster.local:4222 SomeSubject & + nats-pub -s nats://nats_client:Rri8PgO4St@rf-nats.nats-1hksgmwnq0.svc.cluster.local:4222 -reply Hi SomeSubject 'Hi everyone' diff --git a/community_images/nats/bitnami/coverage.sh b/community_images/nats/bitnami/coverage.sh index 87a1e2553b..2e0700a7fe 100755 --- a/community_images/nats/bitnami/coverage.sh +++ b/community_images/nats/bitnami/coverage.sh @@ -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/blake2b@v0.14.0 - 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/blake2b@v0.14.0 + cd \"\$GOPATH\"/src/github.com/nats-io/nats.go/examples/nats-pub && go get golang.org/x/crypto/blake2b@v0.14.0 && 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 diff --git a/community_images/nats/bitnami/overrides.yml b/community_images/nats/bitnami/overrides.yml index 6584d81765..042906c628 100755 --- a/community_images/nats/bitnami/overrides.yml +++ b/community_images/nats/bitnami/overrides.yml @@ -2,9 +2,9 @@ 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 @@ -12,9 +12,9 @@ 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 diff --git a/community_images/nats/bitnami/run_param.json b/community_images/nats/bitnami/run_param.json new file mode 100644 index 0000000000..e20ac0c923 --- /dev/null +++ b/community_images/nats/bitnami/run_param.json @@ -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"}} \ No newline at end of file