Skip to content

Commit

Permalink
release v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bumu committed Dec 15, 2023
1 parent ca140c9 commit 4080ba7
Show file tree
Hide file tree
Showing 38 changed files with 348 additions and 255 deletions.
File renamed without changes.
41 changes: 41 additions & 0 deletions apkbuild/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# LABEL Maintainer="airdb team <[email protected]>" Description="https://github.com/airdb"

SERVICE := apkbuild

all: help

help: ## Show help messages
@echo "Container - ${SERVICE} "
@echo
@echo "Usage:\tmake COMMAND"
@echo
@echo "Commands:"
@sed -n '/##/s/\(.*\):.*##/ \1#/p' ${MAKEFILE_LIST} | grep -v "MAKEFILE_LIST" | column -t -c 2 -s '#'

up: ## Create and start containers
docker compose up -d --force-recreate
#docker compose up -d --build --force-recreate

build: ## Build or rebuild services
docker compose build --no-cache

start: ## Start services
docker compose start ${SERVICE}

stop: ## Stop services
docker compose stop ${SERVICE}

restart: ## Restart containers
docker compose restart ${SERVICE}

ps: ## List containers
docker compose ps

log logs: ## View output from containers
docker compose logs ${SERVICE}

rm: stop ## Stop and remove stopped service containers
docker compose rm ${SERVICE}

bash: ## Execute a command in a running container
docker compose exec ${SERVICE} bash
8 changes: 8 additions & 0 deletions apkbuild/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Alpine

最小的 linux, 可以用来构建最小的 docker image.


Make customized Alpine Linux rootfs (base image) for containers

- https://github.com/alpinelinux/alpine-make-rootfs
18 changes: 18 additions & 0 deletions apkbuild/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'

services:
apkbuild:
container_name: apkbuild
image: 'airdb/apkbuild:latest'
platform: linux/amd64
working_dir: /srv/
build:
context: .
dockerfile: Dockerfile
command: sleep 3600
volumes:
- ./:/srv/apkbuild
ports:
- "8080:8080"
environment:
- env=test
1 change: 0 additions & 1 deletion asp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
docker pull mcr.microsoft.com/dotnet/aspnet
WORKDIR /app
Expand Down
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions base/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Base image


## 安装包
gcc g++ make

net-tools iproute2 iputils-ping telnet nmap

ca-certificates

curl git less vim
20 changes: 0 additions & 20 deletions dockerfile/Dockerfile.alpine.base

This file was deleted.

46 changes: 0 additions & 46 deletions dockerfile/Dockerfile.alpine.github

This file was deleted.

56 changes: 0 additions & 56 deletions dockerfile/Dockerfile.debian.github

This file was deleted.

46 changes: 0 additions & 46 deletions dockerfile/Dockerfile.debian.lint

This file was deleted.

13 changes: 0 additions & 13 deletions dockerfile/Dockerfile.debian.webhook

This file was deleted.

9 changes: 0 additions & 9 deletions dockerfile/Dockerfile.ubuntu.base

This file was deleted.

27 changes: 0 additions & 27 deletions dockerfile/Dockerfile.ubuntu.vue

This file was deleted.

19 changes: 0 additions & 19 deletions fpm/Makefile

This file was deleted.

35 changes: 35 additions & 0 deletions fpmbuild/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM ubuntu

# Usage:
# docker build -t airdb/fpm . -f fpm.dockerfile
# docker run --rm -v $(pwd):/srv airdb/fpm

ENV DEBIAN_FRONTEND noninteractive

MAINTAINER https://github.com/airdb

RUN echo "export VISIBLE=now" >> /etc/profile

ENV RUNNING_CONTEXT "docker"
ENV echo "export RUNNING_CONTEXT=docker" >> /etc/profile

RUN echo "export PS1='[\H \W]\\$ '" >> /root/.profile

WORKDIR /srv

RUN apt update && apt-get install -y sudo vim libgcrypt-dev libgd-dev ruby ruby-dev rubygems-integration build-essential

#RUN gem install --no-ri --no-rdoc fpm
RUN gem install fpm

CMD fpm -s dir \
-t deb \
-a amd64 \
-n airdb \
-v 1.0.0 \
-m 'Dean CN <[email protected]>' \
--url 'https://www.airdb.com' \
--description 'Hello airdb' \
--before-install ./output/before-install.sh \
--after-install ./output/after-install.sh \
-C ./output/
Loading

0 comments on commit 4080ba7

Please sign in to comment.