Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Nov 30, 2024
1 parent 7cb2066 commit cc24324
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 52 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
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
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
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
56 changes: 4 additions & 52 deletions .gitignore
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
12 changes: 12 additions & 0 deletions Dockerfile
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"
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Docker-Yarn-Dev

[![CI Status](https://github.com/Mon-ius/Docker-Yarn-Dev/workflows/build/badge.svg)](https://github.com/Mon-ius/Docker-Yarn-Dev/actions?query=workflow:build)
[![Docker Pulls](https://flat.badgen.net/docker/pulls/monius/docker-warp-socks?icon=docker)](https://hub.docker.com/r/monius/docker-warp-socks)
[![Code Size](https://img.shields.io/github/languages/code-size/Mon-ius/Docker-Yarn-Dev)](https://github.com/Mon-ius/Docker-Yarn-Dev)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](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`;

20 changes: 20 additions & 0 deletions deps/Dockerfile
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/*

0 comments on commit cc24324

Please sign in to comment.