Skip to content

Commit

Permalink
refactor(#3450): Remove the subnet configuration from the docker setup (
Browse files Browse the repository at this point in the history
  • Loading branch information
tenthe authored Jan 31, 2025
1 parent bc4e605 commit 31a957b
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 32 deletions.
1 change: 0 additions & 1 deletion installer/cli/.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

SP_DOCKER_REGISTRY=apachestreampipes
SP_VERSION=0.98.0-SNAPSHOT
SP_SUBNET=172.31.0.0/16
COMPOSE_PROJECT_NAME=streampipes

# -------------------------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions installer/cli/bin/commands/up
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ configure(){
create_external_docker_network() {
if [ ! "$(docker network ls | grep spnet)" ]; then
info "Creating docker network 'spnet'"
subnet=$(sed -n 's/^SP_SUBNET=//p' $STREAMPIPES_WORKDIR/.env)
run "docker network create --driver=bridge --subnet=$subnet spnet" > /dev/null 2>&1
run "docker network create --driver=bridge spnet" > /dev/null 2>&1
else
info "Docker network 'spnet' already exists. Continuing"
fi
Expand Down
1 change: 0 additions & 1 deletion installer/compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

SP_VERSION=0.98.0-SNAPSHOT
SP_DOCKER_REGISTRY=apachestreampipes
SP_SUBNET=172.31.0.0/16
COMPOSE_PROJECT_NAME=streampipes

# For database migration in v0.91.0 - set init mode to 'upgrade' to migrate an existing installation
Expand Down
4 changes: 0 additions & 4 deletions installer/compose/docker-compose.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,3 @@ volumes:
networks:
spnet:
driver: bridge
ipam:
config:
- subnet: ${SP_SUBNET}

4 changes: 0 additions & 4 deletions installer/compose/docker-compose.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ services:

extensions-iiot-minimal:
image: "${SP_DOCKER_REGISTRY}/extensions-iiot-minimal:${SP_VERSION}"
depends_on:
logging: *default-logging
restart: unless-stopped
networks:
Expand All @@ -110,7 +109,4 @@ volumes:
networks:
spnet:
driver: bridge
ipam:
config:
- subnet: ${SP_SUBNET}

3 changes: 0 additions & 3 deletions installer/compose/docker-compose.nats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,4 @@ volumes:
networks:
spnet:
driver: bridge
ipam:
config:
- subnet: ${SP_SUBNET}

3 changes: 0 additions & 3 deletions installer/compose/docker-compose.pulsar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,4 @@ volumes:
networks:
spnet:
driver: bridge
ipam:
config:
- subnet: ${SP_SUBNET}

3 changes: 0 additions & 3 deletions installer/compose/docker-compose.quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,3 @@ volumes:
networks:
spnet:
driver: bridge
ipam:
config:
- subnet: ${SP_SUBNET}
3 changes: 0 additions & 3 deletions installer/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,4 @@ volumes:
networks:
spnet:
driver: bridge
ipam:
config:
- subnet: ${SP_SUBNET}

1 change: 0 additions & 1 deletion ui/cypress/tests/experimental/testJvmArchetype/.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@

SP_VERSION=0.70.0
SP_DOCKER_REGISTRY=apachestreampipes
SP_SUBNET=172.31.0.0/16
COMPOSE_PROJECT_NAME=streampipes
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@

SP_VERSION=0.70.0
SP_DOCKER_REGISTRY=apachestreampipes
SP_SUBNET=172.31.0.0/16
COMPOSE_PROJECT_NAME=streampipes
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,3 @@ volumes:
networks:
spnet:
driver: bridge
ipam:
config:
- subnet: ${SP_SUBNET}
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,3 @@ volumes:
networks:
spnet:
driver: bridge
ipam:
config:
- subnet: ${SP_SUBNET}

0 comments on commit 31a957b

Please sign in to comment.