-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |