Compare commits

..
10 Commits
Author SHA1 Message Date
thuanle 32f2065446 feat: update workflows and Dockerfiles for node-go, node-python, and docker-node images
docker-node image / build (arm64) (push) Successful in 15s
node-go image / build (arm64) (push) Successful in 16s
node-go image / build (amd64) (push) Successful in 7s
docker-node image / build (amd64) (push) Successful in 48s
node-python image / build (amd64) (push) Successful in 8s
docker-node image / amend-manifest (push) Successful in 5s
node-python image / build (arm64) (push) Successful in 15s
node-go image / amend-manifest (push) Successful in 15s
node-python image / amend-manifest (push) Successful in 14s
2026-06-23 16:49:10 +07:00
thuanle bb01daeb4d add gcc for go
docker-node image / build (amd64) (push) Successful in 9s
docker-node image / build (arm64) (push) Successful in 30s
docker-node image / amend-manifest (push) Successful in 19s
node-go image / build (amd64) (push) Successful in 1m14s
node-python image / build (amd64) (push) Failing after 1m17s
node-go image / build (arm64) (push) Successful in 1m46s
node-go image / amend-manifest (push) Successful in 9s
node-python image / build (arm64) (push) Successful in 32s
node-python image / amend-manifest (push) Has been skipped
2026-06-23 16:33:44 +07:00
thuanle 69591ec230 ci
docker-node image / build (arm64) (push) Successful in 5s
docker-node image / build (amd64) (push) Successful in 11s
node-python image / build (arm64) (push) Successful in 16s
docker-node image / amend-manifest (push) Successful in 14s
node-python image / build (amd64) (push) Successful in 21s
node-go image / build (arm64) (push) Successful in 43s
node-python image / amend-manifest (push) Successful in 4s
node-go image / build (amd64) (push) Successful in 1m16s
node-go image / amend-manifest (push) Successful in 14s
2026-04-28 00:11:02 +07:00
thuanle f7ebfffddb node-go
docker-node image / build (arm64) (push) Successful in 32s
docker-node image / build (amd64) (push) Successful in 55s
node-python image / build (arm64) (push) Successful in 1m2s
docker-node image / amend-manifest (push) Successful in 12s
node-python image / build (amd64) (push) Successful in 1m45s
node-python image / amend-manifest (push) Successful in 9s
2026-04-28 00:03:58 +07:00
thuanle cdaf343fc0 docs: add node-go base image design 2026-04-27 23:17:13 +07:00
thuanle 924f9a454f dont need the latex base
docker-node image / build (arm64) (push) Successful in 11s
docker-node image / build (amd64) (push) Successful in 32s
docker-node image / amend-manifest (push) Successful in 9s
node-python image / build (arm64) (push) Successful in 19s
node-python image / build (amd64) (push) Successful in 21s
node-python image / amend-manifest (push) Successful in 19s
2026-01-25 10:17:20 +07:00
thuanle 1f82f00acc fix: remove invalid/redundant tex packages to fix build
docker-node image / build (arm64) (push) Successful in 28s
docker-node image / build (amd64) (push) Successful in 1m10s
docker-node image / amend-manifest (push) Successful in 4s
node-python image / build (arm64) (push) Successful in 29s
node-python image / build (amd64) (push) Successful in 1m2s
node-python image / amend-manifest (push) Successful in 5s
latex image / build (arm64) (push) Failing after 22m23s
latex image / build (amd64) (push) Failing after 24m21s
latex image / amend-manifest (push) Has been skipped
2026-01-22 11:08:20 +07:00
thuanle 4c8ad817c0 feat: add latex image with VN support and CI workflow
docker-node image / build (arm64) (push) Successful in 11s
latex image / build (amd64) (push) Failing after 22s
node-python image / build (amd64) (push) Successful in 34s
docker-node image / build (amd64) (push) Successful in 1m21s
node-python image / build (arm64) (push) Successful in 6s
docker-node image / amend-manifest (push) Successful in 5s
node-python image / amend-manifest (push) Successful in 19s
latex image / build (arm64) (push) Failing after 2m8s
latex image / amend-manifest (push) Has been skipped
2026-01-22 11:01:10 +07:00
thuanle a3d7f500d1 chore: update base image in Dockerfiles to use node:lts-slim
docker-node image / build (arm64) (push) Successful in 18s
docker-node image / build (amd64) (push) Successful in 51s
docker-node image / amend-manifest (push) Successful in 4s
node-python image / build (arm64) (push) Successful in 19s
node-python image / build (amd64) (push) Successful in 2m17s
node-python image / amend-manifest (push) Successful in 7s
2025-09-16 10:41:44 +07:00
thuanle ada6fa74f1 Dockerfile link
docker-node image / build (arm64) (push) Successful in 34s
node-python image / build (arm64) (push) Successful in 17s
node-python image / build (amd64) (push) Successful in 1m2s
node-python image / amend-manifest (push) Successful in 4s
docker-node image / build (amd64) (push) Successful in 3m35s
docker-node image / amend-manifest (push) Successful in 16s
2025-09-07 10:44:20 +07:00
7 changed files with 124 additions and 11 deletions
+4 -2
View File
@@ -2,6 +2,8 @@ name: docker-node image
on: on:
push: push:
paths:
- docker-node/**
schedule: schedule:
- cron: '0 0 * * 0' # 00:00 sáng Chủ nhật (UTC) - cron: '0 0 * * 0' # 00:00 sáng Chủ nhật (UTC)
workflow_dispatch: # Cho phép chạy tay nếu cần workflow_dispatch: # Cho phép chạy tay nếu cần
@@ -34,11 +36,11 @@ jobs:
echo "Building image ${{ env.IMAGE }} for architecture: ${{ matrix.arch }}" echo "Building image ${{ env.IMAGE }} for architecture: ${{ matrix.arch }}"
docker build \ docker build \
-f ${{ env.IMAGE }}.Dockerfile \ -f ${{ env.IMAGE }}/Dockerfile \
-t ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest \ -t ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest \
--label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ --label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
--label "commit_sha=${{ github.sha }}" \ --label "commit_sha=${{ github.sha }}" \
. ${{ env.IMAGE }}
docker push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest docker push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest
+68
View File
@@ -0,0 +1,68 @@
name: node-go image
on:
push:
paths:
- node-go/**
schedule:
- cron: '0 2 * * 0' # 02:00 sáng Chủ nhật (UTC)
workflow_dispatch:
env:
IMAGE_REPO: git.thuanle.me/public/node-go
IMAGE: node-go
jobs:
build:
strategy:
matrix:
arch:
- arm64
- amd64
runs-on: ${{ matrix.arch }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.thuanle.me
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker images
run: |
echo "Building image ${{ env.IMAGE }} for architecture: ${{ matrix.arch }}"
docker build \
-f ${{ env.IMAGE }}/Dockerfile \
-t ${{ env.IMAGE_REPO }}:${{ matrix.arch }}-latest \
--label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
--label "commit_sha=${{ github.sha }}" \
${{ env.IMAGE }}
docker push ${{ env.IMAGE_REPO }}:${{ matrix.arch }}-latest
amend-manifest:
runs-on: linux
needs: [build]
steps:
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.thuanle.me
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker manifest
run: |
echo "Delete existing manifest"
docker manifest rm ${{ env.IMAGE_REPO }}:latest || true
echo "Create new manifest"
docker manifest create ${{ env.IMAGE_REPO }}:latest \
${{ env.IMAGE_REPO }}:amd64-latest \
${{ env.IMAGE_REPO }}:arm64-latest
docker manifest push ${{ env.IMAGE_REPO }}:latest
+4 -2
View File
@@ -2,6 +2,8 @@ name: node-python image
on: on:
push: push:
paths:
- node-python/**
schedule: schedule:
- cron: '0 1 * * 0' # 01:00 sáng Chủ nhật (UTC) - cron: '0 1 * * 0' # 01:00 sáng Chủ nhật (UTC)
workflow_dispatch: # Cho phép chạy tay nếu cần workflow_dispatch: # Cho phép chạy tay nếu cần
@@ -34,11 +36,11 @@ jobs:
echo "Building image ${{ env.IMAGE }} for architecture: ${{ matrix.arch }}" echo "Building image ${{ env.IMAGE }} for architecture: ${{ matrix.arch }}"
docker build \ docker build \
-f ${{ env.IMAGE }}.Dockerfile \ -f ${{ env.IMAGE }}/Dockerfile \
-t ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest \ -t ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest \
--label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \ --label "build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
--label "commit_sha=${{ github.sha }}" \ --label "commit_sha=${{ github.sha }}" \
. ${{ env.IMAGE }}
docker push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest docker push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest
+13
View File
@@ -6,6 +6,7 @@ Kho lưu trữ này cung cấp các Docker base image cho nhiều mục đích s
- **docker-node** - **docker-node**
- `git.thuanle.me/public/base:docker-node-latest` - `git.thuanle.me/public/base:docker-node-latest`
- Dockerfile: [docker-node/Dockerfile](docker-node/Dockerfile)
- Các gói/phần mềm đã cài đặt: - Các gói/phần mềm đã cài đặt:
- **Node.js v22** kèm theo **npm****yarn** - **Node.js v22** kèm theo **npm****yarn**
- **Docker CLI** - **Docker CLI**
@@ -13,11 +14,23 @@ Kho lưu trữ này cung cấp các Docker base image cho nhiều mục đích s
- **node-python** - **node-python**
- `git.thuanle.me/public/base:node-python-latest` - `git.thuanle.me/public/base:node-python-latest`
- Dockerfile: [node-python/Dockerfile](node-python/Dockerfile)
- Các gói/phần mềm đã cài đặt: - Các gói/phần mềm đã cài đặt:
- **Node.js** kèm theo **npm****yarn** - **Node.js** kèm theo **npm****yarn**
- **git** - **git**
- **python v3.11** - **python v3.11**
- **node-go**
- `git.thuanle.me/public/node-go:latest`
- Dockerfile: [node-go/Dockerfile](node-go/Dockerfile)
- Workflow: [.gitea/workflows/node-go.yml](.gitea/workflows/node-go.yml)
- Các gói/phần mềm đã cài đặt:
- **Node.js** kèm theo **npm****yarn**
- **git**
- **Go 1.26**
- Ghi chú:
- `GO_VERSION` hiện được giữ ở mức `1.26` và sẽ nâng thủ công khi cần
## Update ## Update
- Repo được update hàng tuần. - Repo được update hàng tuần.
@@ -1,4 +1,4 @@
FROM node:22-slim FROM node:lts-slim
ENV DEBIAN_FRONTEND=noninteractive \ ENV DEBIAN_FRONTEND=noninteractive \
DOCKER_HOST=unix:///var/run/docker.sock DOCKER_HOST=unix:///var/run/docker.sock
+28
View File
@@ -0,0 +1,28 @@
FROM node:lts-slim
ARG GO_VERSION=1.26
ENV DEBIAN_FRONTEND=noninteractive \
PATH=/usr/local/go/bin:${PATH}
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends ca-certificates curl git gcc libc6-dev; \
arch="$(dpkg --print-architecture)"; \
case "${arch}" in \
amd64) go_arch='linux-amd64' ;; \
arm64) go_arch='linux-arm64' ;; \
*) echo "Unsupported architecture: ${arch}" >&2; exit 1 ;; \
esac; \
case "${GO_VERSION}" in \
*.*.*) download_go_version="${GO_VERSION}" ;; \
*.*) download_go_version="${GO_VERSION}.0" ;; \
*) echo "GO_VERSION must be major.minor or major.minor.patch: ${GO_VERSION}" >&2; exit 1 ;; \
esac; \
curl -fsSL "https://go.dev/dl/go${download_go_version}.${go_arch}.tar.gz" -o /tmp/go.tgz; \
rm -rf /usr/local/go; \
tar -C /usr/local -xzf /tmp/go.tgz; \
rm -f /tmp/go.tgz; \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
@@ -1,4 +1,4 @@
FROM node:22-slim FROM node:lts-slim
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive