Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Jenkinsfile #302

Merged
merged 3 commits into from
Aug 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ WORKDIR /run

RUN apk add --update ca-certificates && mkdir -p /nats/bin && mkdir /nats/conf

COPY docker/nats-server.conf /nats/conf/nats-server.conf
COPY docker/memphis-server.conf /nats/conf/memphis-server.conf
COPY --from=build $GOPATH/memphis-broker/memphis-broker /bin/nats-server
COPY --from=build $GOPATH/memphis-broker/conf/* conf/
COPY --from=build $GOPATH/memphis-broker/version.conf .

EXPOSE 5555 6666 8222

ENTRYPOINT ["/bin/nats-server"]
CMD ["-c", "/nats/conf/nats-server.conf"]
CMD ["-c", "/nats/conf/memphis-server.conf"]
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ node {
stage('Open port forwarding to memphis service') {
sh(script: """until kubectl get pods --selector=app=memphis-ui -o=jsonpath="{.items[*].status.phase}" -n memphis-$unique_id | grep -q "Running" ; do sleep 1; done""", returnStdout: true)
sh "nohup kubectl port-forward service/memphis-ui 9000:80 --namespace memphis-$unique_id &"
sh "nohup kubectl port-forward service/memphis-cluster 7766:7766 6666:6666 5555:5555 --namespace memphis-$unique_id &"
sh "nohup kubectl port-forward service/memphis-cluster 6666:6666 5555:5555 --namespace memphis-$unique_id &"
}

/*stage('Tests - Run e2e tests over kubernetes') {
Expand Down
4 changes: 2 additions & 2 deletions docker/nats-server.conf → docker/memphis-server.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Client port of 4222 on all interfaces
port: 4222
# Client port of 6666 on all interfaces
port: 6666

# HTTP monitoring port
monitor_port: 8222
Expand Down