Compare commits

..

No commits in common. "ea563b90c6bd953eeb7822614312f2809efbed2d" and "3a5cef10edc2af0cd2f94c58a5c839c876d6a99a" have entirely different histories.

6 changed files with 6 additions and 74 deletions

View file

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

View file

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

View file

@ -1,7 +1,7 @@
FROM node:22-bookworm
FROM node:18-bullseye
ARG SRV_UID="1000"
ARG SRV_GID="1000"
ARG SRV_GID="100"
ARG SRV_VERSION="0"
ENV SRV_UID $SRV_UID
@ -14,8 +14,6 @@ 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 npm install -g ember-cli@5.10.0 @angular/cli@18.1.2 npm@10.8.2
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
USER $SRV_UID:$SRV_GID

View file

@ -1,31 +1,5 @@
# Node 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
```
src.ci/srv/node:latest
```
### Alias for bash
# Alias for bash
```shell
alias srvnode='docker run --rm -it -v $(pwd):/app src.ci/srv/node:latest'
alias srvnode='docker run --rm -it -v $(pwd):/app docker.ci/srv/node:latest'
```
Alternative you can use the included `srvnode` command in the `ex` directory

View file

@ -2,17 +2,6 @@
export IP=$( hostname -i )
cat <<EOF
__ _
___ _ ____ __ / / _ __ ___ __| | ___
/ __| '__\ \ / / / / | '_ \ / _ \ / _\` |/ _ \\
\__ \ | \ V / / / | | | | (_) | (_| | __/
|___/_| \_/ /_/ |_| |_|\___/ \__,_|\___|
------------------------------------------------
IP: $IP
EOF
if [[ ! -d "node_modules" ]]; then
echo "node_modules does not exist."
if [[ -f "package.json" ]]; then

View file

@ -1,28 +0,0 @@
#!/bin/bash
DOCKER_RUN_CMD="docker run --rm -it"
VOLUMES="-v $(pwd):/app"
if [[ -f "$HOME/.gitconfig" ]]
then
VOLUMES="$VOLUMES -v $HOME/.gitconfig:/home/node/.gitconfig"
fi
if [[ -d "$HOME/.ssh" ]]
then
VOLUMES="$VOLUMES -v $HOME/.ssh:/home/node/.ssh"
fi
DOCKER_RUN_CMD="$DOCKER_RUN_CMD $VOLUMES docker.ci/srv/node:latest"
shift
if [[ -z "$@" ]]
then
echo Executing: $DOCKER_RUN_CMD bash
exec $DOCKER_RUN_CMD bash
else
echo Executing: $DOCKER_RUN_CMD $@
exec $DOCKER_RUN_CMD $@
fi