Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
add php 8.0 images
Browse files Browse the repository at this point in the history
Signed-off-by: BlackEagle <[email protected]>
  • Loading branch information
BlackIkeEagle committed Feb 5, 2021
1 parent 2753afa commit 97c30c6
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ prepare:7.4:
only:
- master

prepare:8.0:
stage: prepare
tags:
- dockerwest
script:
- docker pull dockerwest/php:8.0
only:
- master

build:5.6:
stage: build
tags:
Expand Down Expand Up @@ -113,6 +122,15 @@ build:7.4:
only:
- master

build:8.0:
stage: build
tags:
- dockerwest
script:
- cd 8.0; ./build.sh
only:
- master

release:5.6:
stage: release
tags:
Expand Down Expand Up @@ -166,3 +184,12 @@ release:7.4:
- docker push dockerwest/php-pimcore:7.4
only:
- master

release:8.0:
stage: release
tags:
- dockerwest
script:
- docker push dockerwest/php-pimcore:8.0
only:
- master
5 changes: 5 additions & 0 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM dockerwest/php:8.0

COPY ./scripts /
RUN /install.sh
RUN rm /install*
4 changes: 4 additions & 0 deletions 8.0/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
#docker pull dockerwest/php:8.0

docker build --no-cache -t dockerwest/php-pimcore:8.0 .
32 changes: 32 additions & 0 deletions 8.0/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh

set -e

# ffmpeg comes from backports
echo "deb http://deb.debian.org/debian $(lsb_release -sc)-backports main" \
> /etc/apt/sources.list.d/backports.list
# java post install fails if not there
mkdir /usr/share/man/man1/

# install packages
apt-get update

extensions -i bz2 gd imagick intl mbstring memcached mysql redis soap \
sodium sqlite3 xml zip
apt-get install -y imagemagick inkscape pngnq pngcrush xvfb cabextract \
poppler-utils xz-utils libreoffice libreoffice-math jpegoptim ffmpeg \
html2text ghostscript exiftool

# wkhtmltopdf
apt-get install -y xfonts-75dpi
curl -LO https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cp -a wkhtmltox/bin/wkhtmltopdf /usr/local/bin/
rm -rf wkhtmltox wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

apt-get clean -y

rm -rf /usr/share/man/man1/

# update permissions to allow rootless operation
/usr/local/bin/permissions
1 change: 1 addition & 0 deletions buildall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
( cd 7.2; ./build.sh )
( cd 7.3; ./build.sh )
( cd 7.4; ./build.sh )
( cd 8.0; ./build.sh )

0 comments on commit 97c30c6

Please sign in to comment.