Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Docker as a dev environment
Post Body

I have a legacy app which breaks horribly in PHP 7.x, which we're moving to. I need to do two things:

  1. Keep the existing (ancient) codebase running in production.
  2. Set up a dev environment (PHP 5.6, with PEAR's MDB2)

The idea is to refactor the app. Eventually it should be able to run natively under PHP 7.x, but in order to get it there I'll need to be able to test my changes as I go along (hence requiring a PHP 5.6 dev environment initially).

In order to make this work, I need to be able to do the following things:

  1. Have PEAR and MDB2 working.
  2. Successfully connect to a MySQL server running on a host outside the container.
  3. Be able to work on the application files without having to rebuild the docker image every time I need to test a change.

Is Docker the right tool for this?

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
42,048
Link Karma
7,140
Comment Karma
30,194
Profile updated: 1 week ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago