Commit graph

44 commits

Author SHA1 Message Date
Evan Read
800aeab3d8 Make image based on Ruby 3.2.2 and Node.js 18.16.0 2023-04-20 04:45:56 +00:00
Evan Read
0401bbf92f Add new Ruby 3.2 version of www-gitlab-com Docker image 2023-03-07 03:57:18 +00:00
Evan Read
5a1ee91e9d Revert "Merge branch 'eread/add-ruby-3_2-www_gitlab_com-image' into 'master'" 2023-03-06 06:30:06 +00:00
Evan Read
b5cc37433d Add Ruby 3.2 version of www-gitlab-com Docker image 2023-03-06 05:54:13 +00:00
Stan Hu
b98a693a2c
Revert "Fix www-gitlab-com image with rsync patch"
This reverts commit dc4fb0a36a.
2023-01-19 09:32:40 -08:00
Stan Hu
dc4fb0a36a
Fix www-gitlab-com image with rsync patch
gsutil updated the rsync class in
https://github.com/GoogleCloudPlatform/gsutil/pull/1642. This patch
ports https://github.com/GoogleCloudPlatform/gsutil/pull/1430 to the
latest version. We should eventually remove this patch and solve the
issue via
https://gitlab.com/gitlab-com/marketing/digital-experience/buyer-experience/-/issues/291.
2023-01-18 21:58:53 -08:00
Andrejs Cunskis
0be7ce1245 Add arm capability without pushing and building images 2022-09-22 08:17:17 +00:00
Balasankar 'Balu' C
514f304d5f Revert "Merge branch 'multiarch-images' into 'master'"
This reverts merge request !577
2022-09-19 10:15:53 +00:00
Andrejs Cunskis
1ecbd61785 Capability to build arm64 docker images 2022-09-19 08:11:34 +00:00
Rémy Coutable
ef9588d93a Merge branch 'tnir-yarn-1.22.19-on-www-gitlab-com' into 'master'
Update Yarn from 1.22.10 to 1.22.19 in www-gitlab-com image

See merge request gitlab-org/gitlab-build-images!573
2022-08-23 09:08:45 +00:00
Takuya Noguchi
8fdc02afff Update debian from buster to bullseye in www-gitlab-com
to update yamllint from 1.25.0 to 1.26.0-2

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-08-14 09:04:32 +00:00
Takuya Noguchi
e7f6430158 Update Yarn from 1.22.10 to 1.22.19 in www-gitlab-com image
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-08-14 08:02:04 +00:00
Balasankar "Balu" C
0dea43ac3b
Support using OS other than Debian as base for custom images
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
2022-07-04 16:30:29 +05:30
Vitaly Slobodin
1776923a4d Bump Node.js to 16.14.2
https://nodejs.org/en/blog/vulnerability/mar-2022-security-releases/
2022-03-18 10:07:36 +03:00
Stan Hu
edbe08f360
Update nodejs to v16.14.0
This matches the update in
https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/99215.

This also renames the image from `www-gitlab-com-3.0` to
`www-gitlab-com-ruby-3.0-node-16` to make it possible to roll this
change out properly.
2022-03-07 13:26:17 -08:00
Stan Hu
519554013c
Add custom www-gitlab-com image with patched gsutil rsync command
Currently the `gsutil rsync` command does not support the `-z` or `-Z`
options available in `gsutil cp` to compress files locally via gzip
before uploading
(https://github.com/GoogleCloudPlatform/gsutil/issues/579). As
https://cloud.google.com/storage/docs/gsutil/commands/cp states:

When you specify the -z option, the data from your files is
compressed before it is uploaded, but your actual files are left
uncompressed on the local disk. The uploaded objects retain the
Content-Type and name of the original files, but have their
Content-Encoding metadata set to gzip to indicate that the object data
stored are compressed on the Cloud Storage servers and have their
Cache-Control metadata set to no-transform.

about.gitlab.com is currently serving uncompressed HTML files because
`Cache-Control: max-age=0` is set (see
https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/87045),
and Fastly has a custom rule to skip HTML files and therefore won't
cache them.

This patches the `rsync.py` using
https://github.com/GoogleCloudPlatform/gsutil/pull/1430 to support these
command-line options so local gzip compression can be performed.

Relates to
https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/14852
2022-01-05 08:37:26 -08:00
Jan Provaznik
8bd9fd997e Use C.UTF-8 2021-12-13 10:31:08 +00:00
Lukas Eipert
5726967649 Remove Pandoc and LaTeX from www-gitlab-com image
With https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/81890
the last usage of pandoc / LaTeX was removed from the www-gitlab-com
repo. This happened more than 2 months ago, so removing it from the
image should be rather safe, especially considering we use merge trains.

It reduces the image size by around 500 MB.
2021-07-12 15:47:59 +02:00
Takuya Noguchi
12c52d4a9a Update Node.js from 12.4.0 to 12.22.1 for www-gitlab-com image
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2021-06-07 05:09:19 +00:00
Takuya Noguchi
e29a606bbc Use npm repo instead of apt on Yarn install
Co-authored-by: Lukas 'Eipi' Eipert <leipert@gitlab.com>
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2021-04-27 14:19:31 +00:00
Takuya Noguchi
172a4ac8e7 Update Ruby 2.6 to 2.7 in www-gitlab-com image
Drops Ruby 2.4 test and build.

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2021-01-29 15:11:27 +00:00
Stan Hu
3bf80b1b64 Bump yamllint version to 1.25.0
https://packages.debian.org/testing/yamllint bumped the version, so
the previous version no longer exists.
2021-01-07 22:04:06 +05:30
Vasilii Iakliushin
722983bf6b Fix: Could not perform immediate configuration on 'libcrypt1:amd64'
https://gitlab.com/gitlab-org/gitlab-build-images/-/jobs/801097436#L1727

Error message:
```
E: Could not configure 'libc6:amd64'.
E: Could not perform immediate configuration on
'libcrypt1:amd64'. Please see man 5 apt.conf under
APT::Immediate-Configure for details. (2)
```
2020-10-20 16:20:47 +02:00
Craig Furman
a0cf0d57ca
Update yamllint
The old version, 1.23.0, looks to have been pulled from the repos:
https://gitlab.com/gitlab-org/gitlab-build-images/-/jobs/669766401
2020-08-04 09:52:16 +01:00
Chad Woolley
a24216113f Add python3-crcmod to www-gitlab-com image
Apparently gsutil started using python3. Leaving the python2 version just in case it's needed too
2020-07-21 17:12:59 -07:00
Achilleas Pipinellis
b7073662ed
Install latest yamllint from Debian testing
Needed for
https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/47628
2020-06-04 16:12:53 +02:00
Chad Woolley
c1308cd52f Add www-gitlab-com python-crcmod
To optimize gsutil rsync commands
2020-05-28 15:31:05 -07:00
Chad Woolley
edc1ff095c Add Google cloud SDK to www-gitlab-com 2020-05-27 02:37:10 -07:00
Chad Woolley
865f5cb8d2 Add unzip to www-gitlab-com 2020-05-27 02:37:10 -07:00
Chad Woolley
dc7e538ef7 Clean up comments in www-gitlab-com 2020-05-26 23:10:16 -07:00
Achilleas Pipinellis
3857ddbeac
Add yamllint to the www-gitlab-com image
python3-pkg-resources was also added as a dependency, because there's
bug in Debian Stretch
http://debian.2.n7.nabble.com/Bug-917271-yamllint-requires-module-pkg-resources-but-does-not-depend-on-it-td4440193.html

Needed for
https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/47628
2020-05-25 16:02:56 +02:00
Lukas Eipert
034a8bd568
Update to yarn 1.21.1
Last year there was a recommended security update:
https://classic.yarnpkg.com/blog/2019/07/12/recommended-security-update/

This updates yarn to the latest stable version
2020-02-05 21:27:58 +01:00
Stan Hu
8189962da1 Pin www-gitlab-com build to Node v12.4
Similar to
https://gitlab.com/gitlab-org/gitlab-build-images/merge_requests/207,
Node v12.6 has memory issues. There may also be issues with getting yarn
and npx working in the current build.
2019-07-08 20:54:24 -07:00
Lukas Eipert
99881a2a6d
Add build images for node@12 2019-06-13 19:52:53 +02:00
Stan Hu
f0141c80a6 Merge branch 'master' into sh-add-rsync-www-gitlab-com 2018-11-12 07:52:20 -08:00
Stan Hu
343fbb26db Add rsync to www-gitlab-com package 2018-11-12 07:51:02 -08:00
Lukas Eipert
35fc800e29
Install imagemagick in www-gitlab-com docker image 2018-10-30 17:41:13 +01:00
Stan Hu
f7494711f6 Clean up pandoc temporary files 2018-10-11 16:03:05 -07:00
Stan Hu
78aa73c6ce Install pandoc v2.3.1 to www-gitlab-com image 2018-10-11 19:33:19 +00:00
Lukas Eipert
5380948868
Ensure that package managers clean up
Every package manager should clean up after themselves in order to keep
docker layers neat and tiny:

apt (Debian/Ubuntu package manager):

 - unneeded dependencies are cleared (autoremove)
 - caches are cleaned (clean)
 - package lists are deleted

yum (CentOS package manager),
zypper (OpenSuse package manager)

 - should clear caches after installing dependencies

pip (Python package manager),
apk (Alpine package manager)

 - should use no cache for installing dependencies
2018-10-04 23:29:51 +02:00
Stan Hu
baeb1cc4da Install gnupg2 dependency only for www-gitlab-com 2018-05-26 13:57:58 -07:00
Andrew Newdigate
6725e787b0 Fix for bug that forces all Go binaries to be based on Go 1.8 (the default) 2017-12-21 11:55:07 +00:00
Achilleas Pipinellis
32f1fc197d Do not install recommends 2016-09-11 10:55:34 +02:00
Achilleas Pipinellis
17982033c2 Make the www-gitlab-com image smaller 2016-09-11 10:42:22 +02:00