Skip to content

Commit

Permalink
chore: add docker images for node v22
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed Oct 31, 2024
1 parent 1f6b126 commit e2463d6
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 1 deletion.
1 change: 1 addition & 0 deletions .drone.star
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
def main(ctx):
versions = [
"latest",
"22",
"20",
"18",
"16",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ This project is licensed under the MIT License - see the [LICENSE](https://githu
## Copyright

```Text
Copyright (c) 2022 ownCloud GmbH
Copyright (c) 2024 ownCloud GmbH
```
37 changes: 37 additions & 0 deletions v22/Dockerfile.amd64
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM owncloud/ubuntu:20.04-amd64@sha256:de7decaa013d5933c855ed2475c36b3d5991a821e847da4be2ceeecb68f3093d

LABEL maintainer="ownCloud GmbH <[email protected]>" \
org.opencontainers.image.title="ownCloud CI NodeJS" \
org.opencontainers.image.vendor="ownCloud GmbH" \
org.opencontainers.image.authors="ownCloud GmbH" \
org.opencontainers.image.description="ownCloud CI NodeJS" \
org.opencontainers.image.documentation="https://github.com/owncloud-ci/nodejs.git" \
org.opencontainers.image.url="https://github.com/owncloud-ci/nodejs" \
org.opencontainers.image.source="https://github.com/owncloud-ci/nodejs"

ARG RETRY_VERSION

# renovate: datasource=github-releases depName=owncloud-ci/retry
ENV RETRY_VERSION="${RETRY_VERSION:-v2.0.0}"
# renovate: datasource=npm depName=pnpm
ENV PNPM_VERSION="${PNPM_VERSION:-9.12.3}"

VOLUME ["/var/www/owncloud"]

RUN apt-get update -y && \
apt-get install -y gettext git-core build-essential libfontconfig libpng16-16 lsb-release firefox && \
curl -SsfL -o /usr/local/bin/retry "https://github.com/owncloud-ci/retry/releases/download/v${RETRY_VERSION##v}/retry" && \
chmod 755 /usr/local/bin/retry && \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get update -y && \
apt-get install -y nodejs=22.11.0-1nodesource1 && \
wget -q -P /tmp https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
apt install -y /tmp/google-chrome-stable_current_amd64.deb && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force

COPY rootfs /
WORKDIR /var/www/owncloud
35 changes: 35 additions & 0 deletions v22/Dockerfile.arm64v8
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM owncloud/ubuntu:20.04-arm64v8@sha256:f2bf53708c8e5393371e106e621e8b458557da2bf7d056a79dc3b3a1ad98cb06

LABEL maintainer="ownCloud GmbH <[email protected]>" \
org.opencontainers.image.title="ownCloud CI NodeJS" \
org.opencontainers.image.vendor="ownCloud GmbH" \
org.opencontainers.image.authors="ownCloud GmbH" \
org.opencontainers.image.description="ownCloud CI NodeJS" \
org.opencontainers.image.documentation="https://github.com/owncloud-ci/nodejs.git" \
org.opencontainers.image.url="https://github.com/owncloud-ci/nodejs" \
org.opencontainers.image.source="https://github.com/owncloud-ci/nodejs"

ARG RETRY_VERSION

# renovate: datasource=github-releases depName=owncloud-ci/retry
ENV RETRY_VERSION="${RETRY_VERSION:-v2.0.0}"
# renovate: datasource=npm depName=pnpm
ENV PNPM_VERSION="${PNPM_VERSION:-9.12.3}"

VOLUME ["/var/www/owncloud"]

RUN apt-get update -y && \
apt-get install -y gettext git-core build-essential libfontconfig libpng16-16 lsb-release firefox && \
curl -SsfL -o /usr/local/bin/retry "https://github.com/owncloud-ci/retry/releases/download/v${RETRY_VERSION##v}/retry" && \
chmod 755 /usr/local/bin/retry && \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get update -y && \
apt-get install -y nodejs=22.11.0-1nodesource1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force

COPY rootfs /
WORKDIR /var/www/owncloud
11 changes: 11 additions & 0 deletions v22/manifest.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
image: owncloudci/nodejs:22
manifests:
- image: owncloudci/nodejs:22-amd64
platform:
architecture: amd64
os: linux
- image: owncloudci/nodejs:22-arm64v8
platform:
architecture: arm64
variant: v8
os: linux
Empty file added v22/rootfs/.keep
Empty file.

0 comments on commit e2463d6

Please sign in to comment.