Skip to content
Permalink
Browse files

Update swam provider version in compose to 0.8.2

**What**
- Bump faas-swarm vesion to latest, 0.8.2
- Bump arm64 and armhf sevices to their latest versions
- The docker-compose files were invalid when deployed directly because
  the auth url was not configured.  Set the default for basic auth to
  false to make this a valid configuration

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
  • Loading branch information...
LucasRoesler authored and alexellis committed Nov 1, 2019
1 parent 4822e41 commit 2bd6383dc846d60fa46c4a627d6adfe01451c51a
Showing with 23 additions and 23 deletions.
  1. +8 −8 docker-compose.arm64.yml
  2. +8 −8 docker-compose.armhf.yml
  3. +7 −7 docker-compose.yml
@@ -3,7 +3,7 @@ services:
gateway:
ports:
- 8080:8080
image: openfaas/gateway:0.15.3-arm64
image: openfaas/gateway:0.18.2-arm64
networks:
- functions
environment:
@@ -16,7 +16,7 @@ services:
faas_nats_port: 4222
direct_functions: "true" # Functions are invoked directly over the overlay network
direct_functions_suffix: ""
basic_auth: "${BASIC_AUTH:-true}"
basic_auth: "${BASIC_AUTH:-false}"
secret_mount_path: "/run/secrets/"
scale_from_zero: "true" # Enable if you want functions to scale from 0/0 to min replica count upon invoke
max_idle_conns: 1024
@@ -40,10 +40,10 @@ services:
secrets:
- basic-auth-user
- basic-auth-password

# auth service provide basic-auth plugin for system APIs
basic-auth-plugin:
image: openfaas/basic-auth-plugin:0.15.3-arm64
image: openfaas/basic-auth-plugin:0.18.2-arm64
networks:
- functions
environment:
@@ -74,14 +74,14 @@ services:
faas-swarm:
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
image: openfaas/faas-swarm:0.6.2-arm64
image: openfaas/faas-swarm:0.8.2-arm64
networks:
- functions
environment:
read_timeout: "5m5s" # set both here, and on your functions
write_timeout: "5m5s" # set both here, and on your functions
DOCKER_API_VERSION: "1.30"
basic_auth: "${BASIC_AUTH:-true}"
basic_auth: "${BASIC_AUTH:-false}"
secret_mount_path: "/run/secrets/"
gateway_invoke: "true"
faas_gateway_address: "gateway"
@@ -125,13 +125,13 @@ services:
- 'node.platform.os == linux'

queue-worker:
image: openfaas/queue-worker:0.7.2-arm64
image: openfaas/queue-worker:0.8.1-arm64
networks:
- functions
environment:
max_inflight: "1"
ack_wait: "5m5s" # Max duration of any async task / request
basic_auth: "${BASIC_AUTH:-true}"
basic_auth: "${BASIC_AUTH:-false}"
secret_mount_path: "/run/secrets/"
deploy:
resources:
@@ -3,7 +3,7 @@ services:
gateway:
ports:
- 8080:8080
image: openfaas/gateway:0.17.3-armhf
image: openfaas/gateway:0.18.2-armhf
networks:
- functions
environment:
@@ -16,7 +16,7 @@ services:
faas_nats_port: 4222
direct_functions: "true" # Functions are invoked directly over the overlay network
direct_functions_suffix: ""
basic_auth: "${BASIC_AUTH:-true}"
basic_auth: "${BASIC_AUTH:-false}"
secret_mount_path: "/run/secrets/"
scale_from_zero: "true" # Enable if you want functions to scale from 0/0 to min replica count upon invoke
max_idle_conns: 1024
@@ -40,10 +40,10 @@ services:
secrets:
- basic-auth-user
- basic-auth-password

# auth service provide basic-auth plugin for system APIs
basic-auth-plugin:
image: openfaas/basic-auth-plugin:0.15.4-armhf
image: openfaas/basic-auth-plugin:0.18.2-armhf
networks:
- functions
environment:
@@ -73,14 +73,14 @@ services:
faas-swarm:
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
image: openfaas/faas-swarm:0.7.1-armhf
image: openfaas/faas-swarm:0.8.2-armhf
networks:
- functions
environment:
read_timeout: "5m5s" # set both here, and on your functions
write_timeout: "5m5s" # set both here, and on your functions
DOCKER_API_VERSION: "1.30"
basic_auth: "${BASIC_AUTH:-true}"
basic_auth: "${BASIC_AUTH:-false}"
secret_mount_path: "/run/secrets/"
deploy:
placement:
@@ -122,13 +122,13 @@ services:
- 'node.platform.os == linux'

queue-worker:
image: openfaas/queue-worker:0.7.2-armhf
image: openfaas/queue-worker:0.8.1-armhf
networks:
- functions
environment:
max_inflight: "1"
ack_wait: "5m5s" # Max duration of any async task / request
basic_auth: "${BASIC_AUTH:-true}"
basic_auth: "${BASIC_AUTH:-false}"
secret_mount_path: "/run/secrets/"
gateway_invoke: "true"
faas_gateway_address: "gateway"
@@ -3,7 +3,7 @@ services:
gateway:
ports:
- 8080:8080
image: openfaas/gateway:0.17.3
image: openfaas/gateway:0.18.2
networks:
- functions
environment:
@@ -16,7 +16,7 @@ services:
faas_nats_port: 4222
direct_functions: "true" # Functions are invoked directly over the overlay network
direct_functions_suffix: ""
basic_auth: "${BASIC_AUTH:-true}"
basic_auth: "${BASIC_AUTH:-false}"
secret_mount_path: "/run/secrets/"
scale_from_zero: "true" # Enable if you want functions to scale from 0/0 to min replica count upon invoke
max_idle_conns: 1024
@@ -43,7 +43,7 @@ services:

# auth service provide basic-auth plugin for system APIs
basic-auth-plugin:
image: openfaas/basic-auth-plugin:0.17.0
image: openfaas/basic-auth-plugin:0.18.2
networks:
- functions
environment:
@@ -73,14 +73,14 @@ services:
faas-swarm:
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
image: openfaas/faas-swarm:0.7.3
image: openfaas/faas-swarm:0.8.2
networks:
- functions
environment:
read_timeout: "5m5s" # set both here, and on your functions
write_timeout: "5m5s" # set both here, and on your functions
DOCKER_API_VERSION: "1.30"
basic_auth: "${BASIC_AUTH:-true}"
basic_auth: "${BASIC_AUTH:-false}"
secret_mount_path: "/run/secrets/"
deploy:
placement:
@@ -122,13 +122,13 @@ services:
- "node.platform.os == linux"

queue-worker:
image: openfaas/queue-worker:0.8.0
image: openfaas/queue-worker:0.8.1
networks:
- functions
environment:
max_inflight: "1"
ack_wait: "5m5s" # Max duration of any async task / request
basic_auth: "${BASIC_AUTH:-true}"
basic_auth: "${BASIC_AUTH:-false}"
secret_mount_path: "/run/secrets/"
gateway_invoke: "true"
faas_gateway_address: "gateway"

0 comments on commit 2bd6383

Please sign in to comment.
You can’t perform that action at this time.