#Workshop Topics - Thread

1 messages ยท Page 1 of 1 (latest)

untold tree
#

๐Ÿ‘‹

valid granite
#

Basics

  • echo - hello world
#
  • withExec() - use basic runtime (PHP) + php -v command
#
  • terminal() + php -v manually
#
  • 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)
valid granite
#

@solar raven this is where I've got to

solar raven
#

@fervent orchid, @limber sentinel, can you help?

#

Maybe @sonic creek too.

sonic creek
#

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

DEV Community

Dockerizing a Laravel application is not as simple as it seems, which is why today I will guide you...

GitHub

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...

GitHub

Contribute to wikimedia/integration-pipelinelib development by creating an account on GitHub.

valid granite
#

@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...

  1. A simple project with an existing Dockerfile, so we can inherit from an existing Dockerfile.

  2. A simple example of syncing up with docker login aka docker hub so you can publish your own git images, authenticated with docker hub

  3. taking an existing docker image and porting it over to Dagger, in terms of the layers/steps

valid granite
#

@solar raven @sonic creek โ˜๏ธ /cc @strange spindle

sonic creek
#

@valid granite how did it go? ๐Ÿ™‚

#

We saw a bunch of Cloud Signups yesterday so seems like there was so buzz

valid granite
#

Yes. I made everyone in the workshop use dagger cloud, right from the beginning ๐Ÿ‘Œ๐Ÿ‘Œ

sonic creek
#

That is awesome - otherwise how did it go, any feedback for us? Eager to hear ๐Ÿ˜„

valid granite
#

@sonic creek yea got bunch of feedback, gimme a day or so