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

Dockerize dev setup #1157

Open
kcinay055679 opened this issue Nov 15, 2024 · 0 comments
Open

Dockerize dev setup #1157

kcinay055679 opened this issue Nov 15, 2024 · 0 comments
Labels
request New feature request

Comments

@kcinay055679
Copy link
Collaborator

kcinay055679 commented Nov 15, 2024

Is your feature request related to a problem? Please describe.
Currently we start every required service by itself, that means everything breaks for every dev on something like a version update.

Describe the solution you'd like
A docker setup for dev and a docker setup for integration tests propbably use docker profiles

The bug from #1047 should not occur.

Additional context
should look something like this:

spring:
    image: maven:3.9.9-amazoncorretto-17
    container_name: spring
    command: mvn -Dspring-boot.run.profiles=dev spring-boot:run
    restart: always
    ports:
      - "8080:8080"
    environment:
      SPRING_DATASOURCE_URL: jdbc:postgresql://okr-dev-db:5432/okr
      SPRING_WEB_RESOURCES_STATIC_LOCATIONS: file:./../okr-logic/src/main/resources/static/
      SPRING_WEB_RESOURCES_CACHE_PERIOD: 0
    working_dir: /app-root/
    volumes:
      - ./../okr-logic:/app-root
      - ~/.m2/repository:/root/.m2/repository

maven:
    container_name: maven
    image: maven:3.9.9-amazoncorretto-21
    command: mvn fizzed-watcher:run
    working_dir: /app-root/
    volumes:
      - ./../okr-logic:/app-root/
      - ~/.m2/repository:/root/.m2/repository

angular:
    container_name: angular
    working_dir: /app-root/
    network_mode: host
    ports:
      - "4200:4200"
    image: node:22
    tty: true
    restart: on-failure
    volumes:
      - ./../okr-view:/app-root/
    command: [ "/bin/bash", "-c", "cd /app-root && npm ci && npm start" ]

@kcinay055679 kcinay055679 added the request New feature request label Nov 15, 2024
@kcinay055679 kcinay055679 assigned peggimann and unassigned peggimann Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants