Przeglądaj źródła

Initial commit

master
LER0ever 1 rok temu
rodzic
commit
3c742cbe7f
9 zmienionych plików z 71 dodań i 8 usunięć
  1. 11
    0
      .travis.yml
  2. 8
    4
      Dockerfile
  3. 41
    0
      README.md
  4. 7
    0
      acbs/ab3cfg.sh
  5. 3
    3
      aosc-dbk
  6. 1
    1
      build-aosc-dbk
  7. 0
    0
      locale/locale.gen
  8. 0
    0
      vim/EverVim.bundles
  9. 0
    0
      vim/EverVim.vimrc

+ 11
- 0
.travis.yml Wyświetl plik

@@ -0,0 +1,11 @@
language: generic
sudo: required
services:
- docker
install:
- docker version
script:
- docker build --compress --pull --tag ler0ever/aosc-dbk .
after_success:
- '[ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && docker
login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker push "ler0ever/aosc-dbk"'

+ 8
- 4
Dockerfile Wyświetl plik

@@ -4,16 +4,17 @@ ENV HOSTNAME LER0ever-AOSC-BK
ENV SHELL /bin/zsh
ENV HOME /root

# Fuck that localegen
COPY locale.gen /etc/locale.gen
# STPD localegen
COPY locale/locale.gen /etc/locale.gen

# Full upgrade
RUN apt update && \
apt full-upgrade -y

# EverVim minimal
COPY EverVim.vimrc $HOME/.EverVim.vimrc
COPY EverVim.bundles $HOME/.EverVim.bundles
# With aosc.vim plugin installed by default
COPY vim/EverVim.vimrc $HOME/.EverVim.vimrc
COPY vim/EverVim.bundles $HOME/.EverVim.bundles
RUN apt install neovim -y && \
curl -sLf https://raw.githubusercontent.com/LER0ever/EverVim/master/Boot-EverVim.sh | bash && \
echo -e "Installing EverVim Distribution ...\n" && \
@@ -25,6 +26,9 @@ RUN apt install zsh thefuck -y && \
COPY zsh/zshrc $HOME/.zshrc
COPY zsh/void-mod.zsh-theme $HOME/.oh-my-zsh/custom/themes/

# Autobuild config
COPY acbs/ab3cfg.sh /etc/autobuild/ab3cfg.sh

# Default to abbs
WORKDIR /var/lib/acbs/repo


+ 41
- 0
README.md Wyświetl plik

@@ -0,0 +1,41 @@
# Unofficial AOSC Dockerized Buildkit

This project is mainly for myself.

If you are looking for a dockerized development environment, please try [LER0ever/EvDev](https://github.com/LER0ever/EvDev)

## Features
- Minimal EverVim
- AOSC.vim plugin
- Autobuild / ABBS configuration syntax highlighting
- Code snippets for common packaging tasks
- Fugitive, git operation inside vim
- Preconfigured zsh and tmux

## Docker Hub
This docker image is automatically built every night using Travis CI and cron job.

## Notice
If you want to use this project as your packaging environment for whatever reason (which is highly unlikely),
please use the following config to create a derivative in order to get rid of my personal info (email, git identity, etc.)

```dockerfile
FROM ler0ever/aosc-dbk:latest
MAINTAINER Your Name <you@riseup.net>

# Add packages
RUN apt install \
fish

# Override dotfiles
COPY vim/EverVim.vimrc $HOME/.EverVim.vimrc

# Override ab3cfg
COPY acbs/ab3cfg.sh /etc/autobuild/ab3cfg.sh

# ...
```


## License
GPL V3

+ 7
- 0
acbs/ab3cfg.sh Wyświetl plik

@@ -0,0 +1,7 @@
#!/bin/bash
##Autobuild user config override
# See a list of options in ab3_defcfg.sh.
ABMPM=dpkg # Your main PM
ABAPMS= # Other PMs
MTER="Everette Rong <etasry@gmail.com>"
ABINSTALL=dpkg

+ 3
- 3
aosc-dbk Wyświetl plik

@@ -4,13 +4,13 @@ main() {
docker run \
-it \
--rm \
--name "LER0ever-AOSC-BK" \
--hostname "LER0ever-AOSC-BK" \
--name "LER0ever-AOSC-DBK" \
--hostname "LER0ever-AOSC-DBK" \
--volume "$PWD":/var/lib/acbs/repo \
--volume "$PWD/../pkgs/os-amd64":/os-amd64 \
--volume "$PWD/../pkgs/os-noarch":/os-noarch \
--volume ~/.ssh/id_rsa:/home/everette/.ssh/id_rsa \
local/aosc-dbk "$@"
ler0ever/aosc-dbk "$@"
}

main "$@"

+ 1
- 1
build-aosc-dbk Wyświetl plik

@@ -1,7 +1,7 @@
#!/bin/bash

main() {
docker build --compress --pull --tag local/aosc-dbk:latest .
docker build --compress --pull --tag ler0ever/aosc-dbk:latest .
}

main "$@"

locale.gen → locale/locale.gen Wyświetl plik


EverVim.bundles → vim/EverVim.bundles Wyświetl plik


EverVim.vimrc → vim/EverVim.vimrc Wyświetl plik


Ładowanie…
Anuluj
Zapisz