Commit e93422c7 authored by Heimo Stranner's avatar Heimo Stranner
Browse files

add node-non-root-18

parent 6ec44064
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -13,12 +13,6 @@ stages:
    - cd $DIR && podman build --format=docker $BUILDARG -t registry.reset.inso-w.at/pub/docker/$NAME .
    - if [ "$CI_COMMIT_REF_NAME" == "master" ] ; then podman push registry.reset.inso-w.at/pub/docker/$NAME ; fi

build-nodetest:
  extends: .build-base
  variables:
    DIR: node-test
    NAME: nodetest

build-cypress:
  extends: .build-base
  variables:
@@ -55,6 +49,12 @@ build-gitinspector:
    DIR: gitinspector
    NAME: gitinspector

build-node-non-root-18:
  extends: .build-base
  variables:
    DIR: node-non-root-18
    NAME: node-non-root-18

.mirror-base:
  stage: build
  resource_group: lock_docker_build_$FROM_$TO

Dockerfile

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
FROM elswork/theia
USER root
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing kubectl
USER node
 No newline at end of file
+11 −0
Original line number Diff line number Diff line
@@ -6,6 +6,17 @@ If you find yourself installing packages in a stock docker image during your bui

## Custom images

### Node 18 rootless

`registry.reset.inso-w.at/pub/docker/node-non-root-18` is based on the node:18 image but adds a user `build` and sets it as the default user. This is done primarily to prevent things like `npm ci` to run into errors like

`
npm ERR! code EPERM
npm ERR! syscall spawn
npm ERR! errno -1
npm ERR! Error: spawn EPERM
`

### Custom cypress image

The stock cypress base image is based on debian 10, ours is based on debian 11 so we can install version 17 of the openjdk.
+0 −0

File moved.