Skip to content
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

v3.4.2 20241201 [Frontend Module] #293

Merged
merged 4 commits into from
Dec 1, 2024
Merged
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
43 changes: 3 additions & 40 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.6 \
-t nicklas373/hana-api-services-sit:1.7 \
-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.6
docker save -o api_image/api_image.tar nicklas373/hana-api-services-sit:1.7

- 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.6
run: docker push nicklas373/hana-api-services-sit:1.7

- name: Docker Success Notifications
run: |
Expand Down Expand Up @@ -85,40 +85,3 @@ jobs:
run: |
chmod +x ./module/bash/docker-build-info.sh
bash ./module/bash/docker-build-info.sh ${{ secrets.TG_TOKEN }} ${{ secrets.TG_CHAT_ID }} HANA_PDF_Container_[SIT] https://github.com/Nicklas373/hana-pdf/actions/workflows/docker-sit-env.yml pdf_build_image Done

instance_build_image:
runs-on: ubuntu-latest
needs: [api_build_image, pdf_build_image]

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Cleanup Unused Docker Images
run: docker rmi $(docker images -q) || true

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: nicklas373
password: ${{ secrets.DOCKER_PAT }}

- name: Build Instance Docker Image
run: |
docker build \
-t nicklas373/hana-instance-services-sit:1.3 \
-f Dockerfile/Dockerfile.hana-instance-services.sit \
.
mkdir -p instance_image
docker save -o instance_image/instance_image.tar nicklas373/hana-instance-services-sit:1.3

- name: Load Docker Images
run: docker load -i instance_image/instance_image.tar

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

- name: Docker Success Notifications
run: |
chmod +x ./module/bash/docker-build-info.sh
bash ./module/bash/docker-build-info.sh ${{ secrets.TG_TOKEN }} ${{ secrets.TG_CHAT_ID }} HANA_PDF_Container_[SIT] https://github.com/Nicklas373/hana-pdf/actions/workflows/docker-sit-env.yml instance_build_image Done
14 changes: 7 additions & 7 deletions Dockerfile/Dockerfile.hana-api-services.sit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM php:8.3-fpm-alpine

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

# Configure ARG
Expand All @@ -30,8 +30,6 @@ RUN apk add --no-cache \
libjpeg-turbo-dev \
libpng-dev \
ghostscript \
python3 \
py3-pip \
autoconf \
build-base \
postgresql-dev \
Expand All @@ -56,10 +54,6 @@ RUN cd /tmp && curl -L -o /tmp/imagick.tar.gz https://pecl.php.net/get/imagick-3
&& echo "extension=imagick.so" > /usr/local/etc/php/conf.d/ext-imagick.ini \
&& rm -rf /tmp/*

# Configure Python modules
ENV PIP_BREAK_SYSTEM_PACKAGES=1
RUN pip3 install --upgrade pip && pip3 install requests

# Clone App Services
RUN git clone -b dev/be/master https://github.com/Nicklas373/Hana-PDF hanaci-api

Expand Down Expand Up @@ -112,6 +106,12 @@ RUN cd hanaci-api && echo "PDF_POOL=pool" >> .env
RUN cd hanaci-api && echo "TELEGRAM_BOT_ID=xxxx" >> .env
RUN cd hanaci-api && echo "TELEGRAM_CHAT_ID=xxxx" >> .env
RUN cd hanaci-api && echo "HANA_UNIQUE_KEY=xxxx" >> .env
RUN cd hanaci-api && echo "MINIO_ACCESS_KEY=xxxx" >> .env
RUN cd hanaci-api && echo "MINIO_SECRET_KEY=xxxx" >> .env
RUN cd hanaci-api && echo "MINIO_REGION=us-east-1" >> .env
RUN cd hanaci-api && echo "MINIO_BUCKET=hana-pdf-sit" >> .env
RUN cd hanaci-api && echo "MINIO_ENDPOINT=xxxx" >> .env


# Configure permission
RUN cd hanaci-api && \
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ used of Flowbite library to maintain responsive and materialize interface. And p

---

### Python Module Requirements

- Requests

---

### Build Status

- [![CodeQL](https://github.com/Nicklas373/Hana-PDF/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/Nicklas373/Hana-PDF/actions/workflows/github-code-scanning/codeql)
Expand Down Expand Up @@ -80,6 +74,9 @@ used of Flowbite library to maintain responsive and materialize interface. And p
- docker compose exec hana-api-services sed -i "s/FTP_ROOT=xxxx/FTP_USERNAME=YOUR_FTP_ROOT_DIR/" >> .env
- docker compose exec hana-api-services sed -i "s/ILOVEPDF_PUBLIC_KEY=xxxx/FTP_USERNAME=YOUR_ILOVEPDF_PUBLIC_KEY/" >> .env
- docker compose exec hana-api-services sed -i "s/ILOVEPDF_SECRET_KEY=xxxx/FTP_USERNAME=YOUR_ILOVEPDF_SECRET_KEY/" >> .env
- docker compose exec hana-api-services sed -i "s/MINIO_ACCESS_KEY=xxxx/MINIO_ACCESS_KEY=YOUR_MINIO_ACCESS_KEY/" >> .env
- docker compose exec hana-api-services sed -i "s/MINIO_SECRET_KEY=xxxx/MINIO_SECRET_KEY=YOUR_MINIO_SECRET_KEY/" >> .env
- docker compose exec hana-api-services sed -i "s/MINIO_ENDPOINT=xxxx/MINIO_ENDPOINT=YOUR_MINIO_ENDPOINT_URL/" >> .env
```
4. Configure Client Host
```bash
Expand Down Expand Up @@ -193,6 +190,7 @@ used of Flowbite library to maintain responsive and materialize interface. And p
- [DropzoneJS](https://www.dropzone.dev/)
- [Flowbite](https://flowbite.com/)
- [Laravel](https://laravel.com/)
- [Minio](https://min.io/)
- [Node JS](https://nodejs.org/en)
- [Mozilla PDFJS](https://mozilla.github.io/pdf.js/)
- [Tailwind CSS](https://tailwindcss.com/)
Expand Down
Loading