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

RND-297 backend dockerfile: allow configuring port & protocol #2507

Open
wants to merge 1 commit into
base: 7.0.0-build
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ ENV POSTGRES_HOST=postgresql
ENV POSTGRES_USER=cloudify
ENV POSTGRES_PASSWORD=cloudify

# stage backend needs to be able to reach restservice at this address, port 53333
# stage backend needs to be able to reach restservice at this address, port & proto
ENV RESTSERVICE_ADDRESS=localhost
ENV RESTSERVICE_PROTOCOL=https
ENV RESTSERVICE_PORT=443

# by default, listen on all interfaces
ENV LISTEN_HOST="0.0.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packaging/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ cat <<EOF > /app/conf/manager.json
{
"ip": "${RESTSERVICE_ADDRESS}",
"apiVersion": "v3.1",
"protocol" : "https",
"port": "53333"
"protocol" : "${RESTSERVICE_PROTOCOL}",
"port": "${RESTSERVICE_PORT}"
}
EOF

Expand Down