Skip to content

Conversation

@katzefudder
Copy link
Contributor

Just for convenience: Dockerfile with PHP7 for testing purposes
You simply need Docker installed on your machine to start testing

Copy link
Contributor

@0x20h 0x20h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First review

Start testing via the following:
```
docker build -t sofortlib .
docker run -ti -v $(pwd):/app sofortlib bash -c "composer install && vendor/bin/phpunit"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker run sofortlib sould be sufficient here as you add the lib on build time, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could run it like that to have all tests run, correct. But think about someone who'd like to somehow "interact" with the code... you run unit tests by building the container, that should be quite sufficient to run it afterwards and edit files.
But by mounting your files into the container, you could simply use it e.g. for development reasons

Dockerfile Outdated
@@ -0,0 +1,19 @@
FROM ubuntu:16.04

RUN apt-get update && apt-get install -y \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get ins...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@VasuLief VasuLief added this to the 4.0.0 milestone Jul 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants