Browse Source

Initial commit

master
LER0ever 1 year ago
parent
commit
3c742cbe7f
9 changed files with 71 additions and 8 deletions
  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 View File

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

+ 8
- 4
Dockerfile View File

@@ -4,16 +4,17 @@ ENV HOSTNAME LER0ever-AOSC-BK
4 4
 ENV SHELL /bin/zsh
5 5
 ENV HOME /root
6 6
 
7
-# Fuck that localegen
8
-COPY locale.gen /etc/locale.gen
7
+# STPD localegen
8
+COPY locale/locale.gen /etc/locale.gen
9 9
 
10 10
 # Full upgrade
11 11
 RUN apt update && \
12 12
     apt full-upgrade -y
13 13
 
14 14
 # EverVim minimal
15
-COPY EverVim.vimrc $HOME/.EverVim.vimrc
16
-COPY EverVim.bundles $HOME/.EverVim.bundles
15
+# With aosc.vim plugin installed by default
16
+COPY vim/EverVim.vimrc $HOME/.EverVim.vimrc
17
+COPY vim/EverVim.bundles $HOME/.EverVim.bundles
17 18
 RUN apt install neovim -y && \
18 19
     curl -sLf https://raw.githubusercontent.com/LER0ever/EverVim/master/Boot-EverVim.sh | bash && \
19 20
     echo -e "Installing EverVim Distribution ...\n" && \
@@ -25,6 +26,9 @@ RUN apt install zsh thefuck -y && \
25 26
 COPY zsh/zshrc $HOME/.zshrc
26 27
 COPY zsh/void-mod.zsh-theme $HOME/.oh-my-zsh/custom/themes/
27 28
 
29
+# Autobuild config
30
+COPY acbs/ab3cfg.sh /etc/autobuild/ab3cfg.sh
31
+
28 32
 # Default to abbs
29 33
 WORKDIR /var/lib/acbs/repo
30 34
 

+ 41
- 0
README.md View File

@@ -0,0 +1,41 @@
1
+# Unofficial AOSC Dockerized Buildkit
2
+
3
+This project is mainly for myself.
4
+
5
+If you are looking for a dockerized development environment, please try [LER0ever/EvDev](https://github.com/LER0ever/EvDev)
6
+
7
+## Features
8
+- Minimal EverVim
9
+- AOSC.vim plugin
10
+    - Autobuild / ABBS configuration syntax highlighting
11
+    - Code snippets for common packaging tasks
12
+    - Fugitive, git operation inside vim
13
+- Preconfigured zsh and tmux
14
+
15
+## Docker Hub
16
+This docker image is automatically built every night using Travis CI and cron job.
17
+
18
+## Notice
19
+If you want to use this project as your packaging environment for whatever reason (which is highly unlikely),
20
+please use the following config to create a derivative in order to get rid of my personal info (email, git identity, etc.)
21
+
22
+```dockerfile
23
+FROM ler0ever/aosc-dbk:latest
24
+MAINTAINER Your Name <you@riseup.net>
25
+
26
+# Add packages
27
+RUN apt install \
28
+    fish
29
+
30
+# Override dotfiles
31
+COPY vim/EverVim.vimrc $HOME/.EverVim.vimrc
32
+
33
+# Override ab3cfg
34
+COPY acbs/ab3cfg.sh /etc/autobuild/ab3cfg.sh
35
+
36
+# ...
37
+```
38
+
39
+
40
+## License
41
+GPL V3

+ 7
- 0
acbs/ab3cfg.sh View File

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

+ 3
- 3
aosc-dbk View File

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

+ 1
- 1
build-aosc-dbk View File

@@ -1,7 +1,7 @@
1 1
 #!/bin/bash
2 2
 
3 3
 main() {
4
-  docker build --compress --pull --tag local/aosc-dbk:latest .
4
+  docker build --compress --pull --tag ler0ever/aosc-dbk:latest .
5 5
 }
6 6
 
7 7
 main "$@"

locale.gen → locale/locale.gen View File


EverVim.bundles → vim/EverVim.bundles View File


EverVim.vimrc → vim/EverVim.vimrc View File


Loading…
Cancel
Save