Skip to content

Commit

Permalink
Merge pull request #22 from wandersonwhcr/feature/docker
Browse files Browse the repository at this point in the history
Use Docker
  • Loading branch information
wandersonwhcr committed Mar 31, 2021
2 parents 3dd16a4 + 51db80d commit 58fe0e8
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 98 deletions.
5 changes: 2 additions & 3 deletions .gitattributes
@@ -1,9 +1,8 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/docker-compose export-ignore
/docker-compose.yml export-ignore
/phpcs.xml.dist export-ignore
/phpmd.xml export-ignore
/phpunit.xml.dist export-ignore
/puppet export-ignore
/test export-ignore
/Vagrantfile export-ignore
1 change: 0 additions & 1 deletion .gitignore
@@ -1,2 +1 @@
/.vagrant
/vendor
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

17 changes: 15 additions & 2 deletions README.md
Expand Up @@ -2,7 +2,7 @@

Laravel Illuminate Romans Integration

[![Build Status](https://travis-ci.org/wandersonwhcr/illuminate-romans.svg?branch=master)](https://travis-ci.org/wandersonwhcr/illuminate-romans)
[![Build Status](https://github.com/wandersonwhcr/illuminate-romans/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/wandersonwhcr/illuminate-romans/actions/workflows/test.yml?query=branch%3Amain)
[![Latest Stable Version](https://poser.pugx.org/wandersonwhcr/illuminate-romans/v/stable?format=flat)](https://packagist.org/packages/wandersonwhcr/illuminate-romans)
[![License](https://poser.pugx.org/wandersonwhcr/illuminate-romans/license?format=flat)](https://packagist.org/packages/wandersonwhcr/illuminate-romans)

Expand Down Expand Up @@ -59,7 +59,20 @@ $value = roman_to_int($value); // 1999
$value = int_to_roman($value); // MCMXCIX
```

## Development

You can use Docker Compose to build an image and run a container to develop and
test this package.

```bash
docker-compose up --detach

docker-compose exec romans composer install

docker-compose exec romans composer test
```

## License

This package is opensource and available under license MIT described in
[LICENSE](https://github.com/wandersonwhcr/laravel-romans/blob/master/LICENSE).
[LICENSE](https://github.com/wandersonwhcr/laravel-romans/blob/main/LICENSE).
9 changes: 0 additions & 9 deletions Vagrantfile

This file was deleted.

10 changes: 10 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,10 @@
version: "3.8"

services:

romans:
build: "./docker-compose"
volumes:
- ".:/app"
user: "${UID:-1000}:${GID:-1000}"
command: ["tail", "-f", "/dev/null"]
12 changes: 12 additions & 0 deletions docker-compose/Dockerfile
@@ -0,0 +1,12 @@
FROM php:7.2-cli-alpine

ENV COMPOSER_CACHE_DIR /tmp

COPY --from=composer:2.0 /usr/bin/composer /usr/bin/composer

RUN find /usr/src -type f -name 'php.tar*' -delete \
&& apk add unzip

VOLUME /app

WORKDIR /app
73 changes: 0 additions & 73 deletions puppet/environments/develop/manifests/default.pp

This file was deleted.

0 comments on commit 58fe0e8

Please sign in to comment.