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

Update Docker Setup For Development #556

Open
aaronskiba opened this issue Dec 15, 2023 · 3 comments
Open

Update Docker Setup For Development #556

aaronskiba opened this issue Dec 15, 2023 · 3 comments

Comments

@aaronskiba
Copy link
Collaborator

Please complete the following fields as applicable:

What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
3.3.1+portage-3.2.2

We can currently run the db services in the background by executing docker-compose -f docker-compose-development.yml up -d. There is also a docker-compose.yml and a corresponding Dockerfile to create an image for the rails server. However, these files need to be updated (e.g. Dockerfile has FROM ruby:2.6.6 and docker-compose.yml has DATABASE_URL: 'mysql2://db').

In addition, these files could be useful for the upstream DMPRoadmap repo. They have an outstanding ticket for a Docker setup for development DMPRoadmap#3282.

@aaronskiba
Copy link
Collaborator Author

Issue #213 (now closed and added here instead) describes another issue regarding Dockerfile:

In Dockerfile, multiple 'apt-get update' commands

What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
v3.0.12

Expected behaviour:
In the Dockerfile, there are 2 statements which run , apt-get update. Once should be enough!

Actual behaviour:
Line 4: 4 RUN apt-get update -qq && \
Line 30: 30 RUN apt-get update && apt-get install -y yarn

@laceysanderson
Copy link

Based on the github workflows it looks like the current versions being tested (and thus the ideal ones to use in the docker setup) are:

  • ruby: 3.1.4
  • node: 16.6.0
  • postgresql: 16 or 17 (not sure as the version is not specified and thus it's likely the most recent stable but 17 was just released in September making it a bit vague right now)
  • mysql: 9.1

Is that right?

Pertinent workflows:

@aaronskiba
Copy link
Collaborator Author

Based on the github workflows it looks like the current versions being tested (and thus the ideal ones to use in the docker setup) are:

  • ruby: 3.1.4
  • node: 16.6.0
  • postgresql: 16 or 17 (not sure as the version is not specified and thus it's likely the most recent stable but 17 was just released in September making it a bit vague right now)
  • mysql: 9.1

Is that right?

Pertinent workflows:

Thank you for the helpful starting point. Looks like this issue is being raised in priority, so we'll have it working in the near future. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants