Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
f00c0dd88d | |||
62d1938c89 | |||
7021f177f6 | |||
944190eedc | |||
ad3e4ad739 | |||
711e71709a | |||
cebd14e338 | |||
8968bb5450 |
@ -13,7 +13,7 @@ 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
|
||||||
|
12
Dockerfile
12
Dockerfile
@ -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
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-dbase",
|
"name": "ht-docker-dbase",
|
||||||
"version": "1.0.33",
|
"version": "1.0.37",
|
||||||
"lockfileVersion": 1
|
"lockfileVersion": 1
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-dbase",
|
"name": "ht-docker-dbase",
|
||||||
"version": "1.0.33",
|
"version": "1.0.37",
|
||||||
"description": "easy CI for docker images",
|
"description": "easy CI for docker images",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
@ -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");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user