#Workshop Topics - Thread
1 messages ยท Page 1 of 1 (latest)
Basics
- echo - hello world
- withExec() - use basic runtime (PHP) +
php -vcommand
- terminal() +
php -vmanually
- Mapping concepts from Dockerfile to Dagger syntax (FROM, COPY, RUN)
- Cached Mounts (composer cache directory) - don't need to keep downloading from the internet
When uploading the source directory - add the exclude part to not bring over ./vendor
- Introduce Dagger Cloud - make an account
run dagger login from CLI
- Drop-in code for any existing PHP project (lint + phpstan + phpunit)
- Github Actions CI Integration
@todo - find a good YML syntax example
@todo - paul test it out
@todo - sync with Jeremy about this, for more examples
Services
- Database (mysql), Cache (redis)
- Run DB migrations (from existing project)
@solar raven this is where I've got to
Happy to help brainstronm -
I loved this link that Helder shared, seems like a great thing to over - are you trying to avoid being tied to a specific framework though?
https://dev.to/frankalvarez/dockerize-a-laravel-11-app-4g4a
Even if not using Laravel, I think the general shape of that blog post feels like it would be well suited for a PHP workshop that gets you something relaly nice and usable at the end.
@todo - find a good YML syntax example
@todo - paul test it out
@todo - sync with Jeremy about this, for more examples
I don't know if we have a ton of PHP examples out in the wild right now, but looking at popular projects may give some good inspirartion for typical pieplines
The Laravel one is very simple https://github.com/laravel/laravel/blob/11.x/.github/workflows/tests.yml
The wikimedia one is a Groovy nightmare ๐ https://github.com/wikimedia/integration-pipelinelib
Dockerizing a Laravel application is not as simple as it seems, which is why today I will guide you...
Laravel is a web application framework with expressive, elegant syntax. Weโve already laid the foundation for your next big idea โ freeing you to create without sweating the small things. - laravel...
@sonic creek hey! ๐
Any framework, any project, it doesn't matter.
It's a 4 hour workshop, so we just need plenty of different scenarios or examples to take people through.;
Scenarios I'm needing some links for @sonic creek ..etc
This doesn't have to be PHP related at all btw...
-
A simple project with an existing Dockerfile, so we can inherit from an existing Dockerfile.
-
A simple example of syncing up with
docker loginakadocker hubso you can publish your own git images, authenticated with docker hub -
taking an existing docker image and porting it over to Dagger, in terms of the layers/steps
@untold tree here is my workshop URL - for tomorrow's workshop - https://github.com/dragoonis/dagger-workshop-websummercamp
Work in progress so far
@solar raven @sonic creek โ๏ธ /cc @strange spindle
@valid granite how did it go? ๐
We saw a bunch of Cloud Signups yesterday so seems like there was so buzz
Yes. I made everyone in the workshop use dagger cloud, right from the beginning ๐๐
That is awesome - otherwise how did it go, any feedback for us? Eager to hear ๐
@sonic creek yea got bunch of feedback, gimme a day or so