-
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
6 changed files
with
96 additions
and
52 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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
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,43 @@ | ||
name: build | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 6 */6 * *' | ||
push: | ||
branches: | ||
- "master" | ||
paths: | ||
- ".github/workflows/build.yml" | ||
- "Dockerfile" | ||
- "entrypoint.sh" | ||
- "deps/Dockerfile" | ||
|
||
jobs: | ||
build-deps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Build and push deps file | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: "{{defaultContext}}:deps" | ||
file: Dockerfile | ||
push: true | ||
platforms: linux/amd64, linux/arm64, linux/s390x, linux/arm, linux/ppc64le, linux/riscv64 | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/docker-yarn-dev:deps |
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 |
---|---|---|
@@ -1,52 +1,4 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Object files | ||
*.o | ||
*.ko | ||
*.obj | ||
*.elf | ||
|
||
# Linker output | ||
*.ilk | ||
*.map | ||
*.exp | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Libraries | ||
*.lib | ||
*.a | ||
*.la | ||
*.lo | ||
|
||
# Shared objects (inc. Windows DLLs) | ||
*.dll | ||
*.so | ||
*.so.* | ||
*.dylib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
*.i*86 | ||
*.x86_64 | ||
*.hex | ||
|
||
# Debug files | ||
*.dSYM/ | ||
*.su | ||
*.idb | ||
*.pdb | ||
|
||
# Kernel Module Compile Results | ||
*.mod* | ||
*.cmd | ||
.tmp_versions/ | ||
modules.order | ||
Module.symvers | ||
Mkfile.old | ||
dkms.conf | ||
.DS_Store | ||
.test | ||
.vscode | ||
*.sh text eol=lf |
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,12 @@ | ||
FROM monius/docker-yarn-dev:deps | ||
|
||
LABEL maintainer="M0nius <[email protected]>" \ | ||
debian-version="12.8" \ | ||
org.opencontainers.image.title="Docker-Yarn-Dev" \ | ||
org.opencontainers.image.description="Modern develop environment, just in box!" \ | ||
org.opencontainers.image.authors="M0nius <[email protected]>" \ | ||
org.opencontainers.image.vendor="M0nius Tech" \ | ||
org.opencontainers.image.version="1.0.0" \ | ||
org.opencontainers.image.url="https://hub.docker.com/r/monius/docker-yarn-dev" \ | ||
org.opencontainers.image.source="https://github.com/Mon-ius/Docker-Yarn-Dev" \ | ||
org.opencontainers.image.base.name="docker.io/monius/docker-yarn-dev" |
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,11 @@ | ||
# Docker-Yarn-Dev | ||
|
||
[](https://github.com/Mon-ius/Docker-Yarn-Dev/actions?query=workflow:build) | ||
[](https://hub.docker.com/r/monius/docker-warp-socks) | ||
[](https://github.com/Mon-ius/Docker-Yarn-Dev) | ||
[](https://www.gnu.org/licenses/gpl-3.0) | ||
|
||
> Modern develop environment, with Yarn. | ||
Multi-platform: `linux/amd64`, `linux/arm64`, `linux/arm`, `linux/ppc64le`, `linux/s390x` and `linux/riscv64`; | ||
|
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 debian:12.8-slim | ||
|
||
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TZ="Europe/London" | ||
ENV PKG="sudo net-tools curl git git-lfs bzip2 gnupg2 dnsutils" | ||
ENV B1="deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm main contrib non-free non-free-firmware" | ||
ENV B2="deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware" | ||
|
||
RUN echo $B1 | tee /etc/apt/sources.list | ||
RUN echo $B2 | tee -a /etc/apt/sources.list | ||
|
||
RUN apt-get -qq update \ | ||
&& apt-get -qq dist-upgrade -y \ | ||
&& apt-get -qq install $PKG \ | ||
&& apt-get -qq autoremove --purge \ | ||
&& apt-get -qq autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /tmp/* | ||
|