Skip to content

Commit

Permalink
Externalize composer dependencies
Browse files Browse the repository at this point in the history
Change image docker source version
  • Loading branch information
vfalies committed Jan 16, 2018
1 parent aa82a61 commit 42206aa
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.1] - 2018-01-16

### Changed

- Change version of docker image source

## [1.0] - 2017-12-26

### Added

- Add dependencies.yml file for dependencies.io

### Changed

- Fix version of EnvdevPHPBase image to 7.2 version
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
FROM vfac/envdevphpbase:7.2
FROM vfac/envdevphpbase:7.2-alpine
LABEL maintainer="Vincent Faliès <[email protected]>"

# Allow Composer to be run as root
ENV COMPOSER_ALLOW_SUPERUSER 1

RUN composer global require roave/better-reflection:dev-master#c87d856
RUN composer global require apigen/apigen:dev-master
RUN apk update \
&& apk upgrade \
&& apk add \
openssh \
&& rm -rf /var/cache/apk/*

COPY composer.json /app/composer.json
RUN cd /app/ \
&& composer update --lock

COPY php.ini /usr/local/etc/php/php.ini

ENTRYPOINT ["/root/.composer/vendor/bin/apigen"]
ENTRYPOINT ["/app/vendor/bin/apigen"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Vincent Faliès
Copyright (c) 2017-2018 Vincent Faliès

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "vfalies/apigen",
"description": "Apigen tool docker image",
"require": {
"roave/better-reflection": "dev-master#c87d856",
"apigen/apigen": "dev-master"
}
}
2 changes: 1 addition & 1 deletion dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ collectors:
actors:
# pull requests for all major, minor, and patch updates
- type: find-replace
versions: "L.Y.Y"
versions: "L.Y-alpine"

0 comments on commit 42206aa

Please sign in to comment.