-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix docker compose in validate examples (#470)
* Fix docker compose in validate examples * Bump examples * Fix stuff * Restart
- Loading branch information
Showing
46 changed files
with
106 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "received event {ID:[0-9]+}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,18 @@ | ||
version: '3' | ||
services: | ||
server: | ||
image: golang:1.21 | ||
image: golang:1.23 | ||
restart: unless-stopped | ||
depends_on: | ||
- kafka | ||
volumes: | ||
- .:/app | ||
- $GOPATH/pkg/mod:/go/pkg/mod | ||
working_dir: /app | ||
command: go run main.go | ||
|
||
zookeeper: | ||
image: confluentinc/cp-zookeeper:7.3.1 | ||
logging: | ||
driver: none | ||
restart: unless-stopped | ||
environment: | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
|
||
kafka: | ||
image: confluentinc/cp-kafka:7.3.1 | ||
logging: | ||
driver: none | ||
image: bitnami/kafka:3.5.0 | ||
restart: unless-stopped | ||
depends_on: | ||
- zookeeper | ||
environment: | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
ALLOW_PLAINTEXT_LISTENER: yes | ||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092 | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
_examples/basic/2-realtime-feed/.validate_example_subscribing.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "Adding to feed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "msg=\"Message acked\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: '3' | ||
services: | ||
golang: | ||
image: golang:1.21 | ||
image: golang:1.23 | ||
restart: unless-stopped | ||
ports: | ||
- 8080:8080 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 120 | ||
expected_output: "beers ordered to room 3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 120 | ||
expected_output: "received message: [0-9a-f\\-]+, payload: Hello, world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "payload: Hello, world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "payload: Hello, world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "payload: Hello, world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: '3' | ||
services: | ||
server: | ||
image: golang:1.21 | ||
image: golang:1.23 | ||
restart: unless-stopped | ||
depends_on: | ||
- nats | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "payload: Hello, world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: '3' | ||
services: | ||
server: | ||
image: golang:1.21 | ||
image: golang:1.23 | ||
restart: unless-stopped | ||
depends_on: | ||
- nats | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "payload: Hello, world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "payload: Hello, world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "Hello, world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
_examples/real-world-examples/persistent-event-log/.validate_example.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "received event" |
3 changes: 1 addition & 2 deletions
3
_examples/real-world-examples/persistent-event-log/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
_examples/real-world-examples/receiving-webhooks/.validate_example.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "Starting handler" |
3 changes: 1 addition & 2 deletions
3
_examples/real-world-examples/receiving-webhooks/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: '3' | ||
services: | ||
golang: | ||
image: golang:1.21 | ||
image: golang:1.23 | ||
restart: unless-stopped | ||
ports: | ||
- 8080:8080 | ||
|
4 changes: 2 additions & 2 deletions
4
_examples/real-world-examples/sending-webhooks/.validate_example.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation_cmd: "docker-compose up" | ||
teardown_cmd: "docker-compose down" | ||
validation_cmd: "docker compose up" | ||
teardown_cmd: "docker compose down" | ||
timeout: 180 | ||
expected_output: "POST /foo_or_bar: message" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
_examples/real-world-examples/server-sent-events-htmx/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.22 AS builder | ||
FROM golang:1.23 AS builder | ||
|
||
COPY . /src | ||
WORKDIR /src/ | ||
|
Oops, something went wrong.