Compare commits

...

78 Commits

Author SHA1 Message Date
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
6b74db9326 1.0.23 2019-10-02 11:41:35 +02:00
874740924d 1.0.22 2019-09-01 15:16:12 +02:00
038867c450 1.0.21 2019-09-01 13:59:36 +02:00
690b683723 1.0.20 2019-08-31 14:25:24 +02:00
4f7fb662f1 1.0.19 2019-08-27 18:14:17 +02:00
563425d7c4 fix(core): update 2019-08-27 18:14:17 +02:00
29404533c6 1.0.18 2019-08-27 18:12:23 +02:00
26f0a6a26b fix(core): update 2019-08-27 18:12:23 +02:00
3c8c51c8a0 1.0.17 2019-08-27 18:10:04 +02:00
cf23013036 fix(core): update 2019-08-27 18:10:04 +02:00
98f7a8fd65 1.0.16 2019-08-27 18:09:16 +02:00
bdc3a7b093 fix(core): update 2019-08-27 18:09:16 +02:00
e5eca3c967 1.0.15 2019-08-27 18:07:27 +02:00
63de7e6388 fix(core): update 2019-08-27 18:07:26 +02:00
413bea2579 1.0.14 2019-08-27 18:06:53 +02:00
71490f8d8e fix(core): update 2019-08-27 18:06:53 +02:00
3ca85c4c31 1.0.13 2019-08-27 18:04:36 +02:00
44226c3c53 fix(core): update 2019-08-27 18:04:36 +02:00
09b0bfa4ce 1.0.12 2019-08-27 18:03:34 +02:00
cb23895d0c fix(core): update 2019-08-27 18:03:34 +02:00
16dca34c6d 1.0.11 2019-08-27 17:57:38 +02:00
13ff525fd2 fix(core): update 2019-08-27 17:57:38 +02:00
bd18aa1aac 1.0.10 2019-08-27 17:56:33 +02:00
6c21042373 fix(core): update 2019-08-27 17:56:33 +02:00
99c16ce1f2 1.0.9 2019-08-27 17:47:10 +02:00
f30e0afdcd fix(core): update 2019-08-27 17:47:10 +02:00
9fb74ed327 1.0.8 2019-06-19 12:02:40 +02:00
ab7b4a2fed fix(core): update 2019-06-19 12:02:40 +02:00
c4fbdb4546 1.0.7 2019-06-19 11:55:13 +02:00
71a20b93b4 fix(core): update 2019-06-19 11:55:12 +02:00
8 changed files with 81 additions and 34 deletions

View File

@ -1,53 +1,51 @@
# gitzone ci_docker
image: hosttoday/ht-docker-node:npmci
cache:
paths:
- .npmci-cache/
key: "$CI_BUILD_STAGE"
# gitzone custom
image: docker:19.03.1
services:
- docker:stable-dind
before_script:
- npm install -g @shipzone/npmci
- npmci npm prepare
- 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
- 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"
- 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
release:
image: hosttoday/ht-docker-dbase:npmci
services:
- docker:dind
stage: release
script:
- npmci node install stable
- npmci docker login
- npmci docker build
- npmci docker test
- npmci docker push registry.gitlab.com
- npmci docker push
only:
- tags
tags:
- docker
- lossless
- priv
trigger:
stage: trigger
script:
- npmci trigger
- npmci trigger
only:
- tags
- tags
tags:
- docker
- docker
- lossless
- priv

View File

@ -1,6 +1,7 @@
FROM docker:git
FROM docker:19.03.1
RUN apk update && apk add --no-cache \
git \
openssl \
ca-certificates \
bash \
@ -16,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

5
package-lock.json generated Normal file
View File

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

View File

@ -1,13 +1,13 @@
{
"name": "ht-docker-dbase",
"version": "1.0.6",
"version": "1.0.52",
"description": "easy CI for docker images",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "echo \"Error: no test specified\"",
"build": "echo \"Not needed for now\""
},
"repository": {

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