6 Commits

Author SHA1 Message Date
a2dcf6b8dd - Fix RedPanda Console config file download. 2025-09-22 18:29:05 +02:00
a49fa5e7ff - Use now rx3-docker/php-apache:1.5.4-mga9 image,
- Rebuild for updates.
2025-09-19 19:17:16 +02:00
9426e53e31 - Use now rx3-docker/php-apache:1.5.3-mga9 image,
- Fix volume path bug in compose file.
2025-04-21 18:22:55 +02:00
e0e13956fd - Use now rx3-docker/php-apache:1.5.2-mga9 image. 2025-03-08 12:45:44 +01:00
5d33ede3f5 - Add RedPanda Console enabling via TOOLS_RPC_ENABLE environement variable,
- Use now rx3-docker/php-apache:1.5.1-mga9 image.
2024-12-31 20:12:23 +01:00
86f481f16a - Add PostgreSQL client package to allow PHPPGAdmin database export,
- Fix PHPPGAdmin config.
2024-12-16 17:37:32 +01:00
5 changed files with 82 additions and 24 deletions

View File

@@ -33,9 +33,7 @@ ARG REDPANDA_CONSOLE_CONFIG="${REDPANDA_CONSOLE_HOME}/etc/redpanda-console-confi
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ARG TOOLSD='#!/bin/bash \n\
\n\
sed -i "s/\$conf\[`servers`\]\[0\]\[`desc`\]/\/\/\$conf\[`servers`\]\[0\]\[`desc`\]/" '${PHPPGADMIN_CONFIG}' \n\
sed -i "s/\$conf\[`servers`\]\[0\]\[`host`\]/\/\/\$conf\[`servers`\]\[0\]\[`host`\]/" '${PHPPGADMIN_CONFIG}' \n\
sed -i "s/\$conf\[`servers`\]\[0\]\[`port`\]/\/\/\$conf\[`servers`\]\[0\]\[`port`\]/" '${PHPPGADMIN_CONFIG}' \n\
sed -i "s/\t\$conf\[`servers`\]/\t\/\/\ $conf\[`servers`\]/" '${PHPPGADMIN_CONFIG}' \n\
sed -i "s/\$conf\[`extra_login_security`\] = true;/\$conf\[`extra_login_security`\] = false;/" '${PHPPGADMIN_CONFIG}' \n\
sed -i "s/?>//" '${PHPPGADMIN_CONFIG}' \n\
\n\
@@ -55,8 +53,14 @@ while [[ ${i} -lt ${#host[@]} ]]
do \n\
for var in desc host port \n\
do \n\
eval echo "`\$conf`[\`servers\`][${i}][\`${var}\`] = \`\${${var}[${i}]}\`\;" >> '${PHPPGADMIN_CONFIG}' \n\
eval echo -e "`\t\$conf`[\`servers\`][${i}][\`${var}\`]` = `\`\${${var}[${i}]}\`\;" >> '${PHPPGADMIN_CONFIG}' \n\
done \n\
\n\
echo -e "\t\$conf[`servers`][${i}][`sslmode`] = `allow`;" >> '${PHPPGADMIN_CONFIG}' \n\
echo -e "\t\$conf[`servers`][${i}][`defaultdb`] = `postgres`;" >> '${PHPPGADMIN_CONFIG}' \n\
echo -e "\t\$conf[`servers`][${i}][`pg_dump_path`] = `/usr/bin/pg_dump`;" >> '${PHPPGADMIN_CONFIG}' \n\
echo -e "\t\$conf[`servers`][${i}][`pg_dumpall_path`] = `/usr/bin/pg_dumpall`;" >> '${PHPPGADMIN_CONFIG}' \n\
\n\
i=$(( ${i} + 1)) \n\
done \n\
\n\
@@ -66,16 +70,21 @@ echo "?>"
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ARG REDPANDA_CONSOLED='#!/bin/bash \n\
\n\
sed -i "s/^ - broker-/ #- broker-/" '${REDPANDA_CONSOLE_CONFIG}' \n\
if [[ "${TOOLS_RPC_ENABLED}" != "TRUE" ]] \n\
then \n\
mv /etc/supervisord.d/redpanda_consoled.ini /etc/supervisord.d/redpanda_consoled.ini.disabled \n\
else \n\
sed -i "s/^ - broker-/ #- broker-/" '${REDPANDA_CONSOLE_CONFIG}' \n\
\n\
for broker in ${KAFKA_BROKERS} \n\
do \n\
for broker in ${KAFKA_BROKERS} \n\
do \n\
sed -i "s/^ brokers:/ brokers:\\n - ${broker}/" '${REDPANDA_CONSOLE_CONFIG}' \n\
done \n\
done \n\
\n\
sed -i "s/^ #setBasePathFromXForwardedPrefix:/ setBasePathFromXForwardedPrefix:/" '${REDPANDA_CONSOLE_CONFIG}' \n\
sed -i "s/^#server:/server:/" '${REDPANDA_CONSOLE_CONFIG}' \n\
sed -i "s/^ #listenPort: 8080/ listenPort: '${REDPANDA_CONSOLE_PORT}'/" '${REDPANDA_CONSOLE_CONFIG}''
sed -i "s/^ #setBasePathFromXForwardedPrefix:/ setBasePathFromXForwardedPrefix:/" '${REDPANDA_CONSOLE_CONFIG}' \n\
sed -i "s/^#server:/server:/" '${REDPANDA_CONSOLE_CONFIG}' \n\
sed -i "s/^ #listenPort: 8080/ listenPort: '${REDPANDA_CONSOLE_PORT}'/" '${REDPANDA_CONSOLE_CONFIG}' \n\
fi'
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -86,8 +95,8 @@ command='${REDPANDA_CONSOLE_HOME}'/bin/redpanda-console -config.filepath '${REDP
#RUN urpmi --force wget phpmyadmin \
RUN urpmi --force wget \
RUN urpmi.update -a \
&& urpmi --force wget postgresql15 \
&& mkdir -p /var/www/appl \
&& wget -q -O- "https://github.com/${PHPPGADMIN_OWNER}/phppgadmin/archive/${PHPPGADMIN_COMMIT}.tar.gz" | tar xzf - -C ${APACHE_DOC_ROOT} \
&& mv ${APACHE_DOC_ROOT}/phppgadmin-${PHPPGADMIN_COMMIT} ${APACHE_DOC_ROOT}/phppgadmin \
@@ -98,7 +107,7 @@ RUN urpmi --force wget
&& ln -s /etc/init.d/toolsd /etc/rcD.d/S40toolsd \
&& mkdir -p ${REDPANDA_CONSOLE_HOME}/bin ${REDPANDA_CONSOLE_HOME}/etc \
&& wget -q -O- "https://github.com/redpanda-data/console/releases/download/v2.7.2/redpanda_console_2.7.2_linux_amd64.tar.gz" | tar xzf - -C ${REDPANDA_CONSOLE_HOME}/bin \
&& wget -q -O- "https://docs.redpanda.com/current/shared/_attachments/redpanda-console-config.yaml" > ${REDPANDA_CONSOLE_CONFIG} \
&& wget -q -O- "https://docs.redpanda.com/24.2/shared/_attachments/redpanda-console-config.yaml" > ${REDPANDA_CONSOLE_CONFIG} \
&& echo -e "${REDPANDA_CONSOLED}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/redpanda_consoled \
&& chmod a+x /etc/init.d/redpanda_consoled \
&& ln -s /etc/init.d/redpanda_consoled /etc/rcD.d/S45redpanda_consoled \

View File

@@ -5,10 +5,11 @@ Welcome to Rx3-Docker/Tools docker image!
This project aims to build a docker image embeding some usefull tools to tests other images from Rx3 packaging projects.
Features:
- Curtently based on rx3-docker/php-apache:1.4.0-mga9 image,
- Curtently based on rx3-docker/php-apache:1.5.4-mga9 image,
- PHPPGAdmin (Mentax GitHub 2024/07 commit) installed (URL: http://localhost:xxxx/phppgadmin/),
- PostgreSQL server name, host & port configurable with multi-server support,
- RedPenda Console tool (V2.7.2).
- RedPenda Console tool (V 2.7.2),
- RedPenda Console service disbled by default (TOOLS_RPC_ENABLED variable).
Enjoy it!

View File

@@ -1,3 +1,48 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Tools V 1.2.6 - A. GIBERT - 2025/09/19
------------------------------------------------------------------------------------------------------------------------------------
- Use now rx3-docker/php-apache:1.5.4-mga9 image,
- Rebuild for updates,
- Fix RedPanda Console config file download.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Tools V 1.2.5 - A. GIBERT - 2025/04/21
------------------------------------------------------------------------------------------------------------------------------------
- Use now rx3-docker/php-apache:1.5.3-mga9 image,
- Fix volume path bug in compose file.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Tools V 1.2.4 - A. GIBERT - 2025/03/08
------------------------------------------------------------------------------------------------------------------------------------
- Use now rx3-docker/php-apache:1.5.2-mga9 image.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Tools V 1.2.3 - A. GIBERT - 2025/01/02
------------------------------------------------------------------------------------------------------------------------------------
- Add RedPanda Console enabling via TOOLS_RPC_ENABLED environment variable,
- Use now rx3-docker/php-apache:1.5.1-mga9 image.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Tools V 1.2.2 - A. GIBERT - 2024/12/16
------------------------------------------------------------------------------------------------------------------------------------
- Add PostgreSQL client package to allow PHPPGAdmin database export,
- Fix PHPPGAdmin config.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/Tools V 1.2.1 - A. GIBERT - 2024/12/14
------------------------------------------------------------------------------------------------------------------------------------
@@ -22,7 +67,7 @@ Rx3-Docker/Tools V 1.1.0 - A. GIBERT - 2024/11/11
- Move & Rename repo from Rx3/Tools-MGA9 to Rx3-Docker/Tools,
- New version naming standard,
- Now use docker_tools for .env building,
- Use now rx3-docker/server:1.2.0-mga9 image,
- Use now rx3-docker/php-apache:1.4.0-mga9 image,
- Add /var/log/init, /var/log/supervisor & var/log/httpd volumes.

View File

@@ -5,7 +5,7 @@ name: ${HOST_NAME_PREFIX}
services:
webtools:
tools:
container_name: ${TOOLS_HOST_NAME}
hostname: ${TOOLS_HOST_NAME}
@@ -36,6 +36,7 @@ services:
MARIADB_HOST: ${MARIADB_HOST}
MARIADB_PORT: ${MARIADB_PORT}
TOOLS_RPC_ENABLED: ${TOOLS_RPC_ENABLED}
KAFKA_BROKERS: ${KAFKA_HOST}:${KAFKA_PORT}
healthcheck:
@@ -46,9 +47,9 @@ services:
volumes:
# - ./var/www/html:${TOOLS_DOC_ROOT}
- .${TOOLS_LOG_INIT_EXT}:${TOOLS_LOG_INIT_INT}
- .${TOOLS_LOG_SV_EXT}:${TOOLS_LOG_SV_INT}
- .${TOOLS_LOG_HTTPD_EXT}:${TOOLS_LOG_HTTPD_INT}
- ./${TOOLS_LOG_INIT_EXT}:${TOOLS_LOG_INIT_INT}
- ./${TOOLS_LOG_SV_EXT}:${TOOLS_LOG_SV_INT}
- ./${TOOLS_LOG_HTTPD_EXT}:${TOOLS_LOG_HTTPD_INT}
ports:
- "127.0.0.1:${TOOLS_PORT_SV_EXT}:${TOOLS_PORT_SV_INT}"

View File

@@ -30,7 +30,7 @@ PORT_SV_OFFSET=1000
# | Prefix | Name | URL Prefix | Name | Name Full | Version | URL Prefix | Name | Version | Name | Version | Ext | Int | Ext | Int | Name / Id | Name / Id |
#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+-----------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+
docker_service_add TOOLS tools ${ORG_URL_PREFIX} - "Rx3-Docker/Tools" 1.2.1-mga9 ${ORG_URL_PREFIX} php-apache 1.4.0-mga9 - - 8070 80 8092 8080 apache apache
docker_service_add TOOLS tools ${ORG_URL_PREFIX} - "Rx3-Docker/Tools" 1.2.6-mga9 ${ORG_URL_PREFIX} php-apache 1.5.4-mga9 - - 8070 80 8092 8080 apache apache
@@ -51,5 +51,7 @@ MARIADB_SERVER_NAME="Default"
MARIADB_HOST="127.0.0.1"
MARIADB_PORT="3306"
TOOLS_RPC_ENABLED="FALSE"
KAFKA_HOST="127.0.0.1"
KAFKA_PORT="9092"