Compare commits
35 Commits
Author | SHA1 | Date | |
---|---|---|---|
ebb82a445c | |||
7ec5a147c9 | |||
385780e50c | |||
b894a361bd | |||
f0747237cf | |||
89ba2f5a9f | |||
c295ad18be | |||
afad2c3654 | |||
409b0c60a1 | |||
feb57f1d36 | |||
80f0a0d9dc | |||
c2ba244375 | |||
f859d910b6 | |||
bc71510cd1 | |||
181b3643b1 | |||
85bee13ba9 | |||
74c60c8d4f | |||
0c5f20ed36 | |||
4066098153 | |||
a9fcf3c64e | |||
03cdeb1cd4 | |||
d4cf1b5bc7 | |||
5da58d1f18 | |||
ebd63262ab | |||
af16867f69 | |||
812979b0bf | |||
1864b4f0e1 | |||
12c95e4da9 | |||
9cf189b77b | |||
8669c3cc70 | |||
c005ac8995 | |||
594cbc119c | |||
df92a41d60 | |||
4b23a3aad8 | |||
e4da377993 |
@ -36,6 +36,7 @@ release:
|
|||||||
- npmci docker build
|
- npmci docker build
|
||||||
- npmci docker test
|
- npmci docker test
|
||||||
- npmci docker push registry.gitlab.com
|
- npmci docker push registry.gitlab.com
|
||||||
|
- npmci docker push docker.io
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
tags:
|
tags:
|
||||||
|
20
Dockerfile
20
Dockerfile
@ -1,9 +1,9 @@
|
|||||||
FROM ubuntu:bionic
|
FROM ubuntu:20.04
|
||||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
# important environment variables
|
# important environment variables
|
||||||
ENV NODE_VERSION_LTS="16.14.2" NODE_VERSION_STABLE="17.8.0" NVM_DIR="/usr/local/nvm"
|
ENV NODE_VERSION_LTS="16.16.0" NODE_VERSION_STABLE="18.7.0" 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 \
|
||||||
@ -81,3 +81,19 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
|||||||
|
|
||||||
# Install nvm with node and npm
|
# Install nvm with node and npm
|
||||||
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
|
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
|
||||||
|
|
||||||
|
RUN bash -c "source $NVM_DIR/nvm.sh \
|
||||||
|
&& nvm install $NODE_VERSION_STABLE \
|
||||||
|
&& nvm alias default $NODE_VERSION_STABLE \
|
||||||
|
&& nvm use default \
|
||||||
|
&& npm config set unsafe-perm true \
|
||||||
|
&& npm install -g agentkeepalive \
|
||||||
|
&& npm install -g npm"
|
||||||
|
|
||||||
|
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules
|
||||||
|
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_STABLE/bin:$PATH
|
||||||
|
|
||||||
|
ENV PNPM_HOME="/root/.local/share/pnpm/pnpm"
|
||||||
|
RUN mkdir -p ${PNPM_HOME}
|
||||||
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm && pnpm -v
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
FROM node:17.8.0-alpine
|
FROM node:19.0.0-alpine
|
||||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
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
|
|
||||||
|
|
||||||
|
#pnpm
|
||||||
|
ENV PNPM_HOME="/root/.local/share/pnpm/pnpm"
|
||||||
|
RUN mkdir -p ${PNPM_HOME}
|
||||||
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
RUN curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" -o /bin/pnpm; chmod +x /bin/pnpm;
|
||||||
|
RUN pnpm -v
|
||||||
|
|
||||||
ENV NODE_OPTIONS="--max_old_space_size=1000"
|
ENV NODE_OPTIONS="--max_old_space_size=1000"
|
10
Dockerfile_alpinenpmci
Normal file
10
Dockerfile_alpinenpmci
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM hosttoday/ht-docker-node:alpine
|
||||||
|
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
|
||||||
|
RUN apk add --update alpine-sdk && \
|
||||||
|
apk add libffi-dev openssl-dev && \
|
||||||
|
apk add python3-dev && \
|
||||||
|
pnpm install -g @shipzone/npmci node-gyp
|
@ -1,4 +1,4 @@
|
|||||||
FROM hosttoday/ht-docker-node:stable as stage1
|
FROM hosttoday/ht-docker-node:latest as stage1
|
||||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM hosttoday/ht-docker-node:stable
|
FROM hosttoday/ht-docker-node:latest
|
||||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||||
|
|
||||||
RUN npm install -g @shipzone/npmci
|
RUN pnpm install -g @shipzone/npmci
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
FROM hosttoday/ht-docker-node:latest
|
|
||||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
|
||||||
|
|
||||||
RUN bash -c "source $NVM_DIR/nvm.sh \
|
|
||||||
&& nvm install $NODE_VERSION_STABLE \
|
|
||||||
&& nvm alias default $NODE_VERSION_STABLE \
|
|
||||||
&& nvm use default \
|
|
||||||
&& npm config set unsafe-perm true \
|
|
||||||
&& npm install -g agentkeepalive \
|
|
||||||
&& npm install -g npm"
|
|
||||||
|
|
||||||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules
|
|
||||||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_STABLE/bin:$PATH
|
|
@ -1,4 +1,4 @@
|
|||||||
FROM hosttoday/ht-docker-node:stable
|
FROM hosttoday/ht-docker-node:latest
|
||||||
# Add Tini
|
# Add Tini
|
||||||
ENV TINI_VERSION v0.19.0
|
ENV TINI_VERSION v0.19.0
|
||||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
FROM hosttoday/ht-docker-node:lts
|
|
||||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
|
||||||
RUN npm set registry https://verdaccio.lossless.one
|
|
||||||
RUN npm install -g @shipzone/npmci @gitzone/tsdocker @gitzone/tsrun
|
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-node",
|
"name": "ht-docker-node",
|
||||||
"version": "5.0.80",
|
"version": "5.0.98",
|
||||||
"lockfileVersion": 1
|
"lockfileVersion": 1
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ht-docker-node",
|
"name": "ht-docker-node",
|
||||||
"version": "5.0.80",
|
"version": "5.0.98",
|
||||||
"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": {
|
||||||
|
@ -6,5 +6,5 @@ npmci -v
|
|||||||
npmci node install stable
|
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 pnpm install -g @gitzone/tsrun
|
||||||
npmci command tsrun -v
|
npmci command tsrun -v
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# npm
|
# npm
|
||||||
npm -v
|
npm -v
|
||||||
node -v
|
node -v
|
||||||
npm install -g @gitzone/tsrun
|
pnpm install -g @gitzone/tsrun
|
||||||
# tsrun -v
|
tsrun -v
|
17
tslint.json
17
tslint.json
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["tslint:latest", "tslint-config-prettier"],
|
|
||||||
"rules": {
|
|
||||||
"semicolon": [true, "always"],
|
|
||||||
"no-console": false,
|
|
||||||
"ordered-imports": false,
|
|
||||||
"object-literal-sort-keys": false,
|
|
||||||
"member-ordering": {
|
|
||||||
"options":{
|
|
||||||
"order": [
|
|
||||||
"static-method"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaultSeverity": "warning"
|
|
||||||
}
|
|
Reference in New Issue
Block a user