summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-08 12:53:08 -0600
committermo khan <mo@mokhan.ca>2025-05-08 12:53:08 -0600
commit74d953ca1fcb8ce2c6d6b8ee54314bd95833076c (patch)
tree259a8a39b137cff906d04bc77558ad8ea1b71c31
parent77832d8784f7917f9813fc18c4dd81008d33efd0 (diff)
chore: export default ports for envoy
-rw-r--r--.runway/runway.yml2
-rw-r--r--Dockerfile2
-rw-r--r--envoy.yml2
-rw-r--r--test/integration/container_test.go6
4 files changed, 8 insertions, 4 deletions
diff --git a/.runway/runway.yml b/.runway/runway.yml
index 9fda537..a6f6515 100644
--- a/.runway/runway.yml
+++ b/.runway/runway.yml
@@ -7,7 +7,7 @@ metadata:
owner_email_handle: mkhan
product_category: authorization
spec:
- container_port: 80
+ container_port: 10000
deployment:
strategy: "expedited"
regions:
diff --git a/Dockerfile b/Dockerfile
index ac1073b..7a4d486 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,7 +7,7 @@ RUN make build && mv ./sparkled /bin/sparkled
FROM envoyproxy/envoy:v1.33-latest
ENV BIND_ADDR=":8080"
-EXPOSE 80 8080 10000 9901
+EXPOSE 8080 9901 10000
WORKDIR /var/www/
COPY --from=build /bin/sparkled /usr/local/bin/sparkled
COPY --from=build /app/public /var/www/public
diff --git a/envoy.yml b/envoy.yml
index 63b4543..50618db 100644
--- a/envoy.yml
+++ b/envoy.yml
@@ -7,7 +7,7 @@ static_resources:
listeners:
- name: listener_0
address:
- socket_address: { address: 0.0.0.0, port_value: 80 }
+ socket_address: { address: 0.0.0.0, port_value: 10000 }
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
diff --git a/test/integration/container_test.go b/test/integration/container_test.go
index 6459fed..8b3a823 100644
--- a/test/integration/container_test.go
+++ b/test/integration/container_test.go
@@ -18,6 +18,7 @@ import (
func TestContainer(t *testing.T) {
image := env.Fetch("IMAGE_TAG", "sparkled:main")
+ t.Logf("image: %v\n", image)
require.NotEmpty(t, image)
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
@@ -26,7 +27,7 @@ func TestContainer(t *testing.T) {
container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
ContainerRequest: testcontainers.ContainerRequest{
Image: image,
- ExposedPorts: []string{"80/tcp"},
+ ExposedPorts: []string{"8080/tcp", "9901/tcp", "10000/tcp"},
WaitingFor: wait.ForLog("Listening on"),
},
Started: true,
@@ -39,8 +40,11 @@ func TestContainer(t *testing.T) {
testcontainers.CleanupContainer(t, container)
}()
+ t.Logf("container: %v\n", container)
endpoint, err := container.Endpoint(ctx, "")
require.NoError(t, err)
+ t.Logf("endpoint: %v\n", endpoint)
+
paths := []string{
"/health",
"/favicon.ico",