diff options
| -rw-r--r-- | .runway/runway.yml | 2 | ||||
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | envoy.yml | 2 | ||||
| -rw-r--r-- | test/integration/container_test.go | 6 |
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: @@ -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 @@ -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", |
