Skip to content

Commit

Permalink
vlmcsd
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercai authored Aug 14, 2024
1 parent f64534c commit 85571c5
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/vlmcsd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build vlmcsd Docker Image

on:
watch:
types: [started]
push:
branches: [main]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log in to DockerHub Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/[email protected]
with:
context: .
file: vlmcsd.dockerfile
platforms: linux/amd64, linux/arm64
push: true
tags: |
dextercai/vlmcsd:latest
dextercai/vlmcsd:${{ github.sha }}
# name: build udpxy

# on:
# workflow_dispatch:

# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Set up QEMU
# id: qemu
# uses: docker/setup-qemu-action@v1
# - name: checkout code
# uses: actions/checkout@v2
# - name: install buildx
# id: buildx
# uses: docker/setup-buildx-action@v1
# with:
# version: latest
# - name: login to docker hub
# run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
# - name: build the image
# run: |
# docker buildx build --push \
# --tag dextercai/udpxy:latest \
# --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 .
20 changes: 20 additions & 0 deletions vlmcsd.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM alpine:latest as builder
WORKDIR /root
RUN apk add --no-cache git make build-base && \
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git && \
cd vlmcsd/ && \
make

FROM alpine:latest
WORKDIR /root/

ENV TZ=Asia/Shanghai
RUN apk update \
&& apk add tzdata \
&& echo "${TZ}" > /etc/timezone \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& rm /var/cache/apk/*

COPY --from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
EXPOSE 1688/tcp
CMD [ "/usr/bin/vlmcsd", "-D", "-d", "-e"]

0 comments on commit 85571c5

Please sign in to comment.