GoogleContainerTools / GoogleContainerTools/skaffold

Suggestion on volume mount and env variables for custom image test command.

Open
#7,881 0 comments 0 reactions 0 assignees View on GitHub
area/config area/env-vars kind/feature-request priority/p3
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior

```yml
...
artifacts:
- image: service
- image: cukes
docker:
dockerfile: Dockerfile.test

test:
- image: cukes
custom:
- command: "60"
timeoutSeconds: 60
dependencies:
paths:
- features

```

The docker compose command

```
version: '2.1'
services:
service-tests:
environment:
- SERVICE_ENDPOINT=http://service:8089
- SPIN=${SPIN:-false}
volumes:
- "./test-results:/cucumber/test-output"
build:
context: .
dockerfile: Dockerfile.test
command: "60"
depends_on:
- service
```

### Actual behavior

### Information

- Skaffold version: : v1.39.2
- Operating system:
- Installed via: Homebrew
- Contents of skaffold.yaml - above

### Steps to reproduce the behavior

1. a clonable repository with the sample skaffold project
2. `skaffold dev`
3. ...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.