Compare commits

...

54 Commits

Author SHA1 Message Date
d806a0db1d 1.0.55 2021-02-26 23:40:13 +00:00
bdffd6452c fix(core): update 2021-02-26 23:40:13 +00:00
1248416ed9 1.0.54 2021-02-26 23:39:24 +00:00
9651c1a889 fix(core): update 2021-02-26 23:39:23 +00:00
f6809ac84a 1.0.53 2021-02-26 23:35:45 +00:00
c61c4499a4 fix(core): update 2021-02-26 23:35:44 +00:00
f23c44906c 1.0.52 2021-02-26 23:25:49 +00:00
39b54a483f fix(core): update 2021-02-26 23:25:49 +00:00
ea2c39ef97 1.0.51 2021-02-26 23:21:24 +00:00
8305d05c54 fix(core): update 2021-02-26 23:21:24 +00:00
5599f9f86c 1.0.50 2021-02-26 23:18:52 +00:00
c4ac975bae 1.0.49 2019-11-26 17:50:50 +00:00
7189d01599 1.0.48 2019-11-24 13:57:38 +00:00
8687ad4816 1.0.47 2019-11-24 13:53:01 +00:00
88e1a637ce 1.0.46 2019-11-24 13:49:48 +00:00
e0fa2b14b7 rename readme 2019-11-24 13:48:56 +00:00
5dccdbb9e9 rename readme 2019-11-24 13:48:52 +00:00
e3e2f86ac5 1.0.45 2019-11-24 13:46:38 +00:00
5fe8f04159 fix(core): update 2019-11-24 13:46:38 +00:00
e3b2144182 1.0.44 2019-11-24 13:43:09 +00:00
6c255d39f1 1.0.43 2019-11-23 22:28:31 +00:00
259195d267 fix(core): update 2019-11-23 22:28:31 +00:00
3395159064 1.0.42 2019-11-23 22:22:06 +00:00
7ce81d1a7c fix(core): update 2019-11-23 22:22:05 +00:00
96c116b0b5 1.0.41 2019-11-23 22:12:25 +00:00
b8a643d174 fix(core): update 2019-11-23 22:12:25 +00:00
a8f42b0ac3 1.0.40 2019-11-23 22:09:17 +00:00
09470996d4 fix(core): update 2019-11-23 22:09:16 +00:00
8378ffb419 1.0.39 2019-11-23 22:03:13 +00:00
01dc4c19a8 fix(core): update 2019-11-23 22:03:12 +00:00
32eccccf22 1.0.38 2019-11-23 21:58:51 +00:00
0188f92f4b fix(core): update 2019-11-23 21:58:51 +00:00
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
9137d51267 1.0.32 2019-11-23 21:34:08 +00:00
a6bc8055f1 fix(core): update 2019-11-23 21:34:07 +00:00
4ff525cf64 1.0.31 2019-11-23 21:32:41 +00:00
272a82e06a fix(core): update 2019-11-23 21:32:41 +00:00
8a70aa4c49 1.0.30 2019-11-23 21:29:08 +00:00
e95c68243f fix(core): update 2019-11-23 21:29:08 +00:00
102747d49d 1.0.29 2019-11-23 19:49:24 +00:00
909fb5bc1f 1.0.28 2019-10-04 15:24:41 +02:00
a771587de6 1.0.27 2019-10-02 23:56:55 +02:00
20eb639907 1.0.26 2019-10-02 23:40:35 +02:00
3caa5a6694 1.0.25 2019-10-02 12:02:58 +02:00
d92cfa0988 1.0.24 2019-10-02 11:41:49 +02:00
8 changed files with 59 additions and 20 deletions

View File

@ -7,29 +7,25 @@ before_script:
- apk update
- apk add --no-cache git openssl ca-certificates bash curl
- apk add --no-cache make gcc g++ python linux-headers paxctl
- apk add --no-cache libgcc libstdc++ gnupg nodejs nodejs-npm
- apk add --no-cache libgcc libstdc++ gnupg
- apk add -U curl bash ca-certificates openssl ncurses coreutils python2 make gcc g++ libgcc linux-headers grep util-linux binutils findutils
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
- update-ca-certificates
- cp ./stack-fix.c /lib/
- 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 LD_PRELOAD="/lib/stack-fix.so"
- ~/.nvm/nvm.sh && nvm install stable -s
- npm config set unsafe-perm true
- node -v && npm -v
- npm install -g @shipzone/npmci
- npmci npm prepare
stages:
- test
- release
- trigger
- pages
testSTABLE:
stage: test
script:
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- lossless
- priv
release:
stage: release

View File

@ -17,6 +17,19 @@ RUN apk update && apk add --no-cache \
gnupg \
nodejs \
nodejs-npm \
krb5-libs \
&& 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

2
package-lock.json generated
View File

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

View File

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

32
stack-fix.c Normal file
View File

@ -0,0 +1,32 @@
#include <dlfcn.h>
#include <pthread.h>
#include <stdio.h>
// THIS IS TO AVOID A SIGFAULT WHEN RUNNING python3.6 manage.py runserver
// This should be fixed at some point by Alpine and/or Python
// Check this issue for more info
// https://github.com/docker-library/python/issues/211
typedef int (*func_t)(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg);
int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg) {
pthread_attr_t local;
int used = 0, ret;
if (!attr) {
used = 1;
pthread_attr_init(&local);
attr = &local;
}
pthread_attr_setstacksize((void*)attr, 2 * 1024 * 1024); // 2 MB
func_t orig = (func_t)dlsym(RTLD_NEXT, "pthread_create");
ret = orig(thread, attr, start_routine, arg);
if (used) {
pthread_attr_destroy(&local);
}
return ret;
}

View File

@ -1,3 +1,2 @@
yarn --version
npm --version
node --version

View File

@ -1,5 +1,4 @@
node -v
npm -v
yarn --version
npm init --yes
npmci -v
git clone https://gitlab.com/sandboxzone/sandbox-npmts.git