Nextcloud, Hyperling.com, LibreTranslate, and backup.sh
Enhancements
#11
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
FROM archlinux:base
|
FROM archlinux:base
|
||||||
|
|
||||||
RUN pacman -Syu --noconfirm && pacman -Sy --noconfirm git bash curl sudo which
|
RUN pacman -Syu --noconfirm && pacman -Sy --noconfirm $PACKAGES $EXTRA_ARCH
|
||||||
|
|
||||||
COPY bin/main.sh /root/main.sh
|
COPY bin/main.sh /root/main.sh
|
||||||
RUN chmod +x /root/main.sh
|
RUN chmod +x /root/main.sh
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
FROM debian:trixie
|
FROM debian:trixie
|
||||||
|
|
||||||
RUN apt update && apt dist-upgrade -y && apt install -y git bash curl sudo which
|
RUN apt update && apt dist-upgrade -y && apt install -y $PACKAGES $EXTRA_DEBIAN
|
||||||
|
|
||||||
COPY bin/main.sh /root/main.sh
|
COPY bin/main.sh /root/main.sh
|
||||||
RUN chmod +x /root/main.sh
|
RUN chmod +x /root/main.sh
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
FROM fedora:latest
|
FROM fedora:latest
|
||||||
|
|
||||||
RUN dnf upgrade --refresh -y && dnf install -y git bash curl sudo which
|
RUN dnf upgrade --refresh -y && dnf install -y $PACKAGES $EXTRA_FEDORA
|
||||||
|
|
||||||
COPY bin/main.sh /root/main.sh
|
COPY bin/main.sh /root/main.sh
|
||||||
RUN chmod +x /root/main.sh
|
RUN chmod +x /root/main.sh
|
||||||
|
@@ -4,7 +4,7 @@ FROM opensuse/tumbleweed
|
|||||||
|
|
||||||
RUN zypper -n refresh \
|
RUN zypper -n refresh \
|
||||||
&& zypper -n dist-upgrade -y \
|
&& zypper -n dist-upgrade -y \
|
||||||
&& zypper -n install -y git bash curl sudo which
|
&& zypper -n install -y $PACKAGES $EXTRA_OPENSUSE
|
||||||
|
|
||||||
COPY bin/main.sh /root/main.sh
|
COPY bin/main.sh /root/main.sh
|
||||||
RUN chmod +x /root/main.sh
|
RUN chmod +x /root/main.sh
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
FROM ubuntu:rolling
|
FROM ubuntu:rolling
|
||||||
|
|
||||||
RUN apt update && apt dist-upgrade -y && apt install -y git bash curl sudo which
|
RUN apt update && apt dist-upgrade -y && apt install -y $PACKAGES $EXTRA_UBUNTU
|
||||||
|
|
||||||
COPY bin/main.sh /root/main.sh
|
COPY bin/main.sh /root/main.sh
|
||||||
RUN chmod +x /root/main.sh
|
RUN chmod +x /root/main.sh
|
||||||
|
@@ -19,6 +19,8 @@ services:
|
|||||||
network: host
|
network: host
|
||||||
restart: no
|
restart: no
|
||||||
environment:
|
environment:
|
||||||
|
- PACKAGES=$PACKAGES
|
||||||
|
- EXTRA_ARCH=$EXTRA_ARCH
|
||||||
- REPO=$REPO
|
- REPO=$REPO
|
||||||
- BRANCH=$BRANCH
|
- BRANCH=$BRANCH
|
||||||
- EXEC=$EXEC
|
- EXEC=$EXEC
|
||||||
@@ -35,7 +37,6 @@ services:
|
|||||||
cpus: $CPU
|
cpus: $CPU
|
||||||
memory: $RAM
|
memory: $RAM
|
||||||
|
|
||||||
|
|
||||||
pt-debian:
|
pt-debian:
|
||||||
container_name: pt-debian
|
container_name: pt-debian
|
||||||
build:
|
build:
|
||||||
@@ -44,6 +45,8 @@ services:
|
|||||||
network: host
|
network: host
|
||||||
restart: no
|
restart: no
|
||||||
environment:
|
environment:
|
||||||
|
- PACKAGES=$PACKAGES
|
||||||
|
- EXTRA_DEBIAN=$EXTRA_DEBIAN
|
||||||
- REPO=$REPO
|
- REPO=$REPO
|
||||||
- BRANCH=$BRANCH
|
- BRANCH=$BRANCH
|
||||||
- EXEC=$EXEC
|
- EXEC=$EXEC
|
||||||
@@ -60,32 +63,6 @@ services:
|
|||||||
cpus: $CPU
|
cpus: $CPU
|
||||||
memory: $RAM
|
memory: $RAM
|
||||||
|
|
||||||
|
|
||||||
pt-ubuntu:
|
|
||||||
container_name: pt-ubuntu
|
|
||||||
build:
|
|
||||||
context: ./
|
|
||||||
dockerfile: Dockerfiles/ubuntu
|
|
||||||
network: host
|
|
||||||
restart: no
|
|
||||||
environment:
|
|
||||||
- REPO=$REPO
|
|
||||||
- BRANCH=$BRANCH
|
|
||||||
- EXEC=$EXEC
|
|
||||||
volumes:
|
|
||||||
- type: volume
|
|
||||||
source: pt-storage
|
|
||||||
target: /root
|
|
||||||
volume:
|
|
||||||
subpath: ubuntu
|
|
||||||
deploy:
|
|
||||||
mode: global
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpus: $CPU
|
|
||||||
memory: $RAM
|
|
||||||
|
|
||||||
|
|
||||||
pt-fedora:
|
pt-fedora:
|
||||||
container_name: pt-fedora
|
container_name: pt-fedora
|
||||||
build:
|
build:
|
||||||
@@ -94,6 +71,8 @@ services:
|
|||||||
network: host
|
network: host
|
||||||
restart: no
|
restart: no
|
||||||
environment:
|
environment:
|
||||||
|
- PACKAGES=$PACKAGES
|
||||||
|
- EXTRA_FEDORA=$EXTRA_FEDORA
|
||||||
- REPO=$REPO
|
- REPO=$REPO
|
||||||
- BRANCH=$BRANCH
|
- BRANCH=$BRANCH
|
||||||
- EXEC=$EXEC
|
- EXEC=$EXEC
|
||||||
@@ -110,7 +89,6 @@ services:
|
|||||||
cpus: $CPU
|
cpus: $CPU
|
||||||
memory: $RAM
|
memory: $RAM
|
||||||
|
|
||||||
|
|
||||||
pt-opensuse:
|
pt-opensuse:
|
||||||
container_name: pt-opensuse
|
container_name: pt-opensuse
|
||||||
build:
|
build:
|
||||||
@@ -119,6 +97,8 @@ services:
|
|||||||
network: host
|
network: host
|
||||||
restart: no
|
restart: no
|
||||||
environment:
|
environment:
|
||||||
|
- PACKAGES=$PACKAGES
|
||||||
|
- EXTRA_OPENSUSE=$EXTRA_OPENSUSE
|
||||||
- REPO=$REPO
|
- REPO=$REPO
|
||||||
- BRANCH=$BRANCH
|
- BRANCH=$BRANCH
|
||||||
- EXEC=$EXEC
|
- EXEC=$EXEC
|
||||||
@@ -134,3 +114,29 @@ services:
|
|||||||
limits:
|
limits:
|
||||||
cpus: $CPU
|
cpus: $CPU
|
||||||
memory: $RAM
|
memory: $RAM
|
||||||
|
|
||||||
|
pt-ubuntu:
|
||||||
|
container_name: pt-ubuntu
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
dockerfile: Dockerfiles/ubuntu
|
||||||
|
network: host
|
||||||
|
restart: no
|
||||||
|
environment:
|
||||||
|
- PACKAGES=$PACKAGES
|
||||||
|
- EXTRA_UBUNTU=$EXTRA_UBUNTU
|
||||||
|
- REPO=$REPO
|
||||||
|
- BRANCH=$BRANCH
|
||||||
|
- EXEC=$EXEC
|
||||||
|
volumes:
|
||||||
|
- type: volume
|
||||||
|
source: pt-storage
|
||||||
|
target: /root
|
||||||
|
volume:
|
||||||
|
subpath: ubuntu
|
||||||
|
deploy:
|
||||||
|
mode: global
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: $CPU
|
||||||
|
memory: $RAM
|
||||||
|
@@ -10,6 +10,14 @@ RAM=0.2G
|
|||||||
#STORAGE_DIR=../../Volumes/ProvisionTests
|
#STORAGE_DIR=../../Volumes/ProvisionTests
|
||||||
PT_STORAGE_DIR=/tmp/ProvisionTests
|
PT_STORAGE_DIR=/tmp/ProvisionTests
|
||||||
|
|
||||||
|
## Packages
|
||||||
|
PACKAGES="git bash curl sudo which"
|
||||||
|
EXTRA_ARCH=""
|
||||||
|
EXTRA_DEBIAN=""
|
||||||
|
EXTRA_FEDORA=""
|
||||||
|
EXTRA_OPENSUSE=""
|
||||||
|
EXTRA_UBUNTU=""
|
||||||
|
|
||||||
## Script
|
## Script
|
||||||
REPO=https://git.hyperling.com/me/env-ansible
|
REPO=https://git.hyperling.com/me/env-ansible
|
||||||
BRANCH=dev
|
BRANCH=dev
|
||||||
|
Reference in New Issue
Block a user