Skip to content

Commit

Permalink
Merge pull request #52 from nuxsmin/3.2
Browse files Browse the repository at this point in the history
v3.2.2
  • Loading branch information
nuxsmin authored Mar 13, 2021
2 parents d91f603 + 58d1a08 commit 7ab583e
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 30 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION=3.2.1
BUILD_NUMBER=21011601
VERSION=3.2.2
BUILD_NUMBER=21031301

build_vendor:
cd build \
Expand Down
9 changes: 7 additions & 2 deletions common/common_fn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
: ${COMPOSER_EXTENSIONS:=}
: ${DEBUG:=0}

if [ ${DEBUG} -eq 1 ]; then
if [ ${DEBUG} -eq 1 -o ${SYSPASS_DEV} -eq 1 ]; then
set -x
fi

Expand All @@ -29,6 +29,11 @@ setup_apache () {

echo -e "${COLOR_YELLOW}setup_apache: Setting up xdebug variables${COLOR_NC}"

if [ ! -e ${PHP_XDEBUG_FILE} ]; then
echo -e "${COLOR_RED}setup_apache: Xdebug's file not found (${PHP_XDEBUG_FILE})${COLOR_NC}"
return 0
fi

sed -i 's/__XDEBUG_REMOTE_HOST__/'"$XDEBUG_REMOTE_HOST"'/;
s/__XDEBUG_IDE_KEY__/'"$XDEBUG_IDE_KEY"'/' \
${PHP_XDEBUG_FILE}
Expand Down Expand Up @@ -117,6 +122,6 @@ setup_composer_extensions () {
if [ -n "${COMPOSER_EXTENSIONS}" ]; then
echo -e "${COLOR_YELLOW}setup_composer_extensions: ${COMPOSER_EXTENSIONS}${COLOR_NC}"

run_composer require ${COMPOSER_EXTENSIONS} --update-no-dev
run_composer require ${COMPOSER_EXTENSIONS}
fi
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2'
services:
app:
container_name: syspass-app
image: syspass/syspass:3.2.1
image: syspass/syspass:3.2.2
restart: always
ports:
- "80"
Expand Down
8 changes: 4 additions & 4 deletions sysPass-php7.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# https://syspass.org
# https://doc.syspass.org
#
FROM composer:1.10 as bootstrap
FROM composer:2.0 as bootstrap

ENV SYSPASS_BRANCH="3.2.1"
ENV SYSPASS_BRANCH="3.2.2"

RUN git clone --depth 1 --branch ${SYSPASS_BRANCH} https://github.com/nuxsmin/sysPass.git \
&& composer install \
Expand All @@ -19,7 +19,7 @@ RUN git clone --depth 1 --branch ${SYSPASS_BRANCH} https://github.com/nuxsmin/sy

FROM debian:buster as app

LABEL [email protected] version=3.2.1 php=7.3 environment=production
LABEL [email protected] version=3.2.2 php=7.3 environment=production

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install \
Expand Down Expand Up @@ -60,7 +60,7 @@ ENV APACHE_RUN_USER="www-data" \

WORKDIR /var/www/html

LABEL build=21011601
LABEL build=21031301

# Custom sysPass Apache config with SSL by default
COPY ["syspass.conf", "/etc/apache2/sites-available/"]
Expand Down
9 changes: 7 additions & 2 deletions sysPass-php7.3/common_fn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
: ${COMPOSER_EXTENSIONS:=}
: ${DEBUG:=0}

if [ ${DEBUG} -eq 1 ]; then
if [ ${DEBUG} -eq 1 -o ${SYSPASS_DEV} -eq 1 ]; then
set -x
fi

Expand All @@ -29,6 +29,11 @@ setup_apache () {

echo -e "${COLOR_YELLOW}setup_apache: Setting up xdebug variables${COLOR_NC}"

if [ ! -e ${PHP_XDEBUG_FILE} ]; then
echo -e "${COLOR_RED}setup_apache: Xdebug's file not found (${PHP_XDEBUG_FILE})${COLOR_NC}"
return 0
fi

sed -i 's/__XDEBUG_REMOTE_HOST__/'"$XDEBUG_REMOTE_HOST"'/;
s/__XDEBUG_IDE_KEY__/'"$XDEBUG_IDE_KEY"'/' \
${PHP_XDEBUG_FILE}
Expand Down Expand Up @@ -117,6 +122,6 @@ setup_composer_extensions () {
if [ -n "${COMPOSER_EXTENSIONS}" ]; then
echo -e "${COLOR_YELLOW}setup_composer_extensions: ${COMPOSER_EXTENSIONS}${COLOR_NC}"

run_composer require ${COMPOSER_EXTENSIONS} --update-no-dev
run_composer require ${COMPOSER_EXTENSIONS}
fi
}
2 changes: 1 addition & 1 deletion sysPass-php7.3/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2'
services:
app:
container_name: syspass-app
image: syspass/syspass:3.2.1-php7.3
image: syspass/syspass:3.2.2-php7.3
restart: always
ports:
- "80"
Expand Down
13 changes: 7 additions & 6 deletions sysPass-php7.3_dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# https://syspass.org
# https://doc.syspass.org
#
FROM composer:1.10 as bootstrap
FROM composer:2.0 as bootstrap

ENV SYSPASS_BRANCH="3.2.1"
ENV SYSPASS_BRANCH="3.2.2"

RUN git clone --depth 1 --branch ${SYSPASS_BRANCH} https://github.com/nuxsmin/sysPass.git \
&& composer install \
Expand All @@ -18,7 +18,7 @@ RUN git clone --depth 1 --branch ${SYSPASS_BRANCH} https://github.com/nuxsmin/sy

FROM debian:buster as app

LABEL [email protected] version=3.2.1 php=7.3 environment=debug
LABEL [email protected] version=3.2.2 php=7.3 environment=debug

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install \
Expand Down Expand Up @@ -60,17 +60,18 @@ ENV APACHE_RUN_USER="www-data" \
APACHE_PID_FILE="/var/run/apache2.pid" \
SYSPASS_DIR="/var/www/html/sysPass" \
SYSPASS_UID=9001 \
SYSPASS_DEV=0
SYSPASS_DEV=1 \
PHP_XDEBUG_FILE="/etc/php/7.3/apache2/conf.d/20-xdebug.ini"

WORKDIR /var/www/html

LABEL build=21011601
LABEL build=21031301

# Custom sysPass Apache config with SSL by default
COPY ["syspass.conf", "/etc/apache2/sites-available/"]

# Xdebug module config
COPY 20-xdebug.ini /etc/php/7.3/apache2/conf.d/20-xdebug.ini
COPY 20-xdebug.ini ${PHP_XDEBUG_FILE}

# Custom entrypoint
COPY entrypoint.sh common_fn.sh /usr/local/sbin/
Expand Down
9 changes: 7 additions & 2 deletions sysPass-php7.3_dev/common_fn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
: ${COMPOSER_EXTENSIONS:=}
: ${DEBUG:=0}

if [ ${DEBUG} -eq 1 ]; then
if [ ${DEBUG} -eq 1 -o ${SYSPASS_DEV} -eq 1 ]; then
set -x
fi

Expand All @@ -29,6 +29,11 @@ setup_apache () {

echo -e "${COLOR_YELLOW}setup_apache: Setting up xdebug variables${COLOR_NC}"

if [ ! -e ${PHP_XDEBUG_FILE} ]; then
echo -e "${COLOR_RED}setup_apache: Xdebug's file not found (${PHP_XDEBUG_FILE})${COLOR_NC}"
return 0
fi

sed -i 's/__XDEBUG_REMOTE_HOST__/'"$XDEBUG_REMOTE_HOST"'/;
s/__XDEBUG_IDE_KEY__/'"$XDEBUG_IDE_KEY"'/' \
${PHP_XDEBUG_FILE}
Expand Down Expand Up @@ -117,6 +122,6 @@ setup_composer_extensions () {
if [ -n "${COMPOSER_EXTENSIONS}" ]; then
echo -e "${COLOR_YELLOW}setup_composer_extensions: ${COMPOSER_EXTENSIONS}${COLOR_NC}"

run_composer require ${COMPOSER_EXTENSIONS} --update-no-dev
run_composer require ${COMPOSER_EXTENSIONS}
fi
}
2 changes: 1 addition & 1 deletion sysPass-php7.3_dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2'
services:
app:
container_name: syspass-app
image: syspass/syspass:3.2.1-php7.3
image: syspass/syspass:3.2.2-php7.3
restart: always
ports:
- "80"
Expand Down
13 changes: 7 additions & 6 deletions sysPass-php7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# https://doc.syspass.org
#

FROM composer:1.10 as bootstrap
FROM composer:2.0 as bootstrap

ENV SYSPASS_BRANCH="3.2.1"
ENV SYSPASS_BRANCH="3.2.2"

RUN git clone --depth 1 --branch ${SYSPASS_BRANCH} https://github.com/nuxsmin/sysPass.git \
&& composer install \
Expand All @@ -19,7 +19,7 @@ RUN git clone --depth 1 --branch ${SYSPASS_BRANCH} https://github.com/nuxsmin/sy

FROM php:7.4-apache-buster as app

LABEL [email protected] version=3.2.1 php=7.4
LABEL [email protected] version=3.2.2 php=7.4

RUN apt-get update \
&& apt-get install -y \
Expand All @@ -46,17 +46,18 @@ RUN pecl install xdebug-2.9.8 \
ENV APACHE_RUN_USER="www-data" \
SYSPASS_DIR="/var/www/html/sysPass" \
SYSPASS_UID=9001 \
SYSPASS_DEV=0
SYSPASS_DEV=0 \
PHP_XDEBUG_FILE="/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"

WORKDIR /var/www/html

LABEL build=21011601
LABEL build=21031301

# Custom sysPass Apache config with SSL by default
COPY ["syspass.conf", "/etc/apache2/sites-available/"]

# Xdebug module config
COPY xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
COPY xdebug.ini ${PHP_XDEBUG_FILE}

# Custom entrypoint
COPY entrypoint.sh common_fn.sh /usr/local/sbin/
Expand Down
9 changes: 7 additions & 2 deletions sysPass-php7.4/common_fn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
: ${COMPOSER_EXTENSIONS:=}
: ${DEBUG:=0}

if [ ${DEBUG} -eq 1 ]; then
if [ ${DEBUG} -eq 1 -o ${SYSPASS_DEV} -eq 1 ]; then
set -x
fi

Expand All @@ -29,6 +29,11 @@ setup_apache () {

echo -e "${COLOR_YELLOW}setup_apache: Setting up xdebug variables${COLOR_NC}"

if [ ! -e ${PHP_XDEBUG_FILE} ]; then
echo -e "${COLOR_RED}setup_apache: Xdebug's file not found (${PHP_XDEBUG_FILE})${COLOR_NC}"
return 0
fi

sed -i 's/__XDEBUG_REMOTE_HOST__/'"$XDEBUG_REMOTE_HOST"'/;
s/__XDEBUG_IDE_KEY__/'"$XDEBUG_IDE_KEY"'/' \
${PHP_XDEBUG_FILE}
Expand Down Expand Up @@ -117,6 +122,6 @@ setup_composer_extensions () {
if [ -n "${COMPOSER_EXTENSIONS}" ]; then
echo -e "${COLOR_YELLOW}setup_composer_extensions: ${COMPOSER_EXTENSIONS}${COLOR_NC}"

run_composer require ${COMPOSER_EXTENSIONS} --update-no-dev
run_composer require ${COMPOSER_EXTENSIONS}
fi
}
2 changes: 1 addition & 1 deletion sysPass-php7.4/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2'
services:
app:
container_name: syspass-app
image: syspass/syspass:3.2.1-php7.4
image: syspass/syspass:3.2.2-php7.4
restart: always
ports:
- "80"
Expand Down

0 comments on commit 7ab583e

Please sign in to comment.