@wocker/ws 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wocker/ws",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "author": "Kris Papercut <krispcut@gmail.com>",
5
5
  "description": "Docker workspace for web projects",
6
6
  "license": "MIT",
@@ -22,10 +22,24 @@ RUN apt-get install -y curl git
22
22
  # libssl-dev \
23
23
  # zlib1g-dev
24
24
 
25
+ # Http
26
+ ARG HTTP_ENABLE=false
27
+ RUN if [ "$HTTP_ENABLE" = "true" ]; then \
28
+ apt-get update && apt-get install -y \
29
+ libpcre3-dev \
30
+ libssl-dev \
31
+ libcurl4-openssl-dev \
32
+ libicu-dev \
33
+ g++ \
34
+ zlib1g-dev && \
35
+ docker-php-ext-install pcntl && \
36
+ pecl install raphf && docker-php-ext-enable raphf && \
37
+ pecl install pecl_http && docker-php-ext-enable http; \
38
+ fi
39
+
25
40
  # Mysqli
26
41
  ARG MYSQLI_ENABLE=false
27
42
  RUN if [ "$MYSQLI_ENABLE" = "true" ]; then \
28
- echo "Install mysqli" && \
29
43
  docker-php-ext-install -j "$(nproc)" mysqli && \
30
44
  docker-php-ext-enable mysqli; \
31
45
  fi
@@ -62,13 +76,61 @@ RUN if [ "$GD_ENABLE" = "true" ]; then \
62
76
  # Zip
63
77
  ARG ZIP_ENABLE=false
64
78
  RUN if [ "$ZIP_ENABLE" = "true" ]; then \
65
- apt-get install -y \
66
- libzip-dev \
67
- zip && \
79
+ apt-get install -y libzip-dev zip unzip && \
68
80
  docker-php-ext-configure zip && \
69
81
  docker-php-ext-install -j "$(nproc)" zip; \
70
82
  fi
71
83
 
84
+ # memcache
85
+ ARG MEMCACHE_ENABLE=false
86
+ RUN if [ "$MEMCACHE_ENABLE" = "true" ]; then \
87
+ apt-get update && apt-get install -y \
88
+ zlib1g-dev \
89
+ libmemcached-dev && \
90
+ pecl install memcache && docker-php-ext-enable memcache; \
91
+ fi
92
+
93
+ # memcached
94
+ ARG MEMCACHED_ENABLE=false
95
+ RUN if [ "$MEMCACHED_ENABLE" = "true" ]; then \
96
+ apt-get update && apt-get install -y \
97
+ libcurl4-openssl-dev \
98
+ libssl-dev \
99
+ libmemcached-dev \
100
+ zlib1g-dev && \
101
+ pecl install memcached && docker-php-ext-enable memcached; \
102
+ fi
103
+
104
+ # Intl
105
+ ARG INTL_ENABLE=false
106
+ RUN if [ "$INTL_ENABLE" = "true" ]; then \
107
+ apt-get update && apt-get install -y \
108
+ libicu-dev && \
109
+ docker-php-ext-configure intl && \
110
+ docker-php-ext-install intl; \
111
+ fi
112
+
113
+ # Pcntl
114
+ ARG PCNTL_ENABLE=false
115
+ RUN if [ "$PCNTL_ENABLE" = "true" ]; then \
116
+ docker-php-ext-install pcntl && \
117
+ docker-php-ext-enable pcntl; \
118
+ fi
119
+
120
+ ARG SOAP_ENABLE=false
121
+ RUN if [ "$SOAP_ENABLE" = "true" ]; then \
122
+ apt-get update && apt-get install -y \
123
+ libxml2-dev && \
124
+ docker-php-ext-install soap && \
125
+ docker-php-ext-enable soap; \
126
+ fi
127
+
128
+ ARG XDEBUG_ENABLE=false
129
+ RUN if [ "$XDEBUG_ENABLE" = "true" ]; then \
130
+ pecl install xdebug && \
131
+ docker-php-ext-enable xdebug; \
132
+ fi
133
+
72
134
  #RUN compare-version $PHP_VERSION "7.3" && \
73
135
  # docker-php-ext-configure zip || \
74
136
  # docker-php-ext-configure zip --with-libzip
@@ -22,7 +22,14 @@
22
22
  "PDO_MYSQL_ENABLE": "PDO",
23
23
  "PGSQL_ENABLE": "Pgsql",
24
24
  "GD_ENABLE": "GD",
25
- "ZIP_ENABLE": "Zip"
25
+ "ZIP_ENABLE": "Zip",
26
+ "MEMCACHE_ENABLE": "Memcache",
27
+ "MEMCACHED_ENABLE": "Memcached",
28
+ "HTTP_ENABLE": "Raphf+Http",
29
+ "INTL_ENABLE": "Intl",
30
+ "PCNTL_ENABLE": "Pcntl",
31
+ "SOAP_ENABLE": "Soap",
32
+ "XDEBUG_ENABLE": "XDebug"
26
33
  }
27
34
  },
28
35
  "COMPOSER_ENABLE": {