Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imagehoster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
imagehoster
Commits
27445d41
Commit
27445d41
authored
5 years ago
by
justinw
Browse files
Options
Downloads
Patches
Plain Diff
sane image size default, fix failing ci build
parent
98c6caa9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+2
-6
2 additions, 6 deletions
Dockerfile
src/proxy.ts
+3
-0
3 additions, 0 deletions
src/proxy.ts
yarn.lock
+70
-76
70 additions, 76 deletions
yarn.lock
with
75 additions
and
82 deletions
Dockerfile
+
2
−
6
View file @
27445d41
...
...
@@ -14,9 +14,7 @@ RUN apk add \
RUN
apk add
\
--no-cache
\
--repository
https://alpine.global.ssl.fastly.net/alpine/edge/main
\
--repository
https://alpine.global.ssl.fastly.net/alpine/edge/testing
\
--repository
https://alpine.global.ssl.fastly.net/alpine/edge/community
\
--repository
https://alpine.global.ssl.fastly.net/alpine/v3.10/community
\
vips-dev
# install application dependencies
...
...
@@ -37,9 +35,7 @@ FROM node:10-alpine
WORKDIR
/app
RUN
apk add
\
--no-cache
\
--repository
https://alpine.global.ssl.fastly.net/alpine/edge/main
\
--repository
https://alpine.global.ssl.fastly.net/alpine/edge/testing
\
--repository
https://alpine.global.ssl.fastly.net/alpine/edge/community
\
--repository
https://alpine.global.ssl.fastly.net/alpine/v3.10/community
\
fftw vips
COPY
--from=build-stage /app/config config
COPY
--from=build-stage /app/lib lib
...
...
This diff is collapsed.
Click to expand it.
src/proxy.ts
+
3
−
0
View file @
27445d41
...
...
@@ -322,6 +322,9 @@ export async function proxyHandler(ctx: KoaContext) {
image
.
resize
(
width
,
height
).
crop
()
break
case
ScalingMode
.
Fit
:
if
(
!
width
)
{
width
=
maxWidth
}
if
(
!
height
)
{
height
=
maxHeight
}
image
.
resize
(
width
,
height
).
max
().
withoutEnlargement
()
break
}
...
...
This diff is collapsed.
Click to expand it.
yarn.lock
+
70
−
76
View file @
27445d41
...
...
@@ -9,39 +9,38 @@
dependencies:
"@babel/highlight" "^7.0.0"
"@babel/generator@^7.4.0", "@babel/generator@^7.
6.0
":
version "7.
6.0
"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.
6.0
.tgz#
e2c21efbfd3293ad819a2359b448f002bfdfda56
"
integrity sha512-
Ms8Mo7YBdMMn1BYuNtKuP/z0TgEIhbcyB8HVR6PPNYp4P61lMsABiS4A3VG1qznjXVCf3r+fVHhm4efTYVsySA
==
"@babel/generator@^7.4.0", "@babel/generator@^7.
7.4
":
version "7.
7.4
"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.
7.4
.tgz#
db651e2840ca9aa66f327dcec1dc5f5fa9611369
"
integrity sha512-
m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg
==
dependencies:
"@babel/types" "^7.
6.0
"
"@babel/types" "^7.
7.4
"
jsesc "^2.5.1"
lodash "^4.17.13"
source-map "^0.5.0"
trim-right "^1.0.1"
"@babel/helper-function-name@^7.
1.0
":
version "7.
1.0
"
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.
1.0
.tgz#a
0ceb01685f73355d4360c1247f582bfafc8ff53
"
integrity sha512-A
95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw
==
"@babel/helper-function-name@^7.
7.4
":
version "7.
7.4
"
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.
7.4
.tgz#a
b6e041e7135d436d8f0a3eca15de5b67a341a2e
"
integrity sha512-A
nkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ
==
dependencies:
"@babel/helper-get-function-arity" "^7.
0.0
"
"@babel/template" "^7.
1.0
"
"@babel/types" "^7.
0.0
"
"@babel/helper-get-function-arity" "^7.
7.4
"
"@babel/template" "^7.
7.4
"
"@babel/types" "^7.
7.4
"
"@babel/helper-get-function-arity@^7.
0.0
":
version "7.
0.0
"
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.
0.0
.tgz#
83572d4320e2a4657263734113c42868b64e49c3
"
integrity sha512-
r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ
==
"@babel/helper-get-function-arity@^7.
7.4
":
version "7.
7.4
"
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.
7.4
.tgz#
cb46348d2f8808e632f0ab048172130e636005f0
"
integrity sha512-
QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA
==
dependencies:
"@babel/types" "^7.
0.0
"
"@babel/types" "^7.
7.4
"
"@babel/helper-split-export-declaration@^7.
4
.4":
version "7.
4
.4"
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.
4
.4.tgz#
ff94894a340be78f53f06af038b205c49d993677
"
integrity sha512-
Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q
==
"@babel/helper-split-export-declaration@^7.
7
.4":
version "7.
7
.4"
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.
7
.4.tgz#
57292af60443c4a3622cf74040ddc28e68336fd8
"
integrity sha512-
guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug
==
dependencies:
"@babel/types" "^7.
4
.4"
"@babel/types" "^7.
7
.4"
"@babel/highlight@^7.0.0":
version "7.5.0"
...
...
@@ -52,39 +51,39 @@
esutils "^2.0.2"
js-tokens "^4.0.0"
"@babel/parser@^7.4.3", "@babel/parser@^7.
6.0
":
version "7.
6.0
"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.
6.0
.tgz#
3e05d0647432a8326cb28d0de03895ae5a57f39
b"
integrity sha512-
+o2q111WEx4srBs7L9eJmcwi655eD8sXniLqMB93TBK9GrNzGrxDWSjiqz2hLU0Ha8MTXFIP0yd9fNdP+m43ZQ
==
"@babel/parser@^7.4.3", "@babel/parser@^7.
7.4
":
version "7.
7.4
"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.
7.4
.tgz#
75ab2d7110c2cf2fa949959afb05fa346d2231b
b"
integrity sha512-
jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g
==
"@babel/template@^7.
1
.0", "@babel/template@^7.
4.0
":
version "7.
6.0
"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.
6.0
.tgz#
7f0159c7f5012230dad64cca42ec9bdb5c9536e6
"
integrity sha512-
5AEH2EXD8euCk446b7edmgFdub/qfH1SN6Nii3+fyXP807QRx9Q73A2N5hNwRRslC2H9sNzaFhsPubkS4L8oNQ
==
"@babel/template@^7.
4
.0", "@babel/template@^7.
7.4
":
version "7.
7.4
"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.
7.4
.tgz#
428a7d9eecffe27deac0a98e23bf8e3675d2a77b
"
integrity sha512-
qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw
==
dependencies:
"@babel/code-frame" "^7.0.0"
"@babel/parser" "^7.
6.0
"
"@babel/types" "^7.
6.0
"
"@babel/parser" "^7.
7.4
"
"@babel/types" "^7.
7.4
"
"@babel/traverse@^7.4.3":
version "7.
6.0
"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.
6.0
.tgz#
389391d510f79be7ce2ddd6717be66d3fed4b516
"
integrity sha512-
93t52SaOBgml/xY74lsmt7xOR4ufYvhb5c5qiM6lu4J/dWGMAfAh6eKw4PjLes6DI6nQgearoxnFJk60YchpvQ
==
version "7.
7.4
"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.
7.4
.tgz#
9c1e7c60fb679fe4fcfaa42500833333c2058558
"
integrity sha512-
P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw
==
dependencies:
"@babel/code-frame" "^7.5.5"
"@babel/generator" "^7.
6.0
"
"@babel/helper-function-name" "^7.
1.0
"
"@babel/helper-split-export-declaration" "^7.
4
.4"
"@babel/parser" "^7.
6.0
"
"@babel/types" "^7.
6.0
"
"@babel/generator" "^7.
7.4
"
"@babel/helper-function-name" "^7.
7.4
"
"@babel/helper-split-export-declaration" "^7.
7
.4"
"@babel/parser" "^7.
7.4
"
"@babel/types" "^7.
7.4
"
debug "^4.1.0"
globals "^11.1.0"
lodash "^4.17.13"
"@babel/types@^7.0.0",
"@babel/types@^7.4.0", "@babel/types@^7.
4.4", "@babel/types@^7.6.0
":
version "7.
6.1
"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.
6.1
.tgz#5
3abf3308add3ac2a2884d539151c57c4b3ac648
"
integrity sha512-
X7gdiuaCmA0uRjCmRtYJNAVCc/q+5xSgsfKJHqMN4iNLILX39677fJE1O40arPMh0TTtS9ItH67yre6c7k6t0g
==
"@babel/types@^7.4.0", "@babel/types@^7.
7.4
":
version "7.
7.4
"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.
7.4
.tgz#5
16570d539e44ddf308c07569c258ff94fde9193
"
integrity sha512-
cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA
==
dependencies:
esutils "^2.0.2"
lodash "^4.17.13"
...
...
@@ -711,10 +710,10 @@ commander@^2.12.1:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a"
integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==
commander@~2.20.
0
:
version "2.20.
0
"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.
0
.tgz#
d58bb2b5c1ee8f87b0d340027e9e94e222c5a422
"
integrity sha512-
7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjp
Q==
commander@~2.20.
3
:
version "2.20.
3
"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.
3
.tgz#
fd485e84c03eb4881c20722ba48035e8531aeb33
"
integrity sha512-
GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMc
Q==
commondir@^1.0.1:
version "1.0.1"
...
...
@@ -761,9 +760,9 @@ content-type@^1.0.4:
integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==
convert-source-map@^1.6.0:
version "1.
6
.0"
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.
6
.0.tgz#
51b537a8c43e0f04dec1993bffcdd504e758ac20
"
integrity sha512-
eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7
A==
version "1.
7
.0"
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.
7
.0.tgz#
17a2cb882d7f77d3490585e2ce6c524424a3a442
"
integrity sha512-
4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33o
A==
dependencies:
safe-buffer "~5.1.1"
...
...
@@ -1212,9 +1211,9 @@ glob@^7.1.1:
path-is-absolute "^1.0.0"
glob@^7.1.3:
version "7.1.
4
"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.
4
.tgz#
aa608a2f6c577ad357e1ae5a5c26d9a8d1969255
"
integrity sha512-
hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1
A==
version "7.1.
6
"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.
6
.tgz#
141f33b81a7c2492e125594307480c46679278a6
"
integrity sha512-
LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMB
A==
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
...
...
@@ -1229,9 +1228,9 @@ globals@^11.1.0:
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2:
version "4.2.
2
"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.
2
.tgz#
6f0952605d0140c1cfdb138ed005775b92d67b02
"
integrity sha512-
IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+
Q==
version "4.2.
3
"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.
3
.tgz#
4a12ff1b60376ef09862c2093edd908328be8423
"
integrity sha512-
a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWR
Q==
growl@1.10.5:
version "1.10.5"
...
...
@@ -1239,9 +1238,9 @@ growl@1.10.5:
integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==
handlebars@^4.1.2:
version "4.
2.0
"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.
2.0
.tgz#5
7ce8d2175b9bbb3d8b3cf3e4217b1aec8ddcb2e
"
integrity sha512-
Kb4xn5Qh1cxAKvQnzNWZ512DhABzyFNmsaJf3OAkWNa4NkaqWcNI8Tao8Tasi0/F4JD9oyG0YxuFyvyR57d+Gw
==
version "4.
5.3
"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.
5.3
.tgz#5
cf75bd8714f7605713511a56be7c349becb0482
"
integrity sha512-
3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA
==
dependencies:
neo-async "^2.6.0"
optimist "^0.6.1"
...
...
@@ -1302,9 +1301,9 @@ hmac-drbg@^1.0.0:
minimalistic-crypto-utils "^1.0.1"
hosted-git-info@^2.1.4:
version "2.8.
4
"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.
4
.tgz#
44119abaf4bc64692a16ace34700fed9c03e2546
"
integrity sha512-
pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ
==
version "2.8.
5
"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.
5
.tgz#
759cfcf2c4d156ade59b0b2dfabddc42a6b9c70c
"
integrity sha512-
kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg
==
http-assert@^1.3.0:
version "1.4.0"
...
...
@@ -2270,9 +2269,9 @@ resolve-from@^4.0.0:
integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
resolve@^1.10.0:
version "1.1
2.0
"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1
2.0
.tgz#
3fc644a35c84a48554609ff26ec52b66fa577df
6"
integrity sha512-
B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4
w==
version "1.1
3.1
"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1
3.1
.tgz#
be0aa4c06acd53083505abb35f4d66932ab35d1
6"
integrity sha512-
CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6
w==
dependencies:
path-parse "^1.0.6"
...
...
@@ -2734,11 +2733,6 @@ tree-kill@^1.2.0:
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.1.tgz#5398f374e2f292b9dcc7b2e71e30a5c3bb6c743a"
integrity sha512-4hjqbObwlh2dLyW4tcz0Ymw0ggoaVDMveUB9w8kFSQScdRLo0gxO9J7WFcUBo+W3C1TLdFIEwNOWebgZZ0RH9Q==
trim-right@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003"
integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=
ts-node@^7.0.0:
version "7.0.1"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf"
...
...
@@ -2810,11 +2804,11 @@ typescript@^2.7.1:
integrity sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==
uglify-js@^3.1.4:
version "3.
6.0
"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.
6.0
.tgz#
704681345c53a8b2079fb6cec294b05ead242ff
5"
integrity sha512-
W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+y
g==
version "3.
7.1
"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.
7.1
.tgz#
35c7de17971a4aa7689cd2eae0a5b39bb838c0c
5"
integrity sha512-
pnOF7jY82wdIhATVn87uUY/FHU+MDUdPLkmGFvGoclQmeu229eTkbG5gjGGBi3R7UuYYSEeYXY/TTY5j2aym2
g==
dependencies:
commander "~2.20.
0
"
commander "~2.20.
3
"
source-map "~0.6.1"
urijs@^1.19.0:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment