init
This commit is contained in:
commit
1deee3d43a
10 changed files with 95 additions and 0 deletions
10
.gitattributes
vendored
Normal file
10
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
*secret filter=git-crypt diff=git-crypt
|
||||
*secrets filter=git-crypt diff=git-crypt
|
||||
*secret.tf filter=git-crypt diff=git-crypt
|
||||
*secrets.tf filter=git-crypt diff=git-crypt
|
||||
*secret.auto.tfvars filter=git-crypt diff=git-crypt
|
||||
*secrets.auto.tfvars filter=git-crypt diff=git-crypt
|
||||
*tfbackend filter=git-crypt diff=git-crypt
|
||||
*.private filter=git-crypt diff=git-crypt
|
||||
secrets.mk filter=git-crypt diff=git-crypt
|
||||
.gitattributes !filter !diff
|
||||
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
include:
|
||||
- project: 'sys/ci/templates'
|
||||
file: '/build.yml'
|
||||
- project: 'sys/ci/templates'
|
||||
file: '/tests.yml'
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- release
|
||||
- deploy
|
||||
|
||||
docker:build:
|
||||
extends: .build
|
||||
stage: build
|
||||
script:
|
||||
- build_image
|
||||
|
||||
docker:release:
|
||||
extends: .build
|
||||
stage: release
|
||||
script:
|
||||
- release_latest
|
||||
only:
|
||||
- master
|
||||
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
FROM phusion/baseimage:noble-1.0.2
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get upgrade -y
|
||||
RUN apt-get install -y neovim net-tools iputils-ping iputils-tracepath traceroute curl wget git make gzip
|
||||
14
Makefile
Normal file
14
Makefile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
.PHONY: build shell
|
||||
|
||||
DOCKER_IMAGE := dr.dnix.de/baseimage
|
||||
|
||||
all: build push
|
||||
|
||||
build:
|
||||
docker build -t $(DOCKER_IMAGE) .
|
||||
|
||||
push:
|
||||
docker push $(DOCKER_IMAGE)
|
||||
|
||||
shell: build
|
||||
docker run --rm -it $(DOCKER_IMAGE) bash
|
||||
18
README.md
Normal file
18
README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# baseimage
|
||||
|
||||
Basically a docker baseimage as a base for basic needs.
|
||||
|
||||
Use this! Don't use something else.
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
FROM dr.dnix.de/baseimage
|
||||
|
||||
...
|
||||
...
|
||||
... your Dockerfile shit here
|
||||
```
|
||||
|
||||
Put a `run` (or whatever you want to call it) script oder executyble inside of /etc/my_init/, which is your entrypoint to do things.
|
||||
You can put multiple scripts there.
|
||||
3
root/docker-entrypoint.sh
Executable file
3
root/docker-entrypoint.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
echo "Hi, I'm your /docker-entrypoint.sh. You have to make me work by shaping me tenderly!"
|
||||
exit 0
|
||||
3
root/docker-entrypoint.sh~
Executable file
3
root/docker-entrypoint.sh~
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
echo "You have to make me work by shaping me tenderly!"
|
||||
exit 0
|
||||
3
root/entrypoint.sh~
Executable file
3
root/entrypoint.sh~
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
echo "Hello World!"
|
||||
exit 0
|
||||
12
root/etc/rsyslog.conf~
Normal file
12
root/etc/rsyslog.conf~
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
$ModLoad immark.so # provides --MARK-- message capability
|
||||
$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command)
|
||||
|
||||
# default permissions for all log files.
|
||||
$FileOwner root
|
||||
$FileGroup adm
|
||||
$FileCreateMode 0640
|
||||
$DirCreateMode 0755
|
||||
$Umask 0022
|
||||
|
||||
#*.info /dev/stdout
|
||||
#mail.* /dev/stdout
|
||||
2
start
Executable file
2
start
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/bin/supervisord
|
||||
Loading…
Add table
Add a link
Reference in a new issue