Commit f4af022c authored by Dominique Feyer's avatar Dominique Feyer
Browse files

TASK: Initial version

parents
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
destination

.gitlab-ci.yml

0 → 100644
+14 −0
Original line number Diff line number Diff line
image: docker:latest

services:
- docker:dind

before_script:
- docker info

build:
  stage: build
  script:
  - docker build -t ttree/phpbu:4.0.6 .
  - docker tag ttree/phpbu:4.0.6 ttree/phpbu:4.0
  - docker tag ttree/phpbu:4.0.6 ttree/phpbu:latest

Dockerfile

0 → 100644
+18 −0
Original line number Diff line number Diff line
FROM php:7.1.2-alpine

MAINTAINER Dominique Feyer <dfeyer@ttree.ch>

RUN set -ex \
  && apk add --no-cache wget tar mysql-client openssl \
  && mkdir /source /destination

ADD ./files/phpbu.phar /usr/local/bin/phpbu

RUN set -ex \
  && chmod +x /usr/local/bin/phpbu

ADD ./files/phpbu.xml /phpbu.xml
ADD ./files/.env /.env

ENTRYPOINT ["/usr/local/bin/phpbu"]
CMD ["--colors", "--configuration=/phpbu.xml"]

Makefile

0 → 100644
+9 −0
Original line number Diff line number Diff line
build:
	docker build -t ttree/phpbu:4.0.6 .
	docker tag ttree/phpbu:4.0.6 ttree/phpbu:4.0
	docker tag ttree/phpbu:4.0.6 ttree/phpbu:latest

push:
	docker push ttree/phpbu:4.0.6
	docker push ttree/phpbu:4.0
	docker push ttree/phpbu:latest

files/.env

0 → 100644
+2 −0
Original line number Diff line number Diff line
SOURCE=/source
CRYPT_WITH=aes-256-cbc
Loading