# |
May 10th 2021, 17:40 |
tyler.adam.lazenby |
and then create the docker-composer.yml file? |
# |
May 10th 2021, 17:39 |
tyler.adam.lazenby |
so then what you are saying is that I need to move this a directory `docker/web/Dockerfile` in my project? |
# |
May 10th 2021, 17:39 |
kevin.pfeifer |
creating that image takes quite long |
# |
May 10th 2021, 17:39 |
kevin.pfeifer |
thats normal |
# |
May 10th 2021, 17:39 |
tyler.adam.lazenby |
because it is taking my entire project into account |
# |
May 10th 2021, 17:39 |
tyler.adam.lazenby |
Right now I have the file just at my project root. It takes a LONG time to build the image. |
# |
May 10th 2021, 17:38 |
tyler.adam.lazenby |
right. I get that. |
# |
May 10th 2021, 17:38 |
kevin.pfeifer |
and as you can see you can define the ports in the docker-compose.yml file |
# |
May 10th 2021, 17:38 |
kevin.pfeifer |
and then run `docker-compose up` to start that |
# |
May 10th 2021, 17:37 |
kevin.pfeifer |
```version: "3.8" services: web: container_name: alfred_web build: context: . dockerfile: docker/web/Dockerfile ports: # 'host:container' - '80:80' networks: - frontend - backend volumes: - nfsmount:/var/www/html:cached``` |
# |
May 10th 2021, 17:37 |
kevin.pfeifer |
and then create a `docker-compose.yml`with this content |
# |
May 10th 2021, 17:36 |
kevin.pfeifer |
usually if you want to use a custom image (what you posted above) locally you would write a file in `docker/web/Dockerfile` with that content from above |
# |
May 10th 2021, 17:35 |
tyler.adam.lazenby |
But using phpstorm is making this a lot easier |
# |
May 10th 2021, 17:35 |
tyler.adam.lazenby |
This is honestly the first time I have used docker ... at all. I am just trying to get a ci going on my gitlab that can check my phpunit tests. |
# |
May 10th 2021, 17:34 |
kevin.pfeifer |
do you use this custom image in a docker-compose.yml? |
# |
May 10th 2021, 17:32 |
slackebot |
https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer COPY . /var/www WORKDIR /var/www RUN composer update``` |
# |
May 10th 2021, 17:32 |
tyler.adam.lazenby |
```FROM php:8.0-apache RUN apt-get update -y andand apt-get install -y libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev \ libfreetype6-dev RUN apt-get update andand \ apt-get install -y \ zlib1g-dev RUN apt-get update andand \ apt-get install -y \ libicu-dev libonig-dev libzip-dev RUN apt-get install git -y RUN docker-php-ext-install mbstring mysqli intl gd zip RUN curl -sS |
# |
May 10th 2021, 17:32 |
tyler.adam.lazenby |
I don't know if this applies here, but what should I do next in this Dockerfile to get it to expose the server and get it to run on my localhost on port 8081? |
# |
May 10th 2021, 15:22 |
paolo.bragagni |
@ndm done, thanks |
# |
May 10th 2021, 15:04 |
val |
thanks |
# |
May 10th 2021, 14:42 |
ndm |
@paolo.bragagni Maybe start with checking out the built-in authenticators of the authentication plugin to figure how they work? It's hard to give you any advice if you can't point to something a bit more specific that you're struggling with. |
# |
May 10th 2021, 14:31 |
ndm |
@val There's no support for it. Depending on the specific syntax for your DBMS, you might be able to sneak it in with some workarounds, for example for MySQL in the table name. |
# |
May 10th 2021, 13:20 |
paolo.bragagni |
seen this https://github.com/UseMuffin/OAuth2 but is for cake 3 |
# |
May 10th 2021, 13:19 |
paolo.bragagni |
I'd like to make my own Authenticator |
# |
May 10th 2021, 13:19 |
paolo.bragagni |
ho to use it in cake4? |
# |
May 10th 2021, 13:19 |
paolo.bragagni |
modified an oauth2 league provider to work with my need |
# |
May 10th 2021, 10:32 |
etibor |
i need to make a form filter with different parameters, how can i define only one query variable with different conditions actually i dont what is the condition for $data['types'], if is set look for thoose types, if it is not set($data['types'] = null) than for all now i have a lot of $query_variables, insted of having one query with a proper conditions |
# |
May 10th 2021, 10:29 |
etibor |
hello all |
# |
May 10th 2021, 09:34 |
val |
How to force index in 3.x? Can't find that in the cookbook. |
# |
May 10th 2021, 08:17 |
failure |
nvm, ive needed to add created and modified as accessable in Entity table for the _joinData |
# |
May 10th 2021, 08:03 |
slackebot |
<rohit.onus> |
# |
May 10th 2021, 08:02 |
rohit.onus |
hello everyone, i'm using "wysiwye-editor" textarea editor for the html to pdf convert. i want same formatting on screen, comes the same way it generates in pdf. but in pdf it's showing different, not same as on screen editor shows. can anyone pls help me to fix this issue? |
# |
May 10th 2021, 08:00 |
slackebot |
https://github.com/cakephp/cakephp/blob/master/src/Http/Middleware/CsrfProtectionMiddleware.php#L343 |
# |
May 10th 2021, 08:00 |
kevin.pfeifer |
@turkles it is e.g. used by the Security Class to salt the hash, encrypt and decrypt functions. https://github.com/cakephp/cakephp/blob/master/src/Utility/Security.php#L81 And set in the bootstrap.php https://github.com/cakephp/app/blob/master/config/bootstrap.php#L166 Also its present in the CsrfProtectionMiddleware https://github.com/cakephp/cakephp/blob/master/src/Http/Middleware/CsrfProtectionMiddleware.php#L261 |
# |
May 10th 2021, 07:54 |
failure |
with the timestamp build in? or shall i set it manually? |
# |
May 10th 2021, 07:54 |
failure |
is it possible to have created and modified updated on _joinData table? |
# |
May 10th 2021, 01:14 |
turkles |
Can anyone explain to me what the Security.salt is used for? I remember back in early versions having to put random strings somewhere, but docs for 4.0 don't mention this, is it no longer handled in the same way? |
# |
May 9th 2021, 14:24 |
kevin.pfeifer |
there is already an issue open for that https://github.com/cakephp/upgrade/issues/169#issuecomment-835769717 |
# |
May 9th 2021, 14:22 |
kevin.pfeifer |
@cake101 instead of using the upgrade tool I would just stick with setting ```'Error' => [ 'errorLevel' => E_ALL, ]``` then upgrading PHP and cakephp/cakephp package and fix errors, warnings etc. as they occur |
# |
May 9th 2021, 14:20 |
kevin.pfeifer |
thats why this line throws an error https://github.com/cakephp/upgrade/blob/534a15ce655d29b704f2d093fc21a208d3c4a08b/config/rector/cakephp40.php#L15 |
# |
May 9th 2021, 14:20 |
kevin.pfeifer |
seems like rectorphp has removed the CAKEPHP_40 constant in its SetList https://github.com/rectorphp/rector/commit/8f9e234b4a59b4769fb63afc13a9700ec3866052#diff-cc479759f82de6d4aff4f5f31[…]185e285777bfbaa667e9d9c299bfL77 |