Прокопенко Алексей
3 years ago
21 changed files with 283 additions and 107 deletions
-
4.env.example
-
1config/nginx/conf.d/vhosts.conf.example
-
2config/nginx/includes.d/staticfiles.conf
-
5docker-compose.base.yml
-
14dockerfiles/php-fpm/php73.Dockerfile
-
10dockerfiles/php-fpm/php74.Dockerfile
-
12dockerfiles/php-fpm/xdebug.ini
-
1dockerfiles/workspace/.gitignore
-
23dockerfiles/workspace/aliases.sh.example
-
44dockerfiles/workspace/workspace73.Dockerfile
-
51dockerfiles/workspace/workspace74.Dockerfile
-
6dockerfiles/workspace/xdebug.sh
-
20src/.env
-
39src/README.md
-
15src/docker-compose.base.yml
-
24src/dockerfiles/php-fpm/php.base.Dockerfile
-
2src/dockerfiles/php-fpm/xdebug.ini
-
100src/dockerfiles/workspace/workspace.base.Dockerfile
-
5src/dockerfiles/workspace/workspace73.Dockerfile
-
5src/dockerfiles/workspace/workspace74.Dockerfile
-
7src/dockerfiles/workspace/xdebug.ini
@ -0,0 +1 @@ |
|||||
|
/aliases.sh |
@ -0,0 +1,23 @@ |
|||||
|
#! /bin/bash |
||||
|
|
||||
|
# Colors used for status updates |
||||
|
ESC_SEQ="\x1b[" |
||||
|
COL_RESET=$ESC_SEQ"39;49;00m" |
||||
|
COL_RED=$ESC_SEQ"31;01m" |
||||
|
COL_GREEN=$ESC_SEQ"32;01m" |
||||
|
COL_YELLOW=$ESC_SEQ"33;01m" |
||||
|
COL_BLUE=$ESC_SEQ"34;01m" |
||||
|
COL_MAGENTA=$ESC_SEQ"35;01m" |
||||
|
COL_CYAN=$ESC_SEQ"36;01m" |
||||
|
|
||||
|
# Detect which `ls` flavor is in use |
||||
|
if ls --color > /dev/null 2>&1; then # GNU `ls` |
||||
|
colorflag="--color" |
||||
|
export LS_COLORS='no=00:fi=00:di=01;31:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:' |
||||
|
else # macOS `ls` |
||||
|
colorflag="-G" |
||||
|
export LSCOLORS='BxBxhxDxfxhxhxhxhxcxcx' |
||||
|
fi |
||||
|
|
||||
|
# Always use color output for `ls` |
||||
|
alias ls="command ls ${colorflag}" |
@ -0,0 +1,39 @@ |
|||||
|
## For use DOCKER_BUILD_KIT |
||||
|
|
||||
|
Set bash env vars: |
||||
|
|
||||
|
```bash |
||||
|
export DOCKER_BUILDKIT=1 |
||||
|
export COMPOSE_DOCKER_CLI_BUILD=1 |
||||
|
|
||||
|
``` |
||||
|
|
||||
|
## Recommended aliases |
||||
|
|
||||
|
```bash |
||||
|
alias dc='docker-compose' |
||||
|
alias dils='docker image ls | grep' |
||||
|
alias dirm='docker image rm' |
||||
|
``` |
||||
|
|
||||
|
## Visualize docker images tree |
||||
|
|
||||
|
https://github.com/justone/dockviz |
||||
|
|
||||
|
### Setup |
||||
|
|
||||
|
Add into your `~/.bash_aliases`: |
||||
|
|
||||
|
`alias dockviz="docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz"` |
||||
|
|
||||
|
For use visualization with `/usr/bin/dot` |
||||
|
|
||||
|
`apt install graphviz` |
||||
|
|
||||
|
### Containers |
||||
|
|
||||
|
`dockviz containers -d | dot -Tpng -o ~/containers.png` |
||||
|
|
||||
|
### Images |
||||
|
|
||||
|
`dockviz images -d | dot -Tpng -o ~/images.png` |
@ -1,6 +1,7 @@ |
|||||
# syntax = edrevo/dockerfile-plus |
# syntax = edrevo/dockerfile-plus |
||||
ARG PHP_VERSION=7.3 |
|
||||
|
FROM laradock/workspace:latest-7.3 |
||||
|
|
||||
FROM laradock/workspace:latest-${PHP_VERSION} |
|
||||
|
ARG PHP_VERSION=7.3 |
||||
|
ENV PHP_VERSION ${PHP_VERSION} |
||||
|
|
||||
INCLUDE+ ./workspace.base.Dockerfile |
INCLUDE+ ./workspace.base.Dockerfile |
@ -1,6 +1,7 @@ |
|||||
# syntax = edrevo/dockerfile-plus |
# syntax = edrevo/dockerfile-plus |
||||
ARG PHP_VERSION=7.4 |
|
||||
|
FROM laradock/workspace:latest-7.4 |
||||
|
|
||||
FROM laradock/workspace:latest-${PHP_VERSION} |
|
||||
|
ARG PHP_VERSION=7.4 |
||||
|
ENV PHP_VERSION ${PHP_VERSION} |
||||
|
|
||||
INCLUDE+ ./workspace.base.Dockerfile |
INCLUDE+ ./workspace.base.Dockerfile |
Write
Preview
Loading…
Cancel
Save
Reference in new issue