Compare commits
59 Commits
Author | SHA1 | Date | |
---|---|---|---|
53962dc4c4 | |||
1687273fd2 | |||
d8bdab5b8d | |||
7a6f2f319e | |||
5160ed1348 | |||
b5e8ac3b59 | |||
bfb1b80180 | |||
3e0006f243 | |||
60e9a2a207 | |||
7422d9c146 | |||
5821c9f6e6 | |||
28746e0349 | |||
65cae1e013 | |||
39f8227d1e | |||
7831edc5f0 | |||
66699e8b07 | |||
d7dd21bd69 | |||
ad2fc45c8b | |||
02cdabd87b | |||
e704131949 | |||
c4b79e9d40 | |||
df97e0f010 | |||
1a7aa7b178 | |||
b1c1efce87 | |||
c399621989 | |||
e81806e9cc | |||
b7961e0cf4 | |||
2319975b25 | |||
c070b80cad | |||
aaace28106 | |||
7c4a71cd4c | |||
1c0837c509 | |||
1912e3c727 | |||
e758a35e0a | |||
5a3c7369d9 | |||
8b91eafe26 | |||
3ce538e94f | |||
00f0fae876 | |||
ebb82a445c | |||
7ec5a147c9 | |||
385780e50c | |||
b894a361bd | |||
f0747237cf | |||
89ba2f5a9f | |||
c295ad18be | |||
afad2c3654 | |||
409b0c60a1 | |||
feb57f1d36 | |||
80f0a0d9dc | |||
c2ba244375 | |||
f859d910b6 | |||
bc71510cd1 | |||
181b3643b1 | |||
85bee13ba9 | |||
74c60c8d4f | |||
0c5f20ed36 | |||
4066098153 | |||
a9fcf3c64e | |||
03cdeb1cd4 |
@ -36,6 +36,7 @@ release:
|
||||
- npmci docker build
|
||||
- npmci docker test
|
||||
- npmci docker push registry.gitlab.com
|
||||
- npmci docker push docker.io
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
|
23
Dockerfile
23
Dockerfile
@ -1,9 +1,9 @@
|
||||
FROM ubuntu:20.04
|
||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||
LABEL author="Task Venture Capital GmbH <hello@task.vc>"
|
||||
|
||||
WORKDIR /workspace
|
||||
# important environment variables
|
||||
ENV NODE_VERSION_LTS="16.16.0" NODE_VERSION_STABLE="18.7.0" NVM_DIR="/usr/local/nvm"
|
||||
ENV NODE_VERSION_LTS="20.12.2" NODE_VERSION_STABLE="20.12.2" NVM_DIR="/usr/local/nvm"
|
||||
|
||||
# Set debconf to run non-interactively and install packages
|
||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
||||
@ -65,6 +65,9 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
libnss3 \
|
||||
lsb-release \
|
||||
xdg-utils \
|
||||
# network
|
||||
iputils-ping \
|
||||
dnsutils \
|
||||
|
||||
# chrome
|
||||
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
||||
@ -82,18 +85,18 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
# Install nvm with node and npm
|
||||
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
|
||||
|
||||
# prepare pnpm
|
||||
ENV PNPM_HOME="/root/.local/share/pnpm/pnpm"
|
||||
RUN mkdir -p ${PNPM_HOME}
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
|
||||
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"
|
||||
&& curl -fsSL https://get.pnpm.io/install.sh | bash - \
|
||||
&& pnpm -v \
|
||||
&& pnpm config set unsafe-perm true"
|
||||
|
||||
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,14 +1,9 @@
|
||||
FROM node:18.7.0-alpine
|
||||
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
|
||||
FROM node:18.15.0-alpine
|
||||
LABEL author="Task Venture Capital GmbH <hello@task.vc>"
|
||||
|
||||
#pnpm
|
||||
ENV PNPM_HOME="/root/.local/share/pnpm/pnpm"
|
||||
RUN mkdir -p ${PNPM_HOME}
|
||||
RUN apk add --no-cache curl iputils bind-tools bash && 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
|
||||
|
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,5 +1,5 @@
|
||||
FROM hosttoday/ht-docker-node:latest as stage1
|
||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||
LABEL author="Task Venture Capital GmbH <hello@task.vc>"
|
||||
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
|
||||
# update-binfmts --enable qemu-arm \
|
||||
|
@ -1,13 +1,8 @@
|
||||
FROM hosttoday/ht-docker-node:latest
|
||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||
LABEL author="Task Venture Capital GmbH <hello@task.vc>"
|
||||
|
||||
RUN bash -c "source $NVM_DIR/nvm.sh \
|
||||
&& nvm install $NODE_VERSION_LTS \
|
||||
&& nvm alias default $NODE_VERSION_LTS \
|
||||
&& nvm use default \
|
||||
&& npm config set unsafe-perm true \
|
||||
&& npm install -g agentkeepalive \
|
||||
&& npm install -g npm"
|
||||
&& nvm install $NODE_VERSION_LTS"
|
||||
|
||||
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules
|
||||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_LTS/bin:$PATH
|
@ -1,4 +1,4 @@
|
||||
FROM hosttoday/ht-docker-node:latest
|
||||
LABEL author="Lossless GmbH <hello@lossless.com>"
|
||||
LABEL author="Task Venture Capital GmbH <hello@task.vc>"
|
||||
|
||||
RUN pnpm install -g @shipzone/npmci
|
||||
|
5
Dockerfile_preinstalled
Normal file
5
Dockerfile_preinstalled
Normal file
@ -0,0 +1,5 @@
|
||||
FROM hosttoday/ht-docker-node:npmci
|
||||
WORKDIR /
|
||||
|
||||
RUN npm init -y
|
||||
RUN npm install @git.zone/tsrun @git.zone/tstest @push.rocks/qenv @push.rocks/smartfile @push.rocks/smartpath @push.rocks/smartshell @push.rocks/tapbundle axios @push.rocks/smartdelay @push.rocks/smartjson
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"gitzone": {
|
||||
"module": {
|
||||
"githost": "gitlab.com",
|
||||
"githost": "code.foss.global",
|
||||
"gitscope": "hosttoday",
|
||||
"gitrepo": "ht-docker-node",
|
||||
"shortDescription": "docker image with nodejs and shipzone.io support",
|
||||
@ -14,5 +14,8 @@
|
||||
"docker.io",
|
||||
"registry.gitlab.com"
|
||||
]
|
||||
},
|
||||
"tsdoc": {
|
||||
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||
}
|
||||
}
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "ht-docker-node",
|
||||
"version": "5.0.87",
|
||||
"version": "5.0.117",
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ht-docker-node",
|
||||
"version": "5.0.87",
|
||||
"version": "5.0.117",
|
||||
"description": "docker image with nodejs and shipzone.io support",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
1
readme.hints.md
Normal file
1
readme.hints.md
Normal file
@ -0,0 +1 @@
|
||||
|
@ -1,11 +1,10 @@
|
||||
# check if npmci is available
|
||||
npm init -y
|
||||
npmci -v
|
||||
npm set registry https://verdaccio.lossless.one
|
||||
|
||||
# TODO update npmci to not require package.json
|
||||
npmci node install stable
|
||||
|
||||
# check if npm picks it up
|
||||
npmci command npm install -g @gitzone/tsrun
|
||||
npmci command pnpm install -g @gitzone/tsrun
|
||||
npmci command tsrun -v
|
||||
|
@ -1,6 +1,5 @@
|
||||
# npm
|
||||
npm -v
|
||||
node -v
|
||||
npm set registry https://verdaccio.lossless.one
|
||||
npm install -g @gitzone/tsrun
|
||||
# tsrun -v
|
||||
pnpm install -g @gitzone/tsrun
|
||||
tsrun -v
|
14
tsconfig.json
Normal file
14
tsconfig.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"experimentalDecorators": true,
|
||||
"useDefineForClassFields": false,
|
||||
"target": "ES2022",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"esModuleInterop": true,
|
||||
"verbatimModuleSyntax": true
|
||||
},
|
||||
"exclude": [
|
||||
"dist_*/**/*.d.ts"
|
||||
]
|
||||
}
|
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