diff --git a/.hadolint.yaml b/.hadolint.yaml deleted file mode 100644 index fb29ff61572..00000000000 --- a/.hadolint.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -ignored: - # PDL3007 asks you to pin the FROM version explicitly to a release tag. - - DL3007 - # PDL3007 asks you to pin apt packages to a release tag. - - DL3008 diff --git a/Dockerfile b/Dockerfile index b24479f212c..30a2d86d9ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,15 @@ ################### Asset Builder FROM node:22 AS build-assets +SHELL [ "/bin/bash", "-euo", "pipefail", "-c" ] ENV NO_UPDATE_NOTIFIER=1 WORKDIR /build/ -COPY package.json package-lock.json . +COPY package.json package-lock.json ./ RUN \ --mount=type=cache,target=/root/.npm,sharing=private \ -<= 0.30.2)' EOT WORKDIR /metacpan-web/ -COPY cpanfile cpanfile.snapshot . +COPY cpanfile cpanfile.snapshot ./ RUN \ --mount=type=cache,target=/root/.perl-cpm,sharing=private \ <= 21.6.1)' + npm install -g npm@^10.4.0 EOT -COPY package.json package-lock.json . +COPY package.json package-lock.json ./ RUN \ --mount=type=cache,target=/root/.npm,sharing=private \ <stash( { author => $data, errors => $res->{errors} } ); } else { - $c->purge_author_key( $data->{pauseid} ) if exists $data->{pauseid}; $c->stash( { success => 1, author => $res } ); } } diff --git a/t/lib/TestApp.pm b/t/lib/TestApp.pm deleted file mode 100644 index 8a5622a421d..00000000000 --- a/t/lib/TestApp.pm +++ /dev/null @@ -1,18 +0,0 @@ -use strict; -use warnings; - -package # no_index - TestApp; - -use Moose; -extends 'MetaCPAN::Web'; - -# If token returns a value the root controller will attempt to authenticate -# and then Plack::Session will error because something is missing. :-/ -sub token { - return; -} - -__PACKAGE__->meta->make_immutable; - -1; diff --git a/t/lib/TestContext.pm b/t/lib/TestContext.pm deleted file mode 100644 index 08d9c4b61b9..00000000000 --- a/t/lib/TestContext.pm +++ /dev/null @@ -1,19 +0,0 @@ -use strict; -use warnings; - -package # no_index - TestContext; - -use Catalyst::Test 'TestApp'; - -use parent 'Exporter'; - -our @EXPORT_OK = qw( - get_context -); - -sub get_context { - return ( ctx_request('/foo_not_real.txt') )[1]; -} - -1; diff --git a/t/model/release-info.t b/t/model/release-info.t index 90f4f23e0aa..6deb29ebc2e 100644 --- a/t/model/release-info.t +++ b/t/model/release-info.t @@ -1,7 +1,6 @@ use strict; use warnings; -use lib 't/lib'; use Test::More; use Module::Runtime qw( use_module );