Skip to content

Instantly share code, notes, and snippets.

renan-taranto / Dockerfile
Last active Oct 30, 2019
PHuiP-FPizdaM Dockerfile
View Dockerfile
FROM golang:1.13
WORKDIR /go/src/app
RUN go get -v
CMD ["sh", "-c", "phuip-fpizdam ${URL}"]
renan-taranto / config.yml
Created Jan 10, 2018 — forked from K-Phoen/config.yml
Storing Symfony2 sessions in memcached
View config.yml
# ....
- { resource: services/session.yml }
# ....
handler_id: session.handler.memcached
renan-taranto /
Created Dec 12, 2017
Articles about hexagonal architecture
  1. Read the slides "Crafting beautiful software". Take notes on terminology, and where these things appear on the blue Hexagon.

  2. Google search topic on the terminologies. (example: php, explain command bus) - Also, do a google image search on terminologies too.

  3. Read about "Hexagonal Architecture - message-oriented software design" from PHPCon Poland 2015

View gist:d262a2cdf57c6137099d939ef77e4836
renan@taranto ~/projects/github/api-platform-master $ docker-compose logs -f
Attaching to apiplatformmaster_app_1, apiplatformmaster_nginx_1, apiplatformmaster_db_1
nginx_1 | 2017/06/01 16:10:33 [error] 7#7: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client:, server: , request: "GET /app_dev.php HTTP/1.1", upstream: "fastcgi://", host: "localhost"
nginx_1 | - - [01/Jun/2017:16:10:33 +0000] "GET /app_dev.php HTTP/1.1" 404 27 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36" "-"
nginx_1 | 2017/06/01 16:10:34 [crit] 7#7: *1 stat() "/srv/api-platform/web/favicon.ico" failed (13: Permission denied), client:, server: , request: "GET /favicon.ico HTTP/1.1", host: "localhost", referrer: "http://localhost/app_dev.php"
nginx_1 | 2017/06/01 16:10:34 [error] 7#7: *1 FastCGI sent in stderr: "Primary script unknown" while readin
View gist:cad044c5df8ed1de1ababd6e74b595c4
renan@taranto ~/projects/github/api-platform-master $ docker-compose up -d
Creating network "apiplatformmaster_default" with the default driver
Creating volume "apiplatformmaster_db-data" with default driver
Creating volume "apiplatformmaster_app-web" with default driver
Building nginx
Step 1/2 : FROM nginx:1.11-alpine
---> f35b49deb234
Step 2/2 : COPY conf.d /etc/nginx/conf.d/
---> aab020f9a54b
Removing intermediate container aa4865de3eae