Compare commits

..

No commits in common. "741f0ce716e1e8483215726b5e8ca53ebdfe9ebb" and "96b8b6a448554d3e170709056f45721685b145ad" have entirely different histories.

14 changed files with 40 additions and 29 deletions

View file

@ -1,5 +1,5 @@
FROM domaindrivenarchitecture/dda-backup:latest
FROM domaindrivenarchitecture/dda-backup:1.0.9
# Prepare Entrypoint Script
ADD resources /tmp
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes /tmp/install.sh
RUN /tmp/install.sh

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -Eexo pipefail
set -eux pipefail
function main() {

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -exo pipefail
set -eux pipefail
if test -f "/var/backups/config/config.orig"; then

View file

@ -1,7 +1,5 @@
#!/bin/bash
set -exo pipefail
function main() {
file_env POSTGRES_DB
file_env POSTGRES_PASSWORD

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -Eexo pipefail
set -eux pipefail
function main() {
file_env POSTGRES_DB

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -Eexo pipefail
set -eux pipefail
function main() {
file_env AWS_ACCESS_KEY_ID

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -exo pipefail
set -eux pipefail
install -m 0700 /tmp/entrypoint.sh /
install -m 0700 /tmp/entrypoint-start-and-wait.sh /

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -exo pipefail
set -eux pipefail
function list-snapshot-files() {
if [ -z ${CERTIFICATE_FILE} ];

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -Eexo pipefail
set -eux pipefail
function main() {
local role_snapshot_id="${1:-latest}"

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -eux pipefail
if [ ! -f "/var/backups/config/config.orig" ]; then
rm -f /var/backups/config/config.orig

View file

@ -0,0 +1,10 @@
FROM c4k-cloud-backup
RUN apt update > /dev/null
RUN apt -yqq --no-install-recommends --yes install curl default-jre-headless > /dev/null
RUN curl -L -o /tmp/serverspec.jar https://github.com/DomainDrivenArchitecture/dda-serverspec-crate/releases/download/2.0.0/dda-serverspec-standalone.jar
COPY serverspec.edn /tmp/serverspec.edn
RUN java -jar /tmp/serverspec.jar /tmp/serverspec.edn -v

View file

@ -1,8 +1,8 @@
FROM nextcloud:27
FROM nextcloud:25
# Prepare Entrypoint Script
ADD resources /tmp
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes /tmp/install.sh
RUN /tmp/install.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]

View file

@ -1,20 +1,11 @@
#!/bin/bash
set -exo pipefail
set -eux pipefail
function main() {
{
upgradeSystem
apt-get install -qqy ca-certificates curl gnupg postgresql-client
mkdir /var/data
} > /dev/null
apt update && apt -qqy install postgresql-client > /dev/null
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
install -m 0544 /tmp/upload-max-limit.ini /usr/local/etc/php/conf.d/
install -m 0544 /tmp/memory-limit.ini /usr/local/etc/php/conf.d/
install -m 0755 /tmp/entrypoint.sh /
mkdir /var/data
cleanupDocker
}
source /tmp/install_functions.sh
main
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
install -m 0544 /tmp/upload-max-limit.ini /usr/local/etc/php/conf.d/
install -m 0544 /tmp/memory-limit.ini /usr/local/etc/php/conf.d/
install -m 0755 /tmp/entrypoint.sh /

View file

@ -0,0 +1,10 @@
FROM c4k-cloud
RUN apt-get update
RUN apt-get -yqq install --no-install-recommends --yes curl default-jre-headless
RUN curl -L -o /tmp/serverspec.jar https://github.com/DomainDrivenArchitecture/dda-serverspec-crate/releases/download/2.0.0/dda-serverspec-standalone.jar
COPY serverspec.edn /tmp/serverspec.edn
RUN java -jar /tmp/serverspec.jar /tmp/serverspec.edn -v