112 Commits

Author SHA1 Message Date
Kazunori Kimura
fbcdd290be fix condition to apply patch during build gitlab
rewrite patch applying with find | while read chain
`if [[ -f ]]` with globbing may not works
2022-06-21 08:46:32 +09:00
Steven Achilles
0badf7cdd7 Use git instead of git-core 2022-05-05 19:53:52 +02:00
Steven Achilles
64e6256012 transfer build packages from Dockerfile to install.sh 2022-05-03 19:36:22 +02:00
Steven Achilles
889d9c36bf collective deletion of packages 2022-05-03 19:14:50 +02:00
Steven Achilles
a02abdce2d Address inconsistencies when using git (packaged with gitaly). 2022-05-03 17:58:58 +02:00
Paolo Mainardi
21b459216b refs #2549: Install git from gitaly 2022-04-29 17:19:40 +02:00
Kazunori Kimura
464cd644d6 set bundler version based on gitlab's Gemfile.lock
bundler used in gitlab is upgraded from 2.1.4 to 2.3.6
See more detail on : https://gitlab.com/gitlab-org/gitlab/-/merge_requests/79251
first contained tag : v14.8.0
2022-04-14 00:30:26 +09:00
Olivier Mueller
3ab737d218 Fix suggested by Kazunori Kimura 2022-03-23 13:02:14 +01:00
Kazunori Kimura
af9bfee78f add patch to change SSH_ALGORITHMS_PATH
To enable ssh host key info in help page
2022-01-26 00:23:40 +09:00
Steven Achilles
e83bb7e17a Rename/remove build patch for gitlab-foss
- Expand if condition so that non-existent gitlab patches are not a problem
2021-12-23 13:04:38 +01:00
Steven Achilles
6c0888b669 Add make target for gitlab-shell 2021-10-19 22:18:11 +02:00
Steven Achilles
3232a10fe4 Update base image, fix problems compiling gitlab-shell and complete changelog 2021-10-19 21:41:12 +02:00
Steven Achilles
1d6fa315f2
Merge pull request #2429 from kkimurak/install-ruby-from-source
Install ruby from source
2021-10-19 21:01:53 +02:00
Steven Achilles
c36fc17354
Add variable for the source url of ruby
I think that defining a variable for the source of the Ruby tarball makes sense.
2021-10-19 20:00:55 +02:00
Kazunori Kimura
47d17b6ffb remove duplicated installation of bundler
`bundler 2.1.4` is default gem of ruby >= 2.7.1 and installed during ruby installation
so we don't need to install it explicitly.
2021-10-10 23:51:57 +09:00
Kazunori Kimura
f8f2190826 supress build time warnings
- [git] set advice.detachHead=false
- [bundle] use `bundle config set --local` instead of
  - `--deployment`
  - `--with` / `--without`
  arguments for `bundle install`
2021-10-09 15:56:07 +09:00
Kazunori Kimura
173e5e25a3 Install ruby from source (v2.4.2) 2021-10-09 15:45:11 +09:00
Steven Achilles
93a47b7d75 Update patch '0001-fix-feature-checking-for-gitaly-on-a-fresh-install.patch' 2021-08-24 21:19:06 +02:00
Kazunori Kimura
4ccb8eefb5 Support healthcheck with relative URL
traditional one with relative url always returns 404 (unhealthy).
Now we can use ${GITLAB_RELATIVE_URL_ROOT} variable to set healcheck URL
after moving script generation to runtime,
2021-04-08 21:12:19 +09:00
intec_bf
82630d2d93 use Ubuntu 20.04 as base image 2021-04-06 12:06:41 +02:00
intec_bf
af6bfcb789 workhorse is now bundled with gitlab 2021-03-22 21:55:05 +01:00
intec_bf
2d0159b61d reduce image size 2020-12-02 22:57:31 +01:00
Constantin Wildförster
3f349977f5 update patch to work on gitlab 13.2.0+ 2020-08-02 17:15:51 +02:00
Carlos Álvaro
31325c1007 fix: healthcheck and GITLAB_HTTPS=true
Follow redirects
Allow connections to SSL sites without certs
2020-05-27 21:09:51 +02:00
Carlos Álvaro
74013d82ab feat: Add healthcheck for gitlab service 2020-05-26 18:10:55 +02:00
Aurélien Chrétien
f377eda47a
handle new gitaly logs correctly 2020-05-06 12:20:47 +02:00
Sameer Naik
4422e1c4a0
remove "Fix for rebase in forks" 2020-05-06 10:05:01 +05:30
Sameer Naik
452062d9fe
build: clean up build caches from bundle and go steps 2020-05-03 10:23:42 +05:30
Niclas Mietz
e87f29c2a3
Upgrade to 12.9.0 (#2117)
* Upgrade GitLab CE to 12.9.0

* Update gitlab-shell to 12.0.0

Signed-off-by: solidnerd <niclas@mietz.io>

* Update gitlab-workhorse to 8.25.0

Signed-off-by: solidnerd <niclas@mietz.io>

* Update gitlab-pages to 1.17.0

Signed-off-by: solidnerd <niclas@mietz.io>

* Update gitaly to 12.9.0-rc42

Signed-off-by: solidnerd <niclas@mietz.io>

* feat: replace unicorn with puma as webserver

Signed-off-by: solidnerd <niclas@mietz.io>
2020-04-04 10:08:52 +02:00
Niclas Mietz
67a5fc30b4
Upgrade to 12.8.0 (#2090)
* Upgrade GitLab CE to 12.8.0

* Update gitlab-workhorse to 8.21.0

Signed-off-by: solidnerd <niclas@mietz.io>

* Update gitlab-pages to 1.16.0

Signed-off-by: solidnerd <niclas@mietz.io>

* Update gitaly to 12.8.0

Signed-off-by: solidnerd <niclas@mietz.io>

* fix: gitaly-hooks missing symlink

Signed-off-by: solidnerd <niclas@mietz.io>

* chore(base-image): update base image to 20200219

* fix: unicorn worker limits

Signed-off-by: solidnerd <niclas@mietz.io>

* fix(ci): disable caching

Signed-off-by: solidnerd <niclas@mietz.io>

* feat: add patch support for gitlab during the installation

Signed-off-by: solidnerd <niclas@mietz.io>

* fix: ArgumentError: 'import/{{oauth2_generic_name}}' is not a supported controller name

Closes #2101

Signed-off-by: solidnerd <niclas@mietz.io>

* fix: add fix for upstream gitaly problems during a fresh install

Signed-off-by: solidnerd <niclas@mietz.io>

* chore: update changelog.md
2020-03-29 15:29:09 +02:00
Steven Achilles
844d721efa fix(gitlab-shell): let gitlab-shell compile again 2020-01-25 11:30:43 +01:00
Pierre Belloy
7ca29dfce0 Use updated gitlab-ce repository name gitlab-foss
Gitlab is moving to a single codebase for GitLab Community and Enterprise editions.
All code and development is moved into the gitlab-ee repository.
The code of the gitlab-ce repository remains as is, and won't include any proprietary code.
The `gitlab-ce` repository is renamed to `gitlab-foss`

See https://about.gitlab.com/2019/08/23/a-single-codebase-for-gitlab-community-and-enterprise-edition/

Signed-off-by: Pierre Belloy <p.belloy@axelor.com>
2019-09-26 06:24:52 +02:00
solidnerd
33d97605d6 Upgrade base-image to ubuntu:bionic 2019-08-26 21:09:53 +02:00
solidnerd
1a22748ea2 Remove MySQL Support for Versions > 12.1 2019-08-11 19:08:22 +02:00
solidnerd
fe04334b61 Fix behaviour of gitlab:backup:restore/backup
Since 10.8 GitLab requires Gitaly as core process. Gitaly needs to be
run to make backups successfuly.

For this case we will start all proccess to let handle the backup and
restore correctly like before.

Signed-off-by: solidnerd <niclas@mietz.io>
2019-07-13 13:30:04 +02:00
Don Bowman
d902ec2ff8 Add support for receive.advertisePushOptions
See [install](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md)
which suggests doing:

```
sudo -u git -H git config --global receive.advertisePushOptions true
```

Signed-off-by: Don Bowman <db@donbowman.ca>
2019-02-23 22:49:58 +01:00
Sameer Naik
2ca3c61261 fix image builds on docker hub 2019-01-05 22:51:27 +01:00
solidnerd
9d5f0dbb0b Fix various shellcheck warnings and errors
Signed-off-by: solidnerd <niclas@mietz.io>
2018-11-24 09:47:58 +01:00
Stéphane Klein
6d6976c08b Add %h/.ssh/authorized_keys_proxy to AuthorizedKeysFile parameter in /etc/ssh/sshd_config to support ssh host forwarding to GitLab container 2018-10-07 13:08:58 +02:00
solidnerd
5efa8619af
Fix gitaly-ssh missing symlink
* Opening a merge request from a branch within my fork towards the master of the upstream repo, this results in 503 errors.

* Updating existing cross-fork merge request with new commits, they do not show up in the merge requests, neither do the diffs.
However, the branch in the fork shows the newly added commit.

FIXES #1721, #1712
2018-09-22 09:38:40 +02:00
Sameer Naik
cdfa19d4f1
install: simplify and optimize gitaly installation directory contents 2018-08-01 16:34:16 +05:30
Sameer Naik
571334f97e
install: simplify gitlab-pages build steps 2018-08-01 16:34:16 +05:30
Sameer Naik
a95766d652
install: simplify gitlab-workhorse build steps 2018-08-01 16:34:16 +05:30
Sameer Naik
3b17df4d95
use GOROOT variable whenever possible 2018-08-01 16:34:15 +05:30
Sameer Naik
bf5c5d3a23
install: update gitlab-shell tarball url 2018-08-01 16:34:15 +05:30
Sameer Naik
278443069f
build: clean up unused artifacts leftover from the build stage 2018-08-01 16:34:14 +05:30
Niclas Mietz
4e9b6d5105
Merge pull request #1678 from sameersbn/clean-build-caches
clean up the $HOME/.cache directory after installation
2018-07-28 10:35:29 +02:00
Sameer Naik
96c3e9e983
clean up the $HOME/.cache directory after installation
Yarn stores every package in a global cache in your user directory on
the file system. This ends up to be around ~400M of extra utilized by
the image and has no benefits whatsoever.

Additionally `go` populates a build cache with will also be cleared
when the ~/.cache directory is purged

/cc @solidnerd
2018-07-27 16:47:09 +05:30
Sameer Naik
46e45c92da
baseimage: switch to official ubuntu:xenial-20180705 image 2018-07-27 11:07:56 +05:30
Klos, Jan
428e37a821
fix "unknown group 'syslog'" error preventing logrotate from functioning 2018-03-25 04:45:01 +02:00