Compare commits
No commits in common. "741f0ce716e1e8483215726b5e8ca53ebdfe9ebb" and "96b8b6a448554d3e170709056f45721685b145ad" have entirely different histories.
741f0ce716
...
96b8b6a448
14 changed files with 40 additions and 29 deletions
|
@ -1,5 +1,5 @@
|
||||||
FROM domaindrivenarchitecture/dda-backup:latest
|
FROM domaindrivenarchitecture/dda-backup:1.0.9
|
||||||
|
|
||||||
# Prepare Entrypoint Script
|
# Prepare Entrypoint Script
|
||||||
ADD resources /tmp
|
ADD resources /tmp
|
||||||
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes /tmp/install.sh
|
RUN /tmp/install.sh
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -Eexo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -exo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
if test -f "/var/backups/config/config.orig"; then
|
if test -f "/var/backups/config/config.orig"; then
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -exo pipefail
|
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
file_env POSTGRES_DB
|
file_env POSTGRES_DB
|
||||||
file_env POSTGRES_PASSWORD
|
file_env POSTGRES_PASSWORD
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -Eexo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
file_env POSTGRES_DB
|
file_env POSTGRES_DB
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -Eexo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
file_env AWS_ACCESS_KEY_ID
|
file_env AWS_ACCESS_KEY_ID
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -exo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
install -m 0700 /tmp/entrypoint.sh /
|
install -m 0700 /tmp/entrypoint.sh /
|
||||||
install -m 0700 /tmp/entrypoint-start-and-wait.sh /
|
install -m 0700 /tmp/entrypoint-start-and-wait.sh /
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -exo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
function list-snapshot-files() {
|
function list-snapshot-files() {
|
||||||
if [ -z ${CERTIFICATE_FILE} ];
|
if [ -z ${CERTIFICATE_FILE} ];
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -Eexo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
local role_snapshot_id="${1:-latest}"
|
local role_snapshot_id="${1:-latest}"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eux pipefail
|
||||||
|
|
||||||
if [ ! -f "/var/backups/config/config.orig" ]; then
|
if [ ! -f "/var/backups/config/config.orig" ]; then
|
||||||
|
|
||||||
rm -f /var/backups/config/config.orig
|
rm -f /var/backups/config/config.orig
|
||||||
|
|
10
infrastructure/backup/test/Dockerfile
Normal file
10
infrastructure/backup/test/Dockerfile
Normal 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
|
|
@ -1,8 +1,8 @@
|
||||||
FROM nextcloud:27
|
FROM nextcloud:25
|
||||||
|
|
||||||
# Prepare Entrypoint Script
|
# Prepare Entrypoint Script
|
||||||
ADD resources /tmp
|
ADD resources /tmp
|
||||||
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes /tmp/install.sh
|
RUN /tmp/install.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
||||||
|
|
|
@ -1,20 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -exo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
|
apt update && apt -qqy install postgresql-client > /dev/null
|
||||||
|
|
||||||
function main() {
|
|
||||||
{
|
|
||||||
upgradeSystem
|
|
||||||
apt-get install -qqy ca-certificates curl gnupg postgresql-client
|
|
||||||
mkdir /var/data
|
mkdir /var/data
|
||||||
} > /dev/null
|
|
||||||
|
|
||||||
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
|
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/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 0544 /tmp/memory-limit.ini /usr/local/etc/php/conf.d/
|
||||||
install -m 0755 /tmp/entrypoint.sh /
|
install -m 0755 /tmp/entrypoint.sh /
|
||||||
|
|
||||||
cleanupDocker
|
|
||||||
}
|
|
||||||
|
|
||||||
source /tmp/install_functions.sh
|
|
||||||
main
|
|
10
infrastructure/nextcloud/test/Dockerfile
Normal file
10
infrastructure/nextcloud/test/Dockerfile
Normal 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
|
Loading…
Reference in a new issue