diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 3a28d0c..6c455c7 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -4,8 +4,51 @@ on:
push:
branches:
- master
+# on: [push] # for testing while developing
jobs:
+ ##############################################################################
+ # JOB: DOCKER BUILD COMMUNITY NEO4J ##########################################
+ ##############################################################################
+ build_branded_neo4j:
+ name: Docker Build Branded - Neo4j Community
+ runs-on: ubuntu-latest
+ #needs: [nothing]
+ steps:
+ ##########################################################################
+ # CHECKOUT CODE ##########################################################
+ ##########################################################################
+ - name: Checkout code
+ uses: actions/checkout@v2
+ ##########################################################################
+ # SET ENVS ###############################################################
+ ##########################################################################
+ - name: ENV - VERSION
+ run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
+ - name: ENV - BUILD_DATE
+ run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
+ - name: ENV - OCELOT_DOCKER_VERSION_TAG
+ run: echo "OCELOT_DOCKER_VERSION_TAG=$(node -p -e "require('./package.json').ocelotDockerVersionTag")" >> $GITHUB_ENV
+ - name: ENV - DOCKER_ORGANISATION
+ run: echo "DOCKER_ORGANISATION=$(node -p -e "require('./package.json').dockerOrganisation")" >> $GITHUB_ENV
+ # this is oriented on the node docker version tag "node:12.19.0-alpine3.10" and looks like "app-branded:1.0.2-3-ocelot.social1.0.2-79"
+ - name: ENV - BUILD_VERSION
+ run: echo "BUILD_VERSION=${VERSION}-${GITHUB_RUN_NUMBER}-ocelot.social${OCELOT_DOCKER_VERSION_TAG}" >> $GITHUB_ENV
+ - name: ENV - BUILD_COMMIT
+ run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
+ ##########################################################################
+ # BUILD NEO4J DOCKER IMAGE (community-branded) ###########################
+ ##########################################################################
+ - name: Neo4j | Build `community-branded` image
+ run: |
+ docker build --target community-branded -t "${DOCKER_ORGANISATION}/neo4j-community-branded:latest" -t "${DOCKER_ORGANISATION}/neo4j-community-branded:${VERSION}" -t "${DOCKER_ORGANISATION}/neo4j-community-branded:${BUILD_VERSION}" -f docker/neo4j.Dockerfile --build-arg APP_IMAGE=ocelotsocialnetwork/neo4j:${OCELOT_DOCKER_VERSION_TAG} .
+ docker save "${DOCKER_ORGANISATION}/neo4j-community-branded" > /tmp/neo4j-community-branded.tar
+ - name: Upload Artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: docker-neo4j-community-branded
+ path: /tmp/neo4j-community-branded.tar
+
##############################################################################
# JOB: DOCKER BUILD BRANDED BACKEND ##########################################
##############################################################################
@@ -26,8 +69,13 @@ jobs:
run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
- name: ENV - BUILD_DATE
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
+ - name: ENV - OCELOT_DOCKER_VERSION_TAG
+ run: echo "OCELOT_DOCKER_VERSION_TAG=$(node -p -e "require('./package.json').ocelotDockerVersionTag")" >> $GITHUB_ENV
+ - name: ENV - DOCKER_ORGANISATION
+ run: echo "DOCKER_ORGANISATION=$(node -p -e "require('./package.json').dockerOrganisation")" >> $GITHUB_ENV
+ # this is oriented on the node docker version tag "node:12.19.0-alpine3.10" and looks like "app-branded:1.0.2-3-ocelot.social1.0.2-79"
- name: ENV - BUILD_VERSION
- run: echo "BUILD_VERSION=${VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
+ run: echo "BUILD_VERSION=${VERSION}-${GITHUB_RUN_NUMBER}-ocelot.social${OCELOT_DOCKER_VERSION_TAG}" >> $GITHUB_ENV
- name: ENV - BUILD_COMMIT
run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
##########################################################################
@@ -35,8 +83,8 @@ jobs:
##########################################################################
- name: backend | Build `branded` image
run: |
- docker build --target branded -t "ocelotsocialnetwork/backend-branded:latest" -t "ocelotsocialnetwork/backend-branded:${VERSION}" -t "ocelotsocialnetwork/backend-branded:${BUILD_VERSION}" -f docker/backend.Dockerfile .
- docker save "ocelotsocialnetwork/backend-branded" > /tmp/backend-branded.tar
+ docker build --target branded -t "${DOCKER_ORGANISATION}/backend-branded:latest" -t "${DOCKER_ORGANISATION}/backend-branded:${VERSION}" -t "${DOCKER_ORGANISATION}/backend-branded:${BUILD_VERSION}" -f docker/backend.Dockerfile --build-arg APP_IMAGE=ocelotsocialnetwork/backend:${OCELOT_DOCKER_VERSION_TAG} .
+ docker save "${DOCKER_ORGANISATION}/backend-branded" > /tmp/backend-branded.tar
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
@@ -63,8 +111,13 @@ jobs:
run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
- name: ENV - BUILD_DATE
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
+ - name: ENV - OCELOT_DOCKER_VERSION_TAG
+ run: echo "OCELOT_DOCKER_VERSION_TAG=$(node -p -e "require('./package.json').ocelotDockerVersionTag")" >> $GITHUB_ENV
+ - name: ENV - DOCKER_ORGANISATION
+ run: echo "DOCKER_ORGANISATION=$(node -p -e "require('./package.json').dockerOrganisation")" >> $GITHUB_ENV
+ # this is oriented on the node docker version tag "node:12.19.0-alpine3.10" and looks like "app-branded:1.0.2-3-ocelot.social1.0.2-79"
- name: ENV - BUILD_VERSION
- run: echo "BUILD_VERSION=${VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
+ run: echo "BUILD_VERSION=${VERSION}-${GITHUB_RUN_NUMBER}-ocelot.social${OCELOT_DOCKER_VERSION_TAG}" >> $GITHUB_ENV
- name: ENV - BUILD_COMMIT
run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
##########################################################################
@@ -72,8 +125,8 @@ jobs:
##########################################################################
- name: webapp | Build `branded` image
run: |
- docker build --target branded -t "ocelotsocialnetwork/webapp-branded:latest" -t "ocelotsocialnetwork/webapp-branded:${VERSION}" -t "ocelotsocialnetwork/webapp-branded:${BUILD_VERSION}" -f docker/webapp.Dockerfile .
- docker save "ocelotsocialnetwork/webapp-branded" > /tmp/webapp-branded.tar
+ docker build --target branded -t "${DOCKER_ORGANISATION}/webapp-branded:latest" -t "${DOCKER_ORGANISATION}/webapp-branded:${VERSION}" -t "${DOCKER_ORGANISATION}/webapp-branded:${BUILD_VERSION}" -f docker/webapp.Dockerfile --build-arg APP_IMAGE=ocelotsocialnetwork/webapp:${OCELOT_DOCKER_VERSION_TAG} .
+ docker save "${DOCKER_ORGANISATION}/webapp-branded" > /tmp/webapp-branded.tar
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
@@ -100,8 +153,13 @@ jobs:
run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
- name: ENV - BUILD_DATE
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
+ - name: ENV - OCELOT_DOCKER_VERSION_TAG
+ run: echo "OCELOT_DOCKER_VERSION_TAG=$(node -p -e "require('./package.json').ocelotDockerVersionTag")" >> $GITHUB_ENV
+ - name: ENV - DOCKER_ORGANISATION
+ run: echo "DOCKER_ORGANISATION=$(node -p -e "require('./package.json').dockerOrganisation")" >> $GITHUB_ENV
+ # this is oriented on the node docker version tag "node:12.19.0-alpine3.10" and looks like "app-branded:1.0.2-3-ocelot.social1.0.2-79"
- name: ENV - BUILD_VERSION
- run: echo "BUILD_VERSION=${VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
+ run: echo "BUILD_VERSION=${VERSION}-${GITHUB_RUN_NUMBER}-ocelot.social${OCELOT_DOCKER_VERSION_TAG}" >> $GITHUB_ENV
- name: ENV - BUILD_COMMIT
run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
##########################################################################
@@ -109,8 +167,8 @@ jobs:
##########################################################################
- name: maintenance | Build `branded` image
run: |
- docker build --target branded -t "ocelotsocialnetwork/maintenance-branded:latest" -t "ocelotsocialnetwork/maintenance-branded:${VERSION}" -t "ocelotsocialnetwork/maintenance-branded:${BUILD_VERSION}" -f docker/maintenance.Dockerfile .
- docker save "ocelotsocialnetwork/maintenance-branded" > /tmp/maintenance-branded.tar
+ docker build --target branded -t "${DOCKER_ORGANISATION}/maintenance-branded:latest" -t "${DOCKER_ORGANISATION}/maintenance-branded:${VERSION}" -t "${DOCKER_ORGANISATION}/maintenance-branded:${BUILD_VERSION}" -f docker/maintenance.Dockerfile --build-arg APP_IMAGE=ocelotsocialnetwork/maintenance:${OCELOT_DOCKER_VERSION_TAG} .
+ docker save "${DOCKER_ORGANISATION}/maintenance-branded" > /tmp/maintenance-branded.tar
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
@@ -123,7 +181,7 @@ jobs:
upload_to_dockerhub:
name: Upload to Dockerhub
runs-on: ubuntu-latest
- needs: [build_branded_backend,build_branded_webapp,build_branded_maintenance]
+ needs: [build_branded_neo4j,build_branded_backend,build_branded_webapp,build_branded_maintenance]
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -134,8 +192,33 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
##########################################################################
+ # SET ENVS ###############################################################
+ ##########################################################################
+ - name: ENV - VERSION
+ run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
+ - name: ENV - BUILD_DATE
+ run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
+ - name: ENV - OCELOT_DOCKER_VERSION_TAG
+ run: echo "OCELOT_DOCKER_VERSION_TAG=$(node -p -e "require('./package.json').ocelotDockerVersionTag")" >> $GITHUB_ENV
+ - name: ENV - DOCKER_ORGANISATION
+ run: echo "DOCKER_ORGANISATION=$(node -p -e "require('./package.json').dockerOrganisation")" >> $GITHUB_ENV
+ # this is oriented on the node docker version tag "node:12.19.0-alpine3.10" and looks like "app-branded:1.0.2-3-ocelot.social1.0.2-79"
+ - name: ENV - BUILD_VERSION
+ run: echo "BUILD_VERSION=${VERSION}-${GITHUB_RUN_NUMBER}-ocelot.social${OCELOT_DOCKER_VERSION_TAG}" >> $GITHUB_ENV
+ - name: ENV - BUILD_COMMIT
+ run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
+ ##########################################################################
# DOWNLOAD DOCKER IMAGES #################################################
##########################################################################
+ # Neo4j Community
+ - name: Download Docker Image (Neo4j Community)
+ uses: actions/download-artifact@v2
+ with:
+ name: docker-neo4j-community-branded
+ path: /tmp
+ - name: Load Docker Image
+ run: docker load < /tmp/neo4j-community-branded.tar
+ # Backend
- name: Download Docker Image (Backend)
uses: actions/download-artifact@v2
with:
@@ -143,13 +226,15 @@ jobs:
path: /tmp
- name: Load Docker Image
run: docker load < /tmp/backend-branded.tar
- - name: Download Docker Image (WebApp)
+ # Webapp
+ - name: Download Docker Image (Webapp)
uses: actions/download-artifact@v2
with:
name: docker-webapp-branded
path: /tmp
- name: Load Docker Image
run: docker load < /tmp/webapp-branded.tar
+ # Maintenance
- name: Download Docker Image (Maintenance)
uses: actions/download-artifact@v2
with:
@@ -162,12 +247,14 @@ jobs:
##########################################################################
- name: login to dockerhub
run: echo "${DOCKERHUB_TOKEN}" | docker login -u "${DOCKERHUB_USERNAME}" --password-stdin
- - name: Push backend
- run: docker push --all-tags ocelotsocialnetwork/backend-branded
- - name: Push webapp
- run: docker push --all-tags ocelotsocialnetwork/webapp-branded
- - name: Push maintenance
- run: docker push --all-tags ocelotsocialnetwork/maintenance-branded
+ - name: Push Neo4j Community
+ run: docker push --all-tags ${DOCKER_ORGANISATION}/neo4j-community-branded
+ - name: Push Backend
+ run: docker push --all-tags ${DOCKER_ORGANISATION}/backend-branded
+ - name: Push Webapp
+ run: docker push --all-tags ${DOCKER_ORGANISATION}/webapp-branded
+ - name: Push Maintenance
+ run: docker push --all-tags ${DOCKER_ORGANISATION}/maintenance-branded
##############################################################################
# JOB: GITHUB TAG LATEST VERSION #############################################
@@ -191,8 +278,13 @@ jobs:
run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
- name: ENV - BUILD_DATE
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
+ - name: ENV - OCELOT_DOCKER_VERSION_TAG
+ run: echo "OCELOT_DOCKER_VERSION_TAG=$(node -p -e "require('./package.json').ocelotDockerVersionTag")" >> $GITHUB_ENV
+ - name: ENV - DOCKER_ORGANISATION
+ run: echo "DOCKER_ORGANISATION=$(node -p -e "require('./package.json').dockerOrganisation")" >> $GITHUB_ENV
+ # this is oriented on the node docker version tag "node:12.19.0-alpine3.10" and looks like "app-branded:1.0.2-3-ocelot.social1.0.2-79"
- name: ENV - BUILD_VERSION
- run: echo "BUILD_VERSION=${VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
+ run: echo "BUILD_VERSION=${VERSION}-${GITHUB_RUN_NUMBER}-ocelot.social${OCELOT_DOCKER_VERSION_TAG}" >> $GITHUB_ENV
- name: ENV - BUILD_COMMIT
run: echo "BUILD_COMMIT=${GITHUB_SHA}" >> $GITHUB_ENV
##########################################################################
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e43b0f9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.DS_Store
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..de16611
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,11 @@
+# LICENSE
+
+MIT License
+
+Copyright \(c\) 2021 by the [ocelot.social community](https://github.com/Ocelot-Social-Community)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files \(the "Software"\), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..253130c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,66 @@
+# Ocelot-Social-Deploy-Rebranding
+
+This repository is an in use template to rebrand, configure, and deploy [ocelot.social](https://github.com/Ocelot-Social-Community/Ocelot-Social) networks.
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Usage
+
+Fork this repository and configure as well as rebrand it for your own [ocelot.social](https://github.com/Ocelot-Social-Community/Ocelot-Social) network.
+
+- [Configure And Rebrand](https://github.com/Ocelot-Social-Community/Ocelot-Social-Deploy-Rebranding/tree/master/branding)
+
+Afterwards you can [deploy](deployment/README.md) it on your server:
+
+- [Kubernetes with Helm](deployment/kubernetes/README.md)
+
+## Developer Chat
+
+Join our friendly open-source community on [Discord](https://discordapp.com/invite/DFSjPaX) :heart_eyes_cat:
+Just introduce yourself at `#introduce-yourself` and mention `@@Mentor` to get you onboard :neckbeard:
+Check out the [contribution guideline](./CONTRIBUTING.md), too!
+
+We give write permissions to every developer who asks for it. Just text us on
+[Discord](https://discord.gg/6ub73U3).
+
+## Technology Stack
+
+- [Kubernetes](https://kubernetes.io)
+- [Helm](https://helm.sh)
+- [Docker](https://www.docker.com)
+
+
+
+## License
+
+See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).
diff --git a/branding/static/img/custom/password-reset.svg b/branding/static/img/custom/password-reset.svg
index 68c94d4..b130e75 100644
--- a/branding/static/img/custom/password-reset.svg
+++ b/branding/static/img/custom/password-reset.svg
@@ -1,7 +1,7 @@
-