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]: Running preevy up with services fails #533

Open
1 task done
nhuray opened this issue Aug 6, 2024 · 0 comments
Open
1 task done

[Bug]: Running preevy up with services fails #533

nhuray opened this issue Aug 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nhuray
Copy link

nhuray commented Aug 6, 2024

What happened?

Running preevy up with SERVICES arg fails.

Add screenshots

Docker Compose file

Screenshot 2024-08-05 at 10 13 39 PM

Running preevy up

Screenshot 2024-08-05 at 10 12 15 PM

Passing the service wordpress fails with error:

Error: command `docker compose --project-directory /Users/nicolas/Workspace/awesome-compose/wordpress-mysql -f compose.yaml convert wordpress preevy_proxy` exited with code 1: no such service: preevy_proxy

Steps to reproduce the behavior

Copy the following docker compose file:

services:
  db:
    # We use a mariadb image which supports both amd64 & arm64 architecture
    image: mariadb:10.6.4-focal
    # If you really want to use MySQL, uncomment the following line
    #image: mysql:8.0.27
    command: '--default-authentication-plugin=mysql_native_password'
    volumes:
      - db_data:/var/lib/mysql
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=somewordpress
      - MYSQL_DATABASE=wordpress
      - MYSQL_USER=wordpress
      - MYSQL_PASSWORD=wordpress
    expose:
      - 3306
      - 33060

  wordpress:
    image: wordpress:latest
    ports:
      - 80:80
    restart: always
    environment:
      - WORDPRESS_DB_HOST=${PREEVY_BASE_URI_DB_3306:-db}
      - WORDPRESS_DB_USER=wordpress
      - WORDPRESS_DB_PASSWORD=wordpress
      - WORDPRESS_DB_NAME=wordpress

volumes:
  db_data:

Run preevy up wordpress

Expected behavior

Specifying service(s) should deploy a preview environment with only these service(s) (and dependencies)

What OS are you seeing the problem on?

MacOS

Additional context

Preevy Version: 0.0.64
Deployed on Kubernetes

Record

  • I agree to follow this project's Code of Conduct
@nhuray nhuray added the bug Something isn't working label Aug 6, 2024
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

1 participant