Compare commits
No commits in common. "8e261a7a7b07663be3eb212eaf7fbf32c49f2d4f" and "e6e63051aefad2d08b21965dcaf89998cb5b219d" have entirely different histories.
8e261a7a7b
...
e6e63051ae
12 changed files with 37 additions and 30 deletions
|
@ -6,7 +6,7 @@ stages:
|
||||||
- image
|
- image
|
||||||
|
|
||||||
.img: &img
|
.img: &img
|
||||||
image: "domaindrivenarchitecture/ddadevops-dind:4.10.5"
|
image: "domaindrivenarchitecture/ddadevops-dind:4.7.4"
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -16,7 +16,7 @@ stages:
|
||||||
- export IMAGE_TAG=$CI_COMMIT_TAG
|
- export IMAGE_TAG=$CI_COMMIT_TAG
|
||||||
|
|
||||||
.cljs-job: &cljs
|
.cljs-job: &cljs
|
||||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.5"
|
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.7.4"
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
paths:
|
paths:
|
||||||
|
@ -29,7 +29,7 @@ stages:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
.clj-job: &clj
|
.clj-job: &clj
|
||||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.5"
|
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.7.4"
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM domaindrivenarchitecture/dda-backup:latest
|
FROM domaindrivenarchitecture/dda-backup:1.0.9
|
||||||
|
|
||||||
# Prepare Entrypoint Script
|
# Prepare Entrypoint Script
|
||||||
ADD resources /tmp
|
ADD resources /tmp
|
||||||
|
|
|
@ -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,7 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -Eexo pipefail
|
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
create-pg-pass
|
create-pg-pass
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -Eexo pipefail
|
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
create-pg-pass
|
create-pg-pass
|
||||||
|
|
||||||
|
|
|
@ -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,21 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -exo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
function main()
|
apt-get update > /dev/null;
|
||||||
{
|
|
||||||
upgradeSystem
|
|
||||||
|
|
||||||
install -m 0700 /tmp/entrypoint.sh /
|
|
||||||
install -m 0700 /tmp/entrypoint-start-and-wait.sh /
|
|
||||||
|
|
||||||
install -m 0700 /tmp/init.sh /usr/local/bin/
|
install -m 0700 /tmp/entrypoint.sh /
|
||||||
install -m 0700 /tmp/backup.sh /usr/local/bin/
|
install -m 0700 /tmp/entrypoint-start-and-wait.sh /
|
||||||
install -m 0700 /tmp/restore.sh /usr/local/bin/
|
|
||||||
install -m 0700 /tmp/restic-snapshots.sh /usr/local/bin/
|
|
||||||
|
|
||||||
cleanupDocker
|
install -m 0700 /tmp/init.sh /usr/local/bin/
|
||||||
} > /dev/null
|
install -m 0700 /tmp/backup.sh /usr/local/bin/
|
||||||
|
install -m 0700 /tmp/restore.sh /usr/local/bin/
|
||||||
source /tmp/install_functions_debian.sh
|
install -m 0700 /tmp/restic-snapshots.sh /usr/local/bin/
|
||||||
DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes main
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -exo 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 -Eexo pipefail
|
set -eux pipefail
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
|
||||||
|
|
11
infrastructure/backup/test/Dockerfile
Normal file
11
infrastructure/backup/test/Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
FROM c4k-forgejo-backup
|
||||||
|
|
||||||
|
RUN apt update
|
||||||
|
RUN apt -yqq --no-install-recommends --yes install 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
|
|
@ -15,8 +15,6 @@ ENV FORGEJO_BRANCH "forgejo-federated-star"
|
||||||
#ENV FORGEJO_BRANCH "libreplanet-federation-demo"
|
#ENV FORGEJO_BRANCH "libreplanet-federation-demo"
|
||||||
|
|
||||||
#Build deps
|
#Build deps
|
||||||
RUN apk -U upgrade
|
|
||||||
RUN apk cache clean
|
|
||||||
RUN apk --no-cache add build-base git nodejs npm
|
RUN apk --no-cache add build-base git nodejs npm
|
||||||
|
|
||||||
#Setup repo
|
#Setup repo
|
||||||
|
|
10
infrastructure/federated/test/Dockerfile
Normal file
10
infrastructure/federated/test/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
FROM c4k-forgejo-federated
|
||||||
|
|
||||||
|
RUN apk --no-cache add openjdk11-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