Skip to content

Instantly share code, notes, and snippets.

@renan-taranto
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 github.com/neex/phuip-fpizdam
CMD ["sh", "-c", "phuip-fpizdam ${URL}"]
@renan-taranto
renan-taranto / config.yml
Created Jan 10, 2018 — forked from K-Phoen/config.yml
Storing Symfony2 sessions in memcached
View config.yml
imports:
# ....
- { resource: services/session.yml }
framework:
# ....
session:
handler_id: session.handler.memcached
@renan-taranto
renan-taranto / hexagonal_architecture.md
Created Dec 12, 2017
Articles about hexagonal architecture
View hexagonal_architecture.md
  1. Read the slides "Crafting beautiful software". Take notes on terminology, and where these things appear on the blue Hexagon. https://www.slideshare.net/JornOomen/crafting-beautiful-software

  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: 172.19.0.1, server: , request: "GET /app_dev.php HTTP/1.1", upstream: "fastcgi://172.19.0.4:9000", host: "localhost"
nginx_1 | 172.19.0.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: 172.19.0.1, 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