add minio
This commit is contained in:
parent
1ba5c25f9a
commit
4c1b51d54e
11 changed files with 87 additions and 0 deletions
|
@ -58,6 +58,7 @@ To enter in temporary filesystem
|
|||
- [mautrix-syncproxy and mautrix-wsproxy](./ressources/mautrix-syncproxy)
|
||||
- [mautrix-whatsapp](./ressources/mautrix-whatsapp)
|
||||
- [metabase](./ressources/metabase)
|
||||
- [minio](./ressources/minio)
|
||||
- [phpbb](./ressources/phpbb)
|
||||
- [roundcubemail](./ressources/roundcubemail)
|
||||
- [rss-bridge](./ressources/rss-bridge)
|
||||
|
|
19
ressources/minio/README.MD
Normal file
19
ressources/minio/README.MD
Normal file
|
@ -0,0 +1,19 @@
|
|||
#### minio
|
||||
|
||||
##### Information
|
||||
Site : https://min.io/
|
||||
|
||||
Source : https://github.com/minio/minio
|
||||
|
||||
##### Install
|
||||
|
||||
```bash
|
||||
apt install -y wget ca-certificates
|
||||
wget -qO - https://deb.lgy.fr/install.sh | bash
|
||||
apt-get update
|
||||
apt-get install -y minio
|
||||
|
||||
#edit /etc/default/minio
|
||||
|
||||
systemctl enable --now minio
|
||||
```
|
32
ressources/minio/debmaker
Executable file
32
ressources/minio/debmaker
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=RELEASE.2022-10-05T14-58-27Z
|
||||
APP=minio
|
||||
DEPOT=https://github.com/minio/minio.git
|
||||
GIT_VERSION=$VERSION
|
||||
DEB_VERSION=${VERSION:8:4}${VERSION:13:2}${VERSION:16:2}${VERSION:19:2}${VERSION:22:2}-$(date +%Y%m%d%H%M)
|
||||
DEBIAN_VERSION_CODENAME=bullseye
|
||||
IMAGE_SIZE=4
|
||||
PACKAGE_DEPENDENCY="build-essential"
|
||||
|
||||
main(){
|
||||
base_package_upgrade
|
||||
install_package_dependency
|
||||
install_go
|
||||
get_git_source
|
||||
build
|
||||
makedeb
|
||||
}
|
||||
|
||||
build() {
|
||||
cd /tmp/${APP}
|
||||
make build
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_DEB=/tmp/src/rootfs
|
||||
for tmp in $(grep MINIO_ internal/config/constants.go | cut -d '"' -f 2); do echo "#$tmp=" ; done > ${PATH_DEB}/etc/default/minio
|
||||
cp /tmp/minio/minio ${PATH_DEB}/usr/bin/minio
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||
}
|
0
ressources/minio/rootfs/DEBIAN/changelog
Normal file
0
ressources/minio/rootfs/DEBIAN/changelog
Normal file
1
ressources/minio/rootfs/DEBIAN/conffiles
Normal file
1
ressources/minio/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/default/minio
|
7
ressources/minio/rootfs/DEBIAN/control
Normal file
7
ressources/minio/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: minio
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: minio
|
4
ressources/minio/rootfs/DEBIAN/postinst
Executable file
4
ressources/minio/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
id minio&> /dev/null || useradd minio -r -s /bin/false -md /var/lib/minio
|
||||
chown minio:minio /var/lib/minio
|
BIN
ressources/minio/rootfs/etc/default/.gitkeep
Normal file
BIN
ressources/minio/rootfs/etc/default/.gitkeep
Normal file
Binary file not shown.
0
ressources/minio/rootfs/usr/bin/.gitkeep
Normal file
0
ressources/minio/rootfs/usr/bin/.gitkeep
Normal file
23
ressources/minio/rootfs/usr/lib/systemd/system/minio.service
Normal file
23
ressources/minio/rootfs/usr/lib/systemd/system/minio.service
Normal file
|
@ -0,0 +1,23 @@
|
|||
[Unit]
|
||||
Description=Minio
|
||||
ConditionFileIsExecutable=/usr/bin/minio
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
User=minio
|
||||
Group=minio
|
||||
EnvironmentFile=/etc/default/minio
|
||||
StartLimitInterval=5
|
||||
StartLimitBurst=10
|
||||
ExecStart=/usr/bin/minio server /var/lib/minio
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=strict
|
||||
WorkingDirectory=/var/lib//minio/
|
||||
ReadWriteDirectories=/var/lib/minio/
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
0
ressources/minio/rootfs/var/lib/minio/.gitkeep
Normal file
0
ressources/minio/rootfs/var/lib/minio/.gitkeep
Normal file
Loading…
Reference in a new issue