Skip to content

Commit

Permalink
fix this using deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Oct 4, 2024
1 parent 29b0808 commit db8a2f5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile-cdp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG DATAPLANE_IMAGE
FROM busybox:latest
FROM busybox:1.34
FROM ${DATAPLANE_IMAGE}
COPY --from=0 /bin/busybox /bin/busybox
USER 0:0
Expand Down
1 change: 1 addition & 0 deletions app/tfgen/templates/container-pause.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource "docker_container" "{{.PodName}}" {
}
{{- end }}

network_mode = "bridge"
{{- range .Node.Addresses }}
networks_advanced {
name = docker_network.devconsul-{{.Network}}.name
Expand Down
1 change: 1 addition & 0 deletions app/tfgen/templates/container-prometheus.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource "docker_container" "prometheus" {
container_path = "/etc/prometheus/prometheus.yml"
read_only = true
}
network_mode = "bridge"
networks_advanced {
name = docker_network.devconsul-lan.name
ipv4_address = "10.0.100.100"
Expand Down
1 change: 1 addition & 0 deletions app/tfgen/templates/container-vault.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "docker_container" "vault" {
read_only = true
}

network_mode = "bridge"
networks_advanced {
name = docker_network.devconsul-lan.name
ipv4_address = "10.0.100.111"
Expand Down
2 changes: 1 addition & 1 deletion config/default_cdp.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package config

const DefaultDataplaneImage = "hashicorp/consul-dataplane:1.0.0"
const DefaultDataplaneImage = "hashicorp/consul-dataplane:1.5.3"
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
version = "2.11.0"
version = "~> 2.0"
}
}
required_version = ">= 0.13"
Expand Down

0 comments on commit db8a2f5

Please sign in to comment.