diff --git a/.env b/.env new file mode 100644 index 0000000..49aa505 --- /dev/null +++ b/.env @@ -0,0 +1,8 @@ +NETWORKNAME= +MYSQL_ROOT_PASSWORD= +MYSQL_USER= +MYSQL_PASSWORD= +MYSQL_DATABASE= +MYSQL_USER= +MYSQL_PASSWORD= +MYSQL_DATABASE= diff --git a/README.md b/README.md index c903967..84c911c 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,18 @@ -# Joomla +# Joomla Setup and Helper Scripts -This repository hold all the information Nick has documented about Joomla. -There are also helper files and scripts here. +This repository contains a comprehensive collection of documentation, scripts, and files to assist in setting up Joomla and managing Joomla projects. -[Quick Start Guide](https://git.nickyeoman.com/nick/joomla/wiki/Quick-Start) +Whether you're new to Joomla or an experienced user, this repository offers a range of resources to streamline your Joomla development workflow. -* [Gitea Repo](https://git.nickyeoman.com/nick/joomla/) +For detailed instructions on getting started, please refer to the [Quick Start Guide]((https://git.nickyeoman.com/nick/joomla/wiki/Quick-Start)) in the [Wiki](https://git.nickyeoman.com/nick/joomla/wiki). + +## Table of Contents + +* [Quick Start Guide](https://git.nickyeoman.com/nick/joomla/wiki/Quick-Start) +* [Gitea Repository](https://git.nickyeoman.com/nick/joomla/) * [Wiki](https://git.nickyeoman.com/nick/joomla/wiki) -* [Issues](https://git.nickyeoman.com/nick/joomla/issues) +* [Issue Tracker](https://git.nickyeoman.com/nick/joomla/issues) +## Contributing +Contributions to this repository are welcome! If you find any issues, have suggestions for improvements, or want to add new features, please send me an email: joomla@nickyeoman.com or open an issue in the Issue Tracker (Which I don't check much). I appreciate your interest in this project. diff --git a/bin/db-dump.bash b/bin/db-dump.bash new file mode 100644 index 0000000..309e51b --- /dev/null +++ b/bin/db-dump.bash @@ -0,0 +1,14 @@ +#!/bin/bash + +#check if root +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" 1>&2 + exit; +fi + +#Grab dotenv +export $(grep -v '^#' .env | xargs) + +tstamp=`date +%Y%m%d` + +docker-compose exec mariadb-joomla /usr/bin/mysqldump -u ${MYSQL_USER} --password=${MYSQL_PASSWORD} ${MYSQL_DATABASE} > sql/${JOOMLA_USER}-${MYSQL_DATABASE}-${tstamp}.sql diff --git a/bin/file-sync.sh b/bin/file-sync.sh new file mode 100644 index 0000000..e80bb68 --- /dev/null +++ b/bin/file-sync.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +#check if root +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" 1>&2 + exit; +fi + +#Grab dotenv +rsync -azhvc --del /var/lib/docker/volumes/harvst-ca_joomla/_data/ html/ + +# You probably should do something more like this: +# docker create --name temp-container -v :/source_data busybox +# docker cp temp-container:/source_data /path/to/destination_directory +# docker rm temp-container diff --git a/bin/install_extensions.sh b/bin/install_extensions.sh index f5eb728..8de2fa7 100644 --- a/bin/install_extensions.sh +++ b/bin/install_extensions.sh @@ -11,7 +11,7 @@ fi docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://github.com/templaza/astroid-framework/releases/download/v2.6.5/astroid-package-v2.6.5.Framework-Template.zip # Sitemap -[GitHub](https://github.com/joomlashack/OSMap) +# [GitHub](https://github.com/joomlashack/OSMap) docker-compose exec -u www-data joomla php cli/joomla.php extension:install --url=https://deploy.ostraining.com/client/download/free/latest-stable/com_osmap # Comments diff --git a/development/README.md b/development/README.md index 832b610..3d132e0 100644 --- a/development/README.md +++ b/development/README.md @@ -1,9 +1,5 @@ -# Development directory - -This directory is accessable from the Joomla installation app. - -it mounts as /development -should be removed from your production -includes git sub modules to other repositories +# Development Directory +The development directory in this repository is specifically intended for use within the staging environment of Joomla installations. +It serves as a mount point within the Joomla installation app for easy extension installation. diff --git a/docker-compose.staging.yml b/docker-compose.staging.yml index caa3968..e385fe0 100644 --- a/docker-compose.staging.yml +++ b/docker-compose.staging.yml @@ -1,6 +1,7 @@ version: '3.8' services: + joomla: volumes: - ./development:/development diff --git a/docker-compose.yml b/docker-compose.yml index e060106..28713c1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,11 +2,10 @@ version: '3.8' # For Staging # docker-compose -f docker-compose.yml -f docker-compose.staging.yml --env-file .env.staging up -d -# docker-compose -f docker-compose.yml -f docker-compose.staging.yml --env-file .env.staging down # # For Production # docker-compose up -d -# docker-compose down + volumes: joomla-db: diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index 9451adf..0000000 --- a/docs/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Joomla Repository Documenation - -Nick's Joomla Repository Documenation is located in the Repo's wiki: https://git.nickyeoman.com/nick/joomla/wiki \ No newline at end of file diff --git a/env.sample b/env.sample.txt similarity index 100% rename from env.sample rename to env.sample.txt diff --git a/html/index.html b/html/index.html index fef99e4..0b0792e 100644 --- a/html/index.html +++ b/html/index.html @@ -1 +1,9 @@ - \ No newline at end of file + + + + Placeholder + + +

Placeholder

+ +