Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalization - cloud native #10

Merged
merged 3 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions fwd-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"name": "Dockerfile",
"path": "template/Dockerfile"
},
{
"name": "entrypoint.sh",
"path": "template/entrypoint"
},
{
"name": "default.tmpl",
"path": "template/default_tmpl"
Expand All @@ -30,6 +34,10 @@
"name": "Dockerfile",
"path": "template/Dockerfile"
},
{
"name": "entrypoint.sh",
"path": "template/entrypoint"
},
{
"name": "default.tmpl",
"path": "template/default_tmpl"
Expand All @@ -48,6 +56,10 @@
"name": "Dockerfile",
"path": "template/Dockerfile"
},
{
"name": "entrypoint.sh",
"path": "template/entrypoint"
},
{
"name": "default.tmpl",
"path": "template/default_tmpl"
Expand Down
6 changes: 5 additions & 1 deletion php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ ENV PHP_FPM=app:9000 \
FASTCGI_BUFFER_SIZE='16k'

COPY default.tmpl /etc/nginx/conf.d/default.tmpl
COPY entrypoint.sh /kool/entrypoint.sh

RUN chmod +x /kool/entrypoint.sh

EXPOSE 80

CMD ["dockerize", "-template", "/etc/nginx/conf.d/default.tmpl:/etc/nginx/conf.d/default.conf", "nginx", "-g", "daemon off;"]
ENTRYPOINT [ "/kool/entrypoint.sh" ]
CMD ["nginx", "-g", "daemon off;"]
7 changes: 7 additions & 0 deletions php/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

dockerize -template /etc/nginx/conf.d/default.tmpl:/etc/nginx/conf.d/default.conf

exec sh /docker-entrypoint.sh "$@"
6 changes: 5 additions & 1 deletion proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ ENV LISTEN=80 \


COPY default.tmpl /etc/nginx/conf.d/default.tmpl
COPY entrypoint.sh /kool/entrypoint.sh

RUN chmod +x /kool/entrypoint.sh

EXPOSE 80

CMD ["dockerize", "-template", "/etc/nginx/conf.d/default.tmpl:/etc/nginx/conf.d/default.conf", "nginx", "-g", "daemon off;"]
ENTRYPOINT [ "/kool/entrypoint.sh" ]
CMD ["nginx", "-g", "daemon off;"]
7 changes: 7 additions & 0 deletions proxy/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

dockerize -template /etc/nginx/conf.d/default.tmpl:/etc/nginx/conf.d/default.conf

exec sh /docker-entrypoint.sh "$@"
6 changes: 5 additions & 1 deletion static/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ ENV INDEX=index.html \


COPY default.tmpl /etc/nginx/conf.d/default.tmpl
COPY entrypoint.sh /kool/entrypoint.sh

RUN chmod +x /kool/entrypoint.sh

EXPOSE 80

CMD ["dockerize", "-template", "/etc/nginx/conf.d/default.tmpl:/etc/nginx/conf.d/default.conf", "nginx", "-g", "daemon off;"]
ENTRYPOINT [ "/kool/entrypoint.sh" ]
CMD ["nginx", "-g", "daemon off;"]
7 changes: 7 additions & 0 deletions static/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

dockerize -template /etc/nginx/conf.d/default.tmpl:/etc/nginx/conf.d/default.conf

exec sh /docker-entrypoint.sh "$@"
6 changes: 5 additions & 1 deletion template/Dockerfile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
@endif

COPY default.tmpl /etc/nginx/conf.d/default.tmpl
COPY entrypoint.sh /kool/entrypoint.sh

RUN chmod +x /kool/entrypoint.sh

EXPOSE 80

CMD ["dockerize", "-template", "/etc/nginx/conf.d/default.tmpl:/etc/nginx/conf.d/default.conf", "nginx", "-g", "daemon off;"]
ENTRYPOINT [ "/kool/entrypoint.sh" ]
CMD ["nginx", "-g", "daemon off;"]
7 changes: 7 additions & 0 deletions template/entrypoint.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

dockerize -template /etc/nginx/conf.d/default.tmpl:/etc/nginx/conf.d/default.conf

exec sh /docker-entrypoint.sh "$@"
Loading