Compare commits

...

6 commits

5 changed files with 34 additions and 2 deletions

View file

@ -1,3 +1,6 @@
# openvisor-website/.dockerignore
# https://git.openvisor.ch/OpenVisor/OpenVisor-Website/.dockerignore
# docker files # docker files
Dockerfile Dockerfile
docker-compose.yml docker-compose.yml

View file

@ -1,3 +1,6 @@
# openvisorwebsite-dockerized/Dockerfile
# https://git.openvisor.ch/OpenVisor/OpenVisor-Website/Dockerfile
# BUILD STAGE # BUILD STAGE
FROM node:22.1.0-alpine3.19 as build-stage FROM node:22.1.0-alpine3.19 as build-stage

View file

@ -23,4 +23,4 @@ Version control is powered by [Git](https://git-scm.com) and the repository is p
As of 28.06.2024 no generative AI has been used by OpenVisor to create this website. OpenVisor tries to communicate the use of generative AI clearly if used. As of 28.06.2024 no generative AI has been used by OpenVisor to create this website. OpenVisor tries to communicate the use of generative AI clearly if used.
## License ## License
[GNU General Public License v3.0](https://git.openvisor.ch/OpenVisor/OpenVisor-Website/src/branch/main/LICENSE) [GNU General Public License v3.0](./LICENSE)

View file

@ -1,5 +1,5 @@
# openvisor-website/docker-compose.yml # openvisor-website/docker-compose.yml
# https://git.openvisor.ch/OpenVisor/OpenVisor-Website # https://git.openvisor.ch/OpenVisor/OpenVisor-Website/docker-compose.yml
networks: networks:
openvisorwebsite-network: openvisorwebsite-network:
name: openvisorwebsite-network name: openvisorwebsite-network

26
post-receive Normal file
View file

@ -0,0 +1,26 @@
# openvisorwebsite-dockerized/hooks/post-receive
# https://git.openvisor.ch/OpenVisor/OpenVisor-Website/post-receive
#!/bin/bash
# old undockerized
#git --work-tree=/var/www/html/openvisor --git-dir=/var/www/html/openvisor checkout -f
#cd /var/www/html/openvisor
#yarn build
# new dockerized
REPOSITORY=/opt/openvisorwebsite-dockerized
git --work-tree=${REPOSITORY} --git-dir=${REPOSITORY} checkout -f
touch ${REPOSITORY}/FLAG-FOR-CRONJOB-DOCKER-AUTOMATION
# content of /etc/cron.daily/openvisorwebsite-docker-automation
##!/bin/sh
#REPOSITORY=/opt/openvisorwebsite-dockerized
#if [ -f ${REPOSITORY}/FLAG-FOR-CRONJOB-DOCKER-AUTOMATION ];
# then
# docker compose build
# docker compose stop
# docker rm openvisorwebsite-app
# docker compose up -d
# rm ${REPOSITORY}/FLAG-FOR-CRONJOB-DOCKER-AUTOMATION
#fi