Switching to Node 21, updating to latest docker for CI, changing GID to 1000, adding back angular-cli, more README

This commit is contained in:
Torsten Raudssus 2024-03-31 00:20:24 +01:00
parent 0aaa3d2ff3
commit 5015a35ef8
4 changed files with 31 additions and 6 deletions

View file

@ -24,6 +24,7 @@ table_meta*
/*.pdf /*.pdf
.gitignore .gitignore
.bash_history
node_modules node_modules
local local

View file

@ -1,4 +1,4 @@
image: docker:20.10.16 image: docker:latest
variables: variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
@ -9,7 +9,7 @@ stages:
- release - release
services: services:
- docker:20.10.16-dind - docker:dind
build: build:
stage: build stage: build

View file

@ -1,7 +1,7 @@
FROM node:20-bookworm FROM node:21-bookworm
ARG SRV_UID="1000" ARG SRV_UID="1000"
ARG SRV_GID="100" ARG SRV_GID="1000"
ARG SRV_VERSION="0" ARG SRV_VERSION="0"
ENV SRV_UID $SRV_UID ENV SRV_UID $SRV_UID
@ -14,7 +14,7 @@ RUN apt-get update -y && apt-get install -y jq $SRV_APT_GET_INSTALL \
RUN id $SRV_UID || useradd -s /bin/bash -d /app -u $SRV_UID -g $SRV_GID srv RUN id $SRV_UID || useradd -s /bin/bash -d /app -u $SRV_UID -g $SRV_GID srv
RUN npm install -g ember-cli@5.6.0 npm@10.4.0 RUN npm install -g ember-cli@5.7.0 @angular/cli@17.3.2 npm@10.4.0
COPY ./docker-entrypoint.sh /docker-entrypoint.sh COPY ./docker-entrypoint.sh /docker-entrypoint.sh

View file

@ -1,4 +1,28 @@
# Alias for bash # MinIO Image
## How To Use
### Args
#### SRV_UID
User ID for the MinIO daemon and so of the data (Default: 1000)
#### SRV_GID
Group ID for the MinIO daemon and so of the data (Default: 1000)
#### SRV_APT_GET_INSTALL
Additional Debian modules installed
### Image Name
```
docker.ci/srv/node:latest
```
### Alias for bash
```shell ```shell
alias srvnode='docker run --rm -it -v $(pwd):/app docker.ci/srv/node:latest' alias srvnode='docker run --rm -it -v $(pwd):/app docker.ci/srv/node:latest'