Compare commits
74 Commits
Author | SHA1 | Date | |
---|---|---|---|
f751354a83 | |||
4586a2f34e | |||
ffd299114a | |||
df2cc6ccee | |||
847ff6aded | |||
dd40629f09 | |||
9f2d8ca700 | |||
5b6e13f3fd | |||
5f02b4707c | |||
a6c8f5c9fc | |||
934b1b7c2f | |||
cedebef214 | |||
96d8d43018 | |||
dcd581929b | |||
d2629cd453 | |||
b9070b3a35 | |||
25849cd990 | |||
8586b68bf7 | |||
9f7b61feeb | |||
ee58a43ed4 | |||
f1dc84f8a8 | |||
d5fa32786c | |||
cd4b629f07 | |||
eca7a18409 | |||
1e620394ac | |||
39b3d5df91 | |||
2b0cceb822 | |||
e25fb766d0 | |||
83f47a5d33 | |||
c9b0009cd3 | |||
3e58b1c7c6 | |||
08515255bb | |||
4cfd049e0c | |||
0472feeaeb | |||
d8b1f5cf83 | |||
bc05ac5ce8 | |||
5e58389bbe | |||
2cef721039 | |||
1e5677e7b3 | |||
a16aa527e0 | |||
8a3ebe4edd | |||
3754370601 | |||
98e9bb7ccd | |||
d15e063c92 | |||
be3ae65d72 | |||
b75e5ef366 | |||
fd35505647 | |||
c77d2bf370 | |||
28439a4b57 | |||
7d68fdf34e | |||
8a0beb0748 | |||
54440f3d87 | |||
c3690d0ad0 | |||
469b9cda79 | |||
274939af46 | |||
edd645a222 | |||
bf3972cf55 | |||
3b581d1e11 | |||
d4f83ecdda | |||
b369197763 | |||
52cde0c4d9 | |||
e118fab8c6 | |||
b6fe7e1b36 | |||
9b264755ab | |||
11d6f9a1ec | |||
fecbcdde64 | |||
9e1d21931e | |||
81ef1f1fd9 | |||
9fa5bee1ee | |||
36099654b4 | |||
99bb05ee51 | |||
a020d12a2e | |||
f393560c78 | |||
258de44568 |
@ -1,5 +1,5 @@
|
|||||||
# gitzone ci_docker
|
# gitzone ci_docker
|
||||||
image: hosttoday/ht-docker-node:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
@ -15,7 +15,7 @@ stages:
|
|||||||
- trigger
|
- trigger
|
||||||
- pages
|
- pages
|
||||||
|
|
||||||
testSTABLE:
|
testStable:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci node install stable
|
- npmci node install stable
|
||||||
@ -26,12 +26,12 @@ testSTABLE:
|
|||||||
- docker
|
- docker
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: hosttoday/ht-docker-dbase:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:stable-dind
|
||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
- npmci node install stable
|
- npmci node install lts
|
||||||
- npmci docker login
|
- npmci docker login
|
||||||
- npmci docker build
|
- npmci docker build
|
||||||
- npmci docker test
|
- npmci docker test
|
||||||
|
@ -3,7 +3,7 @@ LABEL author="Lossless GmbH <hello@lossless.com>"
|
|||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
# important environment variables
|
# important environment variables
|
||||||
ENV NODE_VERSION_LTS="10.13.0" NODE_VERSION_STABLE="11.2.0" NVM_DIR="/usr/local/nvm"
|
ENV NODE_VERSION_LTS="14.18.1" NODE_VERSION_STABLE="16.11.1" NVM_DIR="/usr/local/nvm"
|
||||||
|
|
||||||
# Set debconf to run non-interactively and install packages
|
# Set debconf to run non-interactively and install packages
|
||||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
||||||
@ -21,6 +21,7 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
|||||||
make \
|
make \
|
||||||
openssl \
|
openssl \
|
||||||
python \
|
python \
|
||||||
|
python3.6 \
|
||||||
rsync \
|
rsync \
|
||||||
ssh \
|
ssh \
|
||||||
wget \
|
wget \
|
||||||
@ -61,7 +62,11 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
|||||||
libnss3 \
|
libnss3 \
|
||||||
lsb-release \
|
lsb-release \
|
||||||
xdg-utils \
|
xdg-utils \
|
||||||
&& apt-get update \
|
libcurl3 \
|
||||||
|
libssl-dev \
|
||||||
|
openssl \
|
||||||
|
libssl1.0.0 \
|
||||||
|
mongodb \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -r /var/lib/apt/lists/*
|
&& rm -r /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
FROM node:11.3.0-alpine
|
FROM node:14.15.4-alpine
|
||||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
RUN apk update && apk add bash libc6-compat
|
RUN apk update && apk add bash libc6-compat alpine-sdk
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
|
||||||
|
RUN python3 -m ensurepip
|
||||||
|
RUN pip3 install --no-cache --upgrade pip setuptools
|
||||||
|
|
||||||
|
|
||||||
|
ENV NODE_OPTIONS="--max_old_space_size=1000"
|
@ -1,4 +1,5 @@
|
|||||||
FROM hosttoday/ht-docker-node:latest as stage1
|
FROM hosttoday/ht-docker-node:stable as stage1
|
||||||
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends qemu-user-static binfmt-support
|
RUN apt-get update && apt-get install -y --no-install-recommends qemu-user-static binfmt-support
|
||||||
# the following lines need to be run on a system that supports both architectures
|
# the following lines need to be run on a system that supports both architectures
|
||||||
# update-binfmts --enable qemu-arm \
|
# update-binfmts --enable qemu-arm \
|
||||||
|
@ -6,6 +6,7 @@ RUN bash -c "source $NVM_DIR/nvm.sh \
|
|||||||
&& nvm alias default $NODE_VERSION_LTS \
|
&& nvm alias default $NODE_VERSION_LTS \
|
||||||
&& nvm use default \
|
&& nvm use default \
|
||||||
&& npm config set unsafe-perm true \
|
&& npm config set unsafe-perm true \
|
||||||
|
&& npm install -g agentkeepalive \
|
||||||
&& npm install -g npm"
|
&& npm install -g npm"
|
||||||
|
|
||||||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules
|
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules
|
||||||
|
5
Dockerfile_snyk
Normal file
5
Dockerfile_snyk
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM hosttoday/ht-docker-node:npmci
|
||||||
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
|
RUN npm install -g snyk
|
||||||
|
|
@ -6,6 +6,7 @@ RUN bash -c "source $NVM_DIR/nvm.sh \
|
|||||||
&& nvm alias default $NODE_VERSION_STABLE \
|
&& nvm alias default $NODE_VERSION_STABLE \
|
||||||
&& nvm use default \
|
&& nvm use default \
|
||||||
&& npm config set unsafe-perm true \
|
&& npm config set unsafe-perm true \
|
||||||
|
&& npm install -g agentkeepalive \
|
||||||
&& npm install -g npm"
|
&& npm install -g npm"
|
||||||
|
|
||||||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules
|
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM hosttoday/ht-docker-node:stable
|
FROM hosttoday/ht-docker-node:lts
|
||||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
RUN npm install -g @shipzone/npmci @gitzone/tsdocker @gitzone/tsrun
|
RUN npm install -g @shipzone/npmci @gitzone/tsdocker @gitzone/tsrun
|
@ -9,5 +9,10 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npmci": {}
|
"npmci": {
|
||||||
|
"dockerRegistries": [
|
||||||
|
"docker.io",
|
||||||
|
"registry.gitlab.com"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "ht-docker-node",
|
||||||
|
"version": "5.0.64",
|
||||||
|
"lockfileVersion": 1
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-node",
|
"name": "ht-docker-node",
|
||||||
"version": "5.0.22",
|
"version": "5.0.64",
|
||||||
"description": "docker image with nodejs and shipzone.io support",
|
"description": "docker image with nodejs and shipzone.io support",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -23,6 +23,7 @@
|
|||||||
"ts_web/*",
|
"ts_web/*",
|
||||||
"dist/*",
|
"dist/*",
|
||||||
"dist_web/*",
|
"dist_web/*",
|
||||||
|
"dist_ts_web/*",
|
||||||
"assets/*",
|
"assets/*",
|
||||||
"cli.js",
|
"cli.js",
|
||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
|
@ -54,6 +54,6 @@ For further information read the linked docs at the top of this README.
|
|||||||
For further information read the linked docs at the top of this readme.
|
For further information read the linked docs at the top of this readme.
|
||||||
|
|
||||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
||||||
|
|
||||||
[](https://maintainedby.lossless.com)
|
[](https://maintainedby.lossless.com)
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
# check if npmci is available
|
# check if npmci is available
|
||||||
|
npm init -y
|
||||||
npmci -v
|
npmci -v
|
||||||
|
|
||||||
# check if we can use lts
|
# TODO update npmci to not require package.json
|
||||||
npmci install lts
|
npmci node install stable
|
||||||
|
|
||||||
# check if npm picks it up
|
# check if npm picks it up
|
||||||
npmci command npm install -g @gitzone/tsrun
|
npmci command npm install -g @gitzone/tsrun
|
||||||
|
Reference in New Issue
Block a user