Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] #41

Closed
queirozmarcus opened this issue Sep 20, 2023 · 1 comment
Closed

[bug] #41

queirozmarcus opened this issue Sep 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@queirozmarcus
Copy link

queirozmarcus commented Sep 20, 2023

Describe the bug
score-compose create compose.yml with only 1 container.

...
containers:
db-mysql:
image: mysql:latest
variables:
MYSQL_ROOT_PASSWORD: root

api:
image: api:latest
variables:
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF8"

$ score-compose run -f score.yaml -o compose.yanl
services:
  score-env-setup:
    environment:
      MYSQL_ROOT_PASSWORD: root
    image: mysql:latest
    ports:
      - target: 3306
        published: "3306"
      - target: 8080
        published: "8080"
$
@queirozmarcus queirozmarcus added the bug Something isn't working label Sep 20, 2023
@rachfop
Copy link
Contributor

rachfop commented Sep 20, 2023

Can confirm:

apiVersion: score.dev/v1b1
metadata:
  name: test

containers:
  db-mysql:
    image: mysql:latest
    variables:
      MYSQL_ROOT_PASSWORD: root
  api:
    image: api:latest
    variables:
      JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF8"

Runs:

score-compose run -f score.yaml -o compose.yaml

version: score-compose 0.6.0

Outputs:

services:
  test:
    environment:
      MYSQL_ROOT_PASSWORD: root
    image: mysql:latest

This is however a duplicate of: #26
If you don't mind, I'll close this one, but tag @sujaya-sys for visibility.

@rachfop rachfop closed this as completed Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants