Skip to content

Agregados los ficheros para testear otras versiones. #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
/facturascripts/
/mysql/
.DS_Store
.vscode
.vscode

/test/*/facturascripts
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 @@ services:

mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
command: --authentication_policy=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: mypassword
Expand Down
31 changes: 31 additions & 0 deletions test/php74/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM php:7.4-apache

# Install dependencies
RUN apt-get update && \
apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev libpq-dev libzip-dev unzip libxml2-dev && \
apt-get clean && \
a2enmod rewrite

# Install GD
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
RUN docker-php-ext-install gd

# Install other extensions one by one
RUN docker-php-ext-install bcmath
RUN docker-php-ext-install mysqli pdo pdo_mysql pgsql zip
RUN docker-php-ext-install soap

ENV FS_VERSION 2024.94

# Download FacturaScripts
ADD https://facturascripts.com/DownloadBuild/1/${FS_VERSION} /tmp/facturascripts.zip

# Unzip
RUN unzip -q /tmp/facturascripts.zip -d /usr/src/; \
rm -rf /tmp/facturascripts.zip

VOLUME /var/www/html

COPY facturascripts.sh /usr/local/bin/facturascripts
RUN chmod +x /usr/local/bin/facturascripts
CMD ["facturascripts"]
9 changes: 9 additions & 0 deletions test/php74/facturascripts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

FILE=/var/www/html/.htaccess
if [ ! -f "$FILE" ]; then
cp -r /usr/src/facturascripts/* /var/www/html/; \
chmod -R o+w /var/www/html
fi

apache2-foreground
31 changes: 31 additions & 0 deletions test/php80/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM php:8.0-apache

# Install dependencies
RUN apt-get update && \
apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev libpq-dev libzip-dev unzip libxml2-dev && \
apt-get clean && \
a2enmod rewrite

# Install GD
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
RUN docker-php-ext-install gd

# Install other extensions one by one
RUN docker-php-ext-install bcmath
RUN docker-php-ext-install mysqli pdo pdo_mysql pgsql zip
RUN docker-php-ext-install soap

ENV FS_VERSION 2024.94

# Download FacturaScripts
ADD https://facturascripts.com/DownloadBuild/1/${FS_VERSION} /tmp/facturascripts.zip

# Unzip
RUN unzip -q /tmp/facturascripts.zip -d /usr/src/; \
rm -rf /tmp/facturascripts.zip

VOLUME /var/www/html

COPY facturascripts.sh /usr/local/bin/facturascripts
RUN chmod +x /usr/local/bin/facturascripts
CMD ["facturascripts"]
9 changes: 9 additions & 0 deletions test/php80/facturascripts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

FILE=/var/www/html/.htaccess
if [ ! -f "$FILE" ]; then
cp -r /usr/src/facturascripts/* /var/www/html/; \
chmod -R o+w /var/www/html
fi

apache2-foreground
31 changes: 31 additions & 0 deletions test/php81/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM php:8.1-apache

# Install dependencies
RUN apt-get update && \
apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev libpq-dev libzip-dev unzip libxml2-dev && \
apt-get clean && \
a2enmod rewrite

# Install GD
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
RUN docker-php-ext-install gd

# Install other extensions one by one
RUN docker-php-ext-install bcmath
RUN docker-php-ext-install mysqli pdo pdo_mysql pgsql zip
RUN docker-php-ext-install soap

ENV FS_VERSION 2024.94

# Download FacturaScripts
ADD https://facturascripts.com/DownloadBuild/1/${FS_VERSION} /tmp/facturascripts.zip

# Unzip
RUN unzip -q /tmp/facturascripts.zip -d /usr/src/; \
rm -rf /tmp/facturascripts.zip

VOLUME /var/www/html

COPY facturascripts.sh /usr/local/bin/facturascripts
RUN chmod +x /usr/local/bin/facturascripts
CMD ["facturascripts"]
9 changes: 9 additions & 0 deletions test/php81/facturascripts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

FILE=/var/www/html/.htaccess
if [ ! -f "$FILE" ]; then
cp -r /usr/src/facturascripts/* /var/www/html/; \
chmod -R o+w /var/www/html
fi

apache2-foreground