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

DEV: add docker-dde setup #1481

Merged
merged 1 commit into from
May 12, 2021
Merged

DEV: add docker-dde setup #1481

merged 1 commit into from
May 12, 2021

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Mar 2, 2021

Description (*)

Adds another method to setup your OpenMage dev environment.

Install OpenMage with or without sample data in a few minutes?
Easily switch between different php versions?
Use elasticsearch, redis, ... based on project?

Give it a try.

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes Docker-Dev-Environment - starter project #1425

Questions or comments

See README for details. If any problems occur, please open a ticket here:
https://github.com/sreichel/OpenMage-Docker-Dev-Environment

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)

@sreichel
Copy link
Contributor Author

sreichel commented Mar 12, 2021

Can this please be added? This is only a README and some sample files.

@colinmollenhour
Copy link
Member

Is openmage.localhost setup to resolve to the container IP somehow or does the user need to configure this on their system?

Can we copy the sample data to the openmage organization somewhere rather than pull it from your personal namespace?

@Flyingmana Flyingmana removed their request for review March 12, 2021 19:42
@sreichel
Copy link
Contributor Author

sreichel commented Mar 12, 2021

Is openmage.localhost setup to resolve to the container IP somehow or does the user need to configure this on their system?

There is no configuration needed. Just copy dev/docker-dde/config/openmage.conf to <path/to/dde>/config/apache-24/conf.d. The .conf files uses an apache macro to run a specific vhost with a specif php version, that is set in .env.

USE PHP74 "${WORKSPACE}/magento1/openmage"

Another project can use this the same time.

USE PHP80 "${WORKSPACE}/magento1/openmage-dev"

The DB connection uses the container you have defined in .env

            <default_setup>
                <connection>
                    <host><![CDATA[mysql-80]]></host>
                    <username><![CDATA[root]]></username>
                    <password><![CDATA[]]></password>
                    <dbname><![CDATA[openmage]]></dbname>#

Different DBs just use different ports, see https://github.com/sandstein/docker-dev-environment/blob/master/docker-compose.yml. E.g. root@localhost:3357 for mysql57, 3380 for mysql80, 3504 for mariadb-104 ...

Can we copy the sample data to the openmage organization somewhere rather than pull it from your personal namespace?

I'd prefer the far better compressed version from @Vinai and delete my repo. The sample data for >1.9.2.4 has been added a few days after i created my one. :)

https://github.com/Vinai/compressed-magento-sample-data

Otherwise feel free to copy.

@Flyingmana Flyingmana merged commit bd20713 into OpenMage:1.9.4.x May 12, 2021
@github-actions
Copy link

Unit Test Results

1 files  ±0  1 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
6 runs  +4  4 ✔️ +2  2 💤 +2  0 ❌ ±0 

Results for commit bd20713. ± Comparison against base commit 0e2f81d.

@sreichel sreichel deleted the docker-dde branch May 12, 2021 18:34
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

Successfully merging this pull request may close these issues.

Docker-Dev-Environment - starter project
5 participants