Compare commits

..

10 Commits

Author SHA1 Message Date
f00c0dd88d 1.0.37 2019-11-23 21:58:14 +00:00
62d1938c89 fix(core): update 2019-11-23 21:58:13 +00:00
7021f177f6 1.0.36 2019-11-23 21:53:19 +00:00
944190eedc fix(core): update 2019-11-23 21:53:18 +00:00
ad3e4ad739 1.0.35 2019-11-23 21:47:03 +00:00
711e71709a fix(core): update 2019-11-23 21:47:03 +00:00
cebd14e338 1.0.34 2019-11-23 21:36:49 +00:00
8968bb5450 fix(core): update 2019-11-23 21:36:48 +00:00
726c32f5ea 1.0.33 2019-11-23 21:35:33 +00:00
ab23734e25 fix(core): update 2019-11-23 21:35:32 +00:00
5 changed files with 17 additions and 5 deletions

View File

@ -13,9 +13,9 @@ before_script:
- cp ./stack-fix.c /lib/ - cp ./stack-fix.c /lib/
- set -ex - set -ex
- apk add --no-cache --virtual .build-deps build-base - apk add --no-cache --virtual .build-deps build-base
- gcc -shared -fPIC /lib/stack-fix.c -o /lib/stack-fix.so \ - gcc -shared -fPIC /lib/stack-fix.c -o /lib/stack-fix.so
- apk del .build-deps - apk del .build-deps
- export LD_PRELOAD /lib/stack-fix.so - export LD_PRELOAD="/lib/stack-fix.so"
- npm config set unsafe-perm true - npm config set unsafe-perm true
- npm install -g @shipzone/npmci - npm install -g @shipzone/npmci
- npmci npm prepare - npmci npm prepare

View File

@ -19,4 +19,16 @@ RUN apk update && apk add --no-cache \
nodejs-npm \ nodejs-npm \
&& update-ca-certificates && update-ca-certificates
# Add the patch fix
COPY ./stack-fix.c /lib/
# Prepare the libraries packages
RUN set -ex \
&& apk add --no-cache --virtual .build-deps build-base \
&& gcc -shared -fPIC /lib/stack-fix.c -o /lib/stack-fix.so \
&& apk del .build-deps
# export the environment variable of LD_PRELOAD
ENV LD_PRELOAD /lib/stack-fix.so
RUN npm config set unsafe-perm true RUN npm config set unsafe-perm true

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{ {
"name": "ht-docker-dbase", "name": "ht-docker-dbase",
"version": "1.0.32", "version": "1.0.37",
"lockfileVersion": 1 "lockfileVersion": 1
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "ht-docker-dbase", "name": "ht-docker-dbase",
"version": "1.0.32", "version": "1.0.37",
"description": "easy CI for docker images", "description": "easy CI for docker images",
"main": "index.js", "main": "index.js",
"directories": { "directories": {

View File

@ -18,7 +18,7 @@ int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_
pthread_attr_init(&local); pthread_attr_init(&local);
attr = &local; attr = &local;
} }
pthread_attr_setstacksize((void*)attr, 2 * 1024 * 1024); // 2 MB pthread_attr_setstacksize((void*)attr, 10 * 1024 * 1024); // 2 MB
func_t orig = (func_t)dlsym(RTLD_NEXT, "pthread_create"); func_t orig = (func_t)dlsym(RTLD_NEXT, "pthread_create");