This commit is contained in:
Rodolfo Berrios
2022-04-04 10:08:52 -04:00
parent 8a5381a3f5
commit d1c2af5dec
4 changed files with 12 additions and 12 deletions

View File

@@ -3,20 +3,20 @@ VERSION ?= 4.0
PHP ?= 8.1
DOCKER_USER ?= www-data
PROTOCOL ?= http
CONTAINER_BASENAME ?= chevereto-build-${VERSION}
# NAMESPACE prefix in project's name
NAMESPACE ?= local
# Project's name
PROJECT = ${NAMESPACE}_chevereto-build
CONTAINER_BASENAME ?= ${NAMESPACE}_chevereto-build-${VERSION}
TAG_BASENAME ?= chevereto-build:${VERSION}-${NAMESPACE}
# SERVICE php|database|http
SERVICE ?= php
LICENSE ?= $(shell stty -echo; read -p "Chevereto V4 License key: " license; stty echo; echo $$license)
PORT ?= 8040
# NAMESPACE prefix in project's name
NAMESPACE ?= local
VERSION_DOTLESS = $(shell echo \${VERSION} | tr -d '.')
# Echo doing
FEEDBACK = $(shell echo 👉 V\${VERSION} \${NAMESPACE} [PHP \${PHP}] \(\${DOCKER_USER}\))
FEEDBACK_SHORT = $(shell echo 👉 V\${VERSION} [PHP \${PHP}] \(\${DOCKER_USER}\))
# Project's name
PROJECT = ${NAMESPACE}-chevereto-build
arguments:
@echo "${FEEDBACK}"
@@ -82,7 +82,7 @@ up: arguments
-f projects/prod.yml \
up
up--d: arguments
up-d: arguments
@CONTAINER_BASENAME=${CONTAINER_BASENAME} \
PORT=${PORT} \
TAG_BASENAME=${TAG_BASENAME} \

View File

@@ -32,7 +32,7 @@ make image
```
```sh
make up--d
make up-d
```
## Documentation

View File

@@ -21,7 +21,7 @@ make up
## Up (daemon)
```sh
make up--d
make up-d
```
## Stop

View File

@@ -82,10 +82,10 @@ RUN set -eux; \
WORKDIR /var/www/html
RUN mkdir -p ./_assets ./images \
./importing/no-parse \
./importing/parse-albums \
./importing/parse-users
RUN mkdir -p _assets images \
importing/no-parse \
importing/parse-albums \
importing/parse-users
RUN chown www-data: . -R && ls -la