@@ -457,19 +457,6 @@ func (d *LocalRunner) getService(name string) *Service {
457
457
func (d * LocalRunner ) applyTemplate (s * Service ) ([]string , map [string ]string , error ) {
458
458
var input map [string ]interface {}
459
459
460
- // For {{.Dir}}:
461
- // - Service runs on host: bind to the output folder
462
- // - Service runs inside docker: bind to /artifacts
463
- if d .isHostService (s .Name ) {
464
- input = map [string ]interface {}{
465
- "Dir" : d .out .dst ,
466
- }
467
- } else {
468
- input = map [string ]interface {}{
469
- "Dir" : "/artifacts" ,
470
- }
471
- }
472
-
473
460
resolvePort := func (name string , defaultPort int , protocol string ) int {
474
461
// For {{Port "name" "defaultPort"}}:
475
462
// - Service runs on host: return the host port
@@ -952,8 +939,9 @@ func CreatePrometheusServices(manifest *Manifest, out *output) error {
952
939
srv := manifest .NewService ("prometheus" ).
953
940
WithImage ("prom/prometheus" ).
954
941
WithTag ("latest" ).
955
- WithArgs ("--config.file" , "{{.Dir}}/prometheus.yaml" ).
956
- WithPort ("metrics" , 9090 , "tcp" )
942
+ WithArgs ("--config.file" , "/data/prometheus.yaml" ).
943
+ WithPort ("metrics" , 9090 , "tcp" ).
944
+ WithArtifact ("/data/prometheus.yml" , "prometheus.yaml" )
957
945
manifest .services = append (manifest .services , srv )
958
946
959
947
return nil
0 commit comments