Skip to content

Update to v4.0.1#11

Open
MaximZimmermannVerve wants to merge 7 commits into
ThisIsQasim:masterfrom
Verve-IT-Solutions:master
Open

Update to v4.0.1#11
MaximZimmermannVerve wants to merge 7 commits into
ThisIsQasim:masterfrom
Verve-IT-Solutions:master

Conversation

@MaximZimmermannVerve
Copy link
Copy Markdown

No description provided.

Maxim Zimmermann and others added 7 commits May 23, 2025 21:36
Upgrade Dockerfile to use PHP 8.3 and TastyIgniter 4.0, add intl extension, and improve installation steps. Refine .htaccess formatting, update docker-compose and entrypoint script, and revise README with new setup instructions for better clarity and compatibility.
Copy link
Copy Markdown
Owner

@ThisIsQasim ThisIsQasim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the much needed updates. Needs a few changes but otherwise looks good.

# Use docker.io for Docker Hub if empty
REGISTRY: docker.io
# github.repository as <account>/<repo>
IMAGE_NAME: zimmermannmaxim/tastyigniter
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't be able to push to your repo

Comment thread README.md
```
mkdir tastyigniter && cd tastyigniter
curl -LO https://github.com/ThisIsQasim/TastyIgniter/raw/master/docker-compose.yml
change the needed settings in the docker-compose using `nano docker-compose.yml`
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let people use their preferred text editor

Suggested change
change the needed settings in the docker-compose using `nano docker-compose.yml`
change the needed settings in the `docker-compose.yml` file

Comment thread README.md
docker compose up db -d
sleep 10
docker compose up -d
docker compose exec app php artisan igniter:passwd admin
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this no longer needed?

Comment thread README.md
docker compose up --build -d
```

Browse to port 8001 of your docker host. The TastyIgniter setup wizard will show up. Wait for a minute for the database container to come up and then run the setup.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the setup no longer needed as well?

Comment thread docker-compose.yml
- DB_DATABASE=tastyigniter
- DB_USERNAME=tastyigniter
- DB_PASSWORD=somepassword
- DB_PASSWORD=securefassword #CHANGEME
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- DB_PASSWORD=securefassword #CHANGEME
- DB_PASSWORD=securepassword #CHANGEME

Comment thread docker-compose.yml
- MYSQL_DATABASE=tastyigniter
- MYSQL_USER=tastyigniter
- MYSQL_PASSWORD=somepassword
- MYSQL_PASSWORD=securefassword #CHANGEME
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- MYSQL_PASSWORD=securefassword #CHANGEME
- MYSQL_PASSWORD=securepassword #CHANGEME

Comment thread docker-entrypoint.sh
# Create .env file with proper values
if [ -f "/var/www/html/.env.example" ]; then
echo "Creating .env file..."
cp /var/www/html/.env.example /var/www/html/.env
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is a bad practice to use .env inside the container. Wouldn't the application pickup env vars from the environment without a separate .env file?

Comment thread docker-entrypoint.sh
php artisan key:generate --force

# Run installation if database is configured
if [ -n "${DB_HOST}" ] && [ -n "${DB_DATABASE}" ] && [ -n "${DB_USERNAME}" ]; then
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice. thanks!

Comment thread docker-entrypoint.sh
exec "$@"
# Configure Apache
echo "Setting correct DocumentRoot..."
sed -i 's|DocumentRoot /var/www/html|DocumentRoot /var/www/html/public|g' /etc/apache2/sites-available/000-default.conf
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not do these changes in the Dockerfile rather that at runtime?

@MaximZimmermannVerve
Copy link
Copy Markdown
Author

will have to see if I can find the time to implement the suggested changes as I no longer work with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants