Skip to content

Commit

Permalink
Dockerfile: Build with PHP 8.3
Browse files Browse the repository at this point in the history
Signed-off-by: Dicky Herlambang (花) <herlambangdicky5@gmail.com>
  • Loading branch information
Nicklas373 committed Sep 16, 2024
1 parent 5264132 commit c6b1018
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker-sit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
--build-arg JWT_TTL=${{ secrets.JWT_TTL }} \
--build-arg DB_USERNAME=${{ secrets.DB_USERNAME }} \
--build-arg DB_PASSWORD=${{ secrets.DB_PASSWORD }} \
-t nicklas373/hana-api-services-sit:1.3 \
-t nicklas373/hana-api-services-sit:1.4 \
-f Dockerfile/Dockerfile.hana-api-services.sit \
.
mkdir -p api_image
docker save -o api_image/api_image.tar nicklas373/hana-api-services-sit:1.3
docker save -o api_image/api_image.tar nicklas373/hana-api-services-sit:1.4
- name: Load Docker Images
run: docker load -i api_image/api_image.tar

- name: Deploy Docker Image to Docker Hub
run: docker push nicklas373/hana-api-services-sit:1.3
run: docker push nicklas373/hana-api-services-sit:1.4

- name: Docker Success Notifications
run: |
Expand Down Expand Up @@ -69,17 +69,17 @@ jobs:
docker build \
--build-arg DB_USERNAME=${{ secrets.DB_USERNAME }} \
--build-arg DB_PASSWORD=${{ secrets.DB_PASSWORD }} \
-t nicklas373/hana-app-pdf-sit:1.2 \
-t nicklas373/hana-app-pdf-sit:1.3 \
-f Dockerfile/Dockerfile.hana-app-pdf.sit \
.
mkdir -p pdf_image
docker save -o pdf_image/pdf_image.tar nicklas373/hana-app-pdf-sit:1.2
docker save -o pdf_image/pdf_image.tar nicklas373/hana-app-pdf-sit:1.3
- name: Load Docker Images
run: docker load -i pdf_image/pdf_image.tar

- name: Deploy Docker Image to Docker Hub
run: docker push nicklas373/hana-app-pdf-sit:1.2
run: docker push nicklas373/hana-app-pdf-sit:1.3

- name: Docker Success Notifications
run: |
Expand Down
11 changes: 6 additions & 5 deletions Dockerfile/Dockerfile.hana-api-services.sit
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Use php:8.2-fpm-alpine as base image
FROM php:8.2-fpm-alpine
# Use php:8.3-fpm-alpine as base image
FROM php:8.3-fpm-alpine

# Configure image maintainer
LABEL maintainer="Nicklas373 <herlambangdicky5@gmail.com>"
LABEL version="1.3"
LABEL version="1.4"
LABEL description="Docker container for https://gw.hana-ci.com"

# Configure ARG
Expand Down Expand Up @@ -34,11 +34,12 @@ RUN apk add --no-cache \
py3-pip \
postgresql-dev \
autoconf \
build-base
build-base \
libsodium-dev

# Install PHP extensions
RUN docker-php-ext-configure gd --with-freetype --with-jpeg && \
docker-php-ext-install -j$(nproc) gd zip pdo_pgsql ftp
docker-php-ext-install -j$(nproc) gd zip pdo_pgsql ftp sodium

# Install Imagick extension
RUN pecl install imagick && \
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile/Dockerfile.hana-app-pdf.sit
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Use php:8.2-fpm-alpine as base image
FROM php:8.2-fpm-alpine
# Use php:8.3-fpm-alpine as base image
FROM php:8.3-fpm-alpine

# Configure image maintainer
LABEL maintainer="Nicklas373 <herlambangdicky5@gmail.com>"
LABEL version="1.2"
LABEL version="1.3"
LABEL description="Docker application image for HANA PDF Apps"

# Configure ARG
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
hana-app-pdf:
image: nicklas373/hana-app-pdf-sit:1.2
image: nicklas373/hana-app-pdf-sit:1.3
container_name: "hana-app-pdf"
cpus: 1.0
mem_limit: 256m
Expand All @@ -17,7 +17,7 @@ services:
- hana-api-services
- hana-instance-services
hana-api-services:
image: nicklas373/hana-api-services-sit:1.3
image: nicklas373/hana-api-services-sit:1.4
container_name: "hana-api-services"
cpus: 2.0
mem_limit: 1024M
Expand Down

0 comments on commit c6b1018

Please sign in to comment.