Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
7021f177f6 | |||
944190eedc | |||
ad3e4ad739 | |||
711e71709a | |||
cebd14e338 | |||
8968bb5450 | |||
726c32f5ea | |||
ab23734e25 | |||
9137d51267 | |||
a6bc8055f1 |
@ -11,13 +11,11 @@ before_script:
|
|||||||
- apk add --no-cache krb5-libs
|
- apk add --no-cache krb5-libs
|
||||||
- update-ca-certificates
|
- update-ca-certificates
|
||||||
- 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 the environment variable of LD_PRELOAD
|
|
||||||
ENV 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
|
||||||
|
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 common/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.31",
|
"version": "1.0.36",
|
||||||
"lockfileVersion": 1
|
"lockfileVersion": 1
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-dbase",
|
"name": "ht-docker-dbase",
|
||||||
"version": "1.0.31",
|
"version": "1.0.36",
|
||||||
"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