Author SHA1 Message Date
claudecode Bot 751de78f76 node-python: thêm build-essential (make, g++) cho node-gyp / pip build module native
node-python image / build (amd64) (push) Successful in 1m11s
node-python image / build (arm64) (push) Successful in 1m6s
node-python image / amend-manifest (push) Successful in 10s
Image node-python có python3 nhưng thiếu make/g++, nên module Node có phần native
(vd better-sqlite3) không biên dịch được khi không tải được prebuilt.
Đã thử: docker build OK; trong image, npm ci của tl-noti build better-sqlite3 từ
nguồn thành công, 55/55 test pass.
2026-11-18 08:57:08 +07:00
thuanle c641ef3600 Merge pull request 'Add node-python-docker image and spread weekly build schedule' (#11) from add-node-python-docker into main
node-python-docker image / build (arm64) (push) Successful in 14s
node-python image / build (arm64) (push) Successful in 13s
node-python-docker image / build (amd64) (push) Successful in 3m0s
node-python-docker image / amend-manifest (push) Successful in 12s
node-python image / build (amd64) (push) Successful in 4m24s
node-python image / amend-manifest (push) Successful in 18s
Reviewed-on: #11
2026-11-07 15:30:42 +07:00
claudecode Bot 89b4c47410 Add node-python-docker image and spread weekly build schedule
node-python-docker image / build (arm64) (push) Successful in 1m27s
node-python image / build (amd64) (push) Successful in 2m5s
node-python image / build (arm64) (push) Successful in 1m1s
node-python image / amend-manifest (push) Successful in 12s
node-python-docker image / build (amd64) (push) Successful in 3m56s
node-python-docker image / amend-manifest (push) Successful in 16s
- New node-python-docker image (node + python3 venv + docker CLI + git)
  for CI jobs that need all three
- Spread weekly build cron 2h apart (UTC Sunday): docker-node 00:00,
  node-python 02:00, node-go 04:00, node-python-docker 06:00
- Drop python3-distutils from node-python (removed in Debian trixie /
  Python 3.13, would break the weekly build)
2026-11-07 15:06:57 +07:00
renovatebot Bot 64ba252e49 Merge pull request 'Update dependency golangci/golangci-lint to v2.15.0' (#10) from renovate/golangci-golangci-lint-2.x into main
node-go image / build (arm64) (push) Successful in 22s
node-go image / build (amd64) (push) Successful in 6s
node-go image / amend-manifest (push) Successful in 3s
2026-10-18 00:00:16 +07:00
renovatebot Bot f25d883c66 Update dependency golangci/golangci-lint to v2.15.0
node-go image / build (arm64) (push) Successful in 2m15s
node-go image / build (amd64) (push) Successful in 6m9s
node-go image / amend-manifest (push) Successful in 12s
2026-10-17 17:00:12 +00:00
renovatebot Bot c438d72ef8 Merge pull request 'Update dependency golangci/golangci-lint to v2.14.0' (#9) from renovate/golangci-golangci-lint-2.x into main
node-go image / build (arm64) (push) Successful in 13s
node-go image / build (amd64) (push) Successful in 6m53s
node-go image / amend-manifest (push) Successful in 11s
2026-09-27 20:52:53 +07:00
renovatebot Bot d86a9cf73a Update dependency golangci/golangci-lint to v2.14.0
node-go image / build (arm64) (push) Successful in 1m52s
node-go image / build (amd64) (push) Successful in 3m21s
node-go image / amend-manifest (push) Successful in 12s
2026-09-27 13:52:48 +00:00
thuanle b00d4f285f Merge pull request 'Update docker/login-action action to v4' (#8) from renovate/docker-login-action-4.x into main
Reviewed-on: #8
2026-08-30 10:52:35 +07:00
renovatebot Bot 02d39658a2 Merge pull request 'Update dependency golangci/golangci-lint to v2.13.2' (#7) from renovate/golangci-golangci-lint-2.x into main
node-go image / build (amd64) (push) Successful in 5s
node-go image / build (arm64) (push) Successful in 13s
node-go image / amend-manifest (push) Successful in 4s
2026-08-30 00:00:16 +07:00
renovatebot Bot 387ec20381 Update docker/login-action action to v4 2026-08-29 17:00:16 +00:00
renovatebot Bot eadc66ab1e Update dependency golangci/golangci-lint to v2.13.2
node-go image / build (amd64) (push) Successful in 1m24s
node-go image / build (arm64) (push) Successful in 2m36s
node-go image / amend-manifest (push) Successful in 11s
2026-08-29 17:00:12 +00:00
thuanle 48dc44b00d Merge pull request 'Update actions/checkout action to v7' (#6) from renovate/actions-checkout-7.x into main
Reviewed-on: #6
2026-08-23 08:32:16 +07:00
renovatebot Bot ad7269b2b6 Merge pull request 'Update dependency golangci/golangci-lint to v2.13.1' (#5) from renovate/golangci-golangci-lint-2.x into main
node-go image / build (amd64) (push) Successful in 5s
node-go image / build (arm64) (push) Successful in 13s
node-go image / amend-manifest (push) Successful in 12s
2026-08-23 00:00:20 +07:00
renovatebot Bot 92d4a6853c Update actions/checkout action to v7 2026-08-22 17:00:20 +00:00
renovatebot Bot 521fb6965e Update dependency golangci/golangci-lint to v2.13.1
node-go image / build (amd64) (push) Successful in 1m15s
node-go image / build (arm64) (push) Successful in 2m21s
node-go image / amend-manifest (push) Successful in 19s
2026-08-22 17:00:14 +00:00
thuanle 364e78b608 Merge pull request 'fix(node-go): golangci-lint install.sh checksum bug → tải tarball trực tiếp' (#4) from fix/node-go-golangci-lint-checksum into main
node-go image / build (arm64) (push) Successful in 15s
node-go image / build (amd64) (push) Successful in 1m22s
node-go image / amend-manifest (push) Successful in 3s
Reviewed-on: #4
2026-08-11 15:40:47 +07:00
8 changed files with 128 additions and 15 deletions

No files matched your search

+3 -3
View File
@@ -22,10 +22,10 @@ jobs:
runs-on: ${{ matrix.arch }} runs-on: ${{ matrix.arch }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v7
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
registry: git.thuanle.me registry: git.thuanle.me
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
@@ -49,7 +49,7 @@ jobs:
needs: [build] needs: [build]
steps: steps:
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
registry: git.thuanle.me registry: git.thuanle.me
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
+4 -4
View File
@@ -5,7 +5,7 @@ on:
paths: paths:
- node-go/** - node-go/**
schedule: schedule:
- cron: '0 2 * * 0' # 02:00 sáng Chủ nhật (UTC) - cron: '0 4 * * 0' # 04:00 sáng Chủ nhật (UTC)
workflow_dispatch: workflow_dispatch:
env: env:
@@ -22,10 +22,10 @@ jobs:
runs-on: ${{ matrix.arch }} runs-on: ${{ matrix.arch }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v7
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
registry: git.thuanle.me registry: git.thuanle.me
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
@@ -49,7 +49,7 @@ jobs:
needs: [build] needs: [build]
steps: steps:
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
registry: git.thuanle.me registry: git.thuanle.me
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
+68
View File
@@ -0,0 +1,68 @@
name: node-python-docker image
on:
push:
paths:
- node-python-docker/**
schedule:
- cron: '0 6 * * 0' # 06:00 sáng Chủ nhật (UTC)
workflow_dispatch: # Cho phép chạy tay nếu cần
env:
IMAGE_BASE: git.thuanle.me/public/base
IMAGE: node-python-docker
jobs:
build:
strategy:
matrix:
arch:
- arm64
- amd64
runs-on: ${{ matrix.arch }}
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Login to Docker Registry
uses: docker/login-action@v4
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_BASE }}:${{ env.IMAGE }}-${{ 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_BASE }}:${{ env.IMAGE }}-${{ matrix.arch }}-latest
amend-manifest:
runs-on: linux
needs: [build]
steps:
- name: Login to Docker Registry
uses: docker/login-action@v4
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_BASE }}:${{ env.IMAGE }}-latest || true
echo "Create new manifest"
docker manifest create ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest \
${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-amd64-latest \
${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-arm64-latest
docker manifest push ${{ env.IMAGE_BASE }}:${{ env.IMAGE }}-latest
+4 -4
View File
@@ -5,7 +5,7 @@ on:
paths: paths:
- node-python/** - node-python/**
schedule: schedule:
- cron: '0 1 * * 0' # 01:00 sáng Chủ nhật (UTC) - cron: '0 2 * * 0' # 02: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
env: env:
@@ -22,10 +22,10 @@ jobs:
runs-on: ${{ matrix.arch }} runs-on: ${{ matrix.arch }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v7
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
registry: git.thuanle.me registry: git.thuanle.me
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
@@ -49,7 +49,7 @@ jobs:
needs: [build] needs: [build]
steps: steps:
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
registry: git.thuanle.me registry: git.thuanle.me
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
+13 -1
View File
@@ -18,7 +18,8 @@ Kho lưu trữ này cung cấp các Docker base image cho nhiều mục đích s
- 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** và **yarn** - **Node.js** kèm theo **npm** và **yarn**
- **git** - **git**
- **python v3.11** - **python v3**
- **build-essential** (make, g++) — cho node-gyp / pip build module native
- **node-go** - **node-go**
- `git.thuanle.me/public/node-go:latest` - `git.thuanle.me/public/node-go:latest`
@@ -32,6 +33,17 @@ Kho lưu trữ này cung cấp các Docker base image cho nhiều mục đích s
- Ghi chú: - Ghi chú:
- Phiên bản (`GO_VERSION`, `GOLANGCI_LINT_VERSION`) được pin trong Dockerfile; [Renovate](renovate.json) tự bump qua PR khi có release mới (auto-merge minor/patch) - Phiên bản (`GO_VERSION`, `GOLANGCI_LINT_VERSION`) được pin trong Dockerfile; [Renovate](renovate.json) tự bump qua PR khi có release mới (auto-merge minor/patch)
- **node-python-docker**
- `git.thuanle.me/public/base:node-python-docker-latest`
- Dockerfile: [node-python-docker/Dockerfile](node-python-docker/Dockerfile)
- Workflow: [.gitea/workflows/node-python-docker.yml](.gitea/workflows/node-python-docker.yml)
- Các gói/phần mềm đã cài đặt:
- **Node.js** kèm theo **npm** và **yarn**
- **git**
- **python v3** (virtualenv mặc định `/opt/venv`)
- **Docker CLI** (mount `/var/run/docker.sock` khi chạy)
## Update ## Update
- Repo được update hàng tuần. - Repo được update hàng tuần.
+1 -1
View File
@@ -1,7 +1,7 @@
FROM node:lts-slim FROM node:lts-slim
ARG GO_VERSION=1.26 ARG GO_VERSION=1.26
ARG GOLANGCI_LINT_VERSION=v2.12.2 ARG GOLANGCI_LINT_VERSION=v2.15.0
ENV DEBIAN_FRONTEND=noninteractive \ ENV DEBIAN_FRONTEND=noninteractive \
PATH=/usr/local/go/bin:${PATH} PATH=/usr/local/go/bin:${PATH}
+30
View File
@@ -0,0 +1,30 @@
FROM node:lts-slim
ENV DEBIAN_FRONTEND=noninteractive \
DOCKER_HOST=unix:///var/run/docker.sock
# Cài git + Python 3 (Debian stable) + Docker CLI (repo chính thức Docker)
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
ca-certificates curl gnupg lsb-release \
git \
python3 python3-pip python3-venv; \
install -m 0755 -d /etc/apt/keyrings; \
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc; \
chmod a+r /etc/apt/keyrings/docker.asc; \
. /etc/os-release; \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian ${VERSION_CODENAME} stable" \
> /etc/apt/sources.list.d/docker.list; \
apt-get update; \
apt-get install -y --no-install-recommends docker-ce-cli; \
rm -rf /var/lib/apt/lists/*
# Tạo virtualenv mặc định cho mọi thứ Python trong container
# => bạn dùng `python`/`pip` là vào venv này luôn
RUN python3 -m venv /opt/venv \
&& /opt/venv/bin/python -m pip install --upgrade pip setuptools wheel
ENV PATH="/opt/venv/bin:${PATH}"
WORKDIR /app
+5 -2
View File
@@ -2,12 +2,15 @@ FROM node:lts-slim
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
# Cài git + Python 3.11 (Debian stable) # Cài git + Python 3 (Debian stable) + build-essential (make, g++):
# node-gyp (module Node có phần native, vd better-sqlite3) và pip build wheel C
# cần trình biên dịch khi không tải được bản build sẵn.
RUN set -eux; \ RUN set -eux; \
apt-get update; \ apt-get update; \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
git \ git \
python3 python3-pip python3-venv python3-distutils; \ build-essential \
python3 python3-pip python3-venv; \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Tạo virtualenv mặc định cho mọi thứ Python trong container # Tạo virtualenv mặc định cho mọi thứ Python trong container