upload old filesgit
Dieser Commit ist enthalten in:
Commit
75d696d0d2
3 geänderte Dateien mit 34 neuen und 0 gelöschten Zeilen
13
.drone.yml
Normale Datei
13
.drone.yml
Normale Datei
|
@ -0,0 +1,13 @@
|
|||
name: php builder
|
||||
kind: pipeline
|
||||
type: docker
|
||||
steps:
|
||||
- name: php
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: nickslowinski/robotter112
|
||||
tags: php
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
8
Dockerfile
Normale Datei
8
Dockerfile
Normale Datei
|
@ -0,0 +1,8 @@
|
|||
FROM php:7.4-fpm
|
||||
ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/
|
||||
RUN apt-get update && apt-get install -y procps && rm -rf /var/lib/apt/lists/*
|
||||
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
|
||||
install-php-extensions zip ssh2 pdo_mysql mysqli
|
||||
COPY docker-php-entrypoint-custom /usr/local/bin/
|
||||
RUN chmod 775 /usr/local/bin/docker-php-entrypoint-custom
|
||||
ENTRYPOINT ["docker-php-entrypoint-custom"]
|
13
docker-php-entrypoint-custom
Normale Datei
13
docker-php-entrypoint-custom
Normale Datei
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
# modified - delete old pid before startup
|
||||
if [ -f "/web_data/robotter112.de/rank/logs/pid" ]; then rm -f /web_data/robotter112.de/rank/logs/pid; fi
|
||||
|
||||
# original base image
|
||||
set -e
|
||||
|
||||
# first arg is `-f` or `--some-option`
|
||||
if [ "${1#-}" != "$1" ]; then
|
||||
set -- php-fpm "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
In neuem Issue referenzieren