Skip to content

Commit

Permalink
Disable update-notifier for NPM (#29)
Browse files Browse the repository at this point in the history
* Disable update-notifier for NPM

* Update NPM on docker build

* Change maintainer email

* Remove npm updates on unsupported versions

* Replace remaining emails
  • Loading branch information
Harry W authored Jun 17, 2024
1 parent f2e012b commit 9096b27
Show file tree
Hide file tree
Showing 57 changed files with 66 additions and 57 deletions.
2 changes: 1 addition & 1 deletion bot/bastion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM node:18-bullseye

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

## install mongo
RUN wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | apt-key add - \
Expand Down
2 changes: 1 addition & 1 deletion bot/lavalink/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM openjdk:17-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install -y curl ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 \
Expand Down
2 changes: 1 addition & 1 deletion bot/modmail/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM python:3.9-slim-bullseye

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt update \
&& apt install -y gnupg build-essential git netcat ffmpeg iproute2 curl tzdata wget \
Expand Down
2 changes: 1 addition & 1 deletion bot/redbot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM python:3.11-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN mkdir -p /usr/share/man/man1
RUN apt update \
Expand Down
2 changes: 1 addition & 1 deletion dotnet/dotnet-3.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion dotnet/dotnet-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion dotnet/dotnet-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion games/bdsx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM alpine:latest

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apk add --no-cache --update nodejs npm wine freetype git bash \
&& adduser -D -h /home/container container
Expand Down
2 changes: 1 addition & 1 deletion games/cs2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ----------------------------------
FROM registry.gitlab.steamos.cloud/steamrt/sniper/platform

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive
USER container
Expand Down
2 changes: 1 addition & 1 deletion games/dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt update -y \
&& apt upgrade -y \
Expand Down
2 changes: 1 addition & 1 deletion games/liteloader-bds/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

## install required packages
RUN dpkg --add-architecture i386 \
Expand Down
2 changes: 1 addition & 1 deletion games/proton/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN dpkg --add-architecture i386 \
&& apt update \
Expand Down
2 changes: 1 addition & 1 deletion games/rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM ubuntu:18.04

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion games/source/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion games/unturned-mh/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion games/unturned-preview/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion games/unturned/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion games/valheim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion games/wine-latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

## install required packages
RUN dpkg --add-architecture i386 \
Expand Down
2 changes: 1 addition & 1 deletion games/wine-staging/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

## install required packages
RUN dpkg --add-architecture i386 \
Expand Down
2 changes: 1 addition & 1 deletion generic/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

ENV DEBIAN_FRONTEND noninteractive

Expand Down
2 changes: 1 addition & 1 deletion generic/mono/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install -y fontconfig dirmngr curl ca-certificates openssl git tar tzdata iproute2 \
Expand Down
2 changes: 1 addition & 1 deletion generic/wine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM alpine:latest

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apk update
RUN apk add wget && apk add unzip bash
Expand Down
2 changes: 1 addition & 1 deletion golang/golang-121/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM golang:1.21

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

USER container
ENV USER=container HOME=/home/container LANG=C.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion java/anti-malware/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM openjdk:17-slim-bullseye

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl -y \
Expand Down
2 changes: 1 addition & 1 deletion java/java-jre11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bookworm-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl ca-certificates unzip tar jq -y \
Expand Down
2 changes: 1 addition & 1 deletion java/java-jre16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bookworm-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl ca-certificates unzip tar jq -y \
Expand Down
2 changes: 1 addition & 1 deletion java/java-jre17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bookworm-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl ca-certificates unzip tar jq font-manager -y \
Expand Down
2 changes: 1 addition & 1 deletion java/java-jre18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bookworm-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl ca-certificates unzip tar jq -y \
Expand Down
2 changes: 1 addition & 1 deletion java/java-jre19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bookworm-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl ca-certificates unzip tar jq -y \
Expand Down
2 changes: 1 addition & 1 deletion java/java-jre20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bookworm-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl ca-certificates unzip tar jq -y \
Expand Down
2 changes: 1 addition & 1 deletion java/java-jre21/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bookworm-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl ca-certificates unzip tar jq -y \
Expand Down
2 changes: 1 addition & 1 deletion java/java-jre22/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bookworm-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl ca-certificates unzip tar jq -y \
Expand Down
2 changes: 1 addition & 1 deletion java/java-jre8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM debian:bookworm-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt-get update -y \
&& apt-get install fontconfig iproute2 curl ca-certificates unzip tar jq -y \
Expand Down
3 changes: 3 additions & 0 deletions nodejs/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ echo "Discord.js version: ${DJS_VER}"
# Make internal Docker IP address available to processes.
export INTERNAL_IP=`ip route get 1 | awk '{print $(NF-2);exit}'`

# Disable NPM update notifications (https://github.com/sparkedhost/images/issues/28)
echo "update-notifier=false" > ~/.npmrc

# Replace Startup Variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo "customer@apollopanel:~# ${MODIFIED_STARTUP}"
Expand Down
2 changes: 1 addition & 1 deletion nodejs/nodejs-12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM node:12-bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt update \
&& apt -y install git gcc g++ ca-certificates dnsutils curl iproute2 ffmpeg procps python3 build-essential libcairo2-dev libpango1.0-dev libgif-dev librsvg2-dev libjpeg62-turbo-dev libc6 musl-dev libnss3 \
Expand Down
2 changes: 1 addition & 1 deletion nodejs/nodejs-13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM node:13-buster-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt update \
&& apt -y install git gcc g++ ca-certificates dnsutils curl iproute2 ffmpeg procps python3 build-essential libcairo2-dev libpango1.0-dev libgif-dev librsvg2-dev libjpeg62-turbo-dev libc6 libnss3 \
Expand Down
2 changes: 1 addition & 1 deletion nodejs/nodejs-14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM node:14-bullseye-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt update \
&& apt -y install git gcc g++ ca-certificates screen dnsutils curl iproute2 ffmpeg procps python3 build-essential libcairo2-dev libpango1.0-dev libgif-dev librsvg2-dev libjpeg62-turbo-dev libc6 libnss3 \
Expand Down
2 changes: 1 addition & 1 deletion nodejs/nodejs-15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM node:15-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt update \
&& apt -y install git gcc g++ ca-certificates dnsutils curl iproute2 ffmpeg procps python3 build-essential libcairo2-dev libpango1.0-dev libgif-dev librsvg2-dev libjpeg62-turbo-dev libc6 libnss3 \
Expand Down
4 changes: 3 additions & 1 deletion nodejs/nodejs-16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM node:16-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt update \
&& apt -y install git gcc g++ ca-certificates dnsutils curl iproute2 ffmpeg procps python3 build-essential libcairo2-dev libpango1.0-dev libgif-dev librsvg2-dev libjpeg62-turbo-dev libc6 fonts-noto libtool libnss3 \
Expand All @@ -14,6 +14,8 @@ RUN apt update \
ADD ca.crt /usr/local/share/ca-certificates/sparked-ca.crt
RUN chmod 644 /usr/local/share/ca-certificates/sparked-ca.crt && update-ca-certificates

RUN npm install -g npm@latest

USER container
ENV USER=container HOME=/home/container

Expand Down
2 changes: 1 addition & 1 deletion nodejs/nodejs-17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM node:17-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt update \
&& apt -y install git gcc g++ ca-certificates dnsutils curl iproute2 ffmpeg procps python3 build-essential libcairo2-dev libpango1.0-dev libgif-dev librsvg2-dev libjpeg62-turbo-dev libc6 libnss3 \
Expand Down
4 changes: 3 additions & 1 deletion nodejs/nodejs-18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

FROM node:18-slim

LABEL author="DevOps Team at Sparked Host" maintainer="sysadmin@sparkedhost.com"
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"

RUN apt update \
&& apt -y install git gcc g++ ca-certificates dnsutils curl iproute2 ffmpeg procps python3 build-essential libcairo2-dev libpango1.0-dev libgif-dev librsvg2-dev libjpeg62-turbo-dev libc6 libnss3 \
Expand All @@ -14,6 +14,8 @@ RUN apt update \
ADD ca.crt /usr/local/share/ca-certificates/sparked-ca.crt
RUN chmod 644 /usr/local/share/ca-certificates/sparked-ca.crt && update-ca-certificates

RUN npm install -g npm@latest

USER container
ENV USER=container HOME=/home/container

Expand Down
Loading

0 comments on commit 9096b27

Please sign in to comment.