Skip to content

Commit 3e019d2

Browse files
authored
v16.1 (#13)
* 16.1.5 * modified: assets/wrapper * oo
1 parent b08825f commit 3e019d2

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sudo docker run --detach \
2727
## Method 2 build image by your self
2828
### Build Gitlab image:
2929
```bash
30-
sudo apt-get install git
30+
sudo apt-get install git
3131
git clone https://github.com/jubilee2/rpi-gitlab-ce.git
3232
cd rpi-gitlab-ce
3333
sudo docker build -t gitlab-ce .
@@ -53,4 +53,4 @@ I observe this error occurred [link](https://gitlab.com/gitlab-org/omnibus-gitla
5353

5454
[More Documents!](https://docs.gitlab.com/omnibus/docker/)
5555

56-
The latest docker guide can be found here: [GitLab Docker images](https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/master/doc/docker/README.md).
56+
The latest Docker guide can be found here: [GitLab Docker images](https://docs.gitlab.com/ee/install/docker.html).

RELEASE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
PACKAGECLOUD_REPO=raspberry-pi2
22
RELEASE_PACKAGE=gitlab-ce
3-
RELEASE_VERSION=15.11.13-ce.0
3+
RELEASE_VERSION=16.1.5-ce.0
44
DOWNLOAD_URL=https://packages.gitlab.com/gitlab/${PACKAGECLOUD_REPO}/packages/raspbian/buster/${RELEASE_PACKAGE}_${RELEASE_VERSION}_armhf.deb/download.deb

assets/wrapper

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function failed_pg_upgrade() {
1919

2020
function clean_stale_pids() {
2121
# cleanup known pid/socket files
22-
for x in /opt/gitlab/sv /run $(ls -d /tmp/gitaly-ruby* 2>/dev/null) ; do
22+
for x in /opt/gitlab/sv /run ; do
2323
# find
2424
# - any (s)ocket or regular (f)ile
2525
# - by the name of "*.pid" or "socket.?"
@@ -54,7 +54,7 @@ function unmigrated_data_check() {
5454
if [ $? -ne 0 ]; then
5555
echo "Upgrade failed. Could not check for unmigrated data on legacy storage."
5656
echo ""
57-
echo $output
57+
echo $found
5858
echo ""
5959
echo ""
6060
echo "If you would like to restart the instance without performing this"
@@ -112,7 +112,7 @@ if old_version=$(cat /var/opt/gitlab/gitlab-rails/VERSION)
112112
then
113113
GITLAB_UPGRADE='true'
114114
new_version=$(awk '/^gitlab-(ce|ee|jh)/ {print $NF}' /opt/gitlab/version-manifest.txt)
115-
MIN_VERSION="15.0" gitlab-ctl upgrade-check "${old_version}" "${new_version}"
115+
MIN_VERSION="15.11" gitlab-ctl upgrade-check "${old_version}" "${new_version}"
116116
fi
117117

118118
# Copy gitlab.rb for the first time
@@ -128,16 +128,28 @@ if [[ ! -f /etc/gitlab/ssh_host_rsa_key ]]; then
128128
ssh-keygen -f /etc/gitlab/ssh_host_rsa_key -N '' -t rsa
129129
chmod 0600 /etc/gitlab/ssh_host_rsa_key
130130
fi
131+
# sshd loads the keys from /etc/gitlab, but the GitLab backend looks for keys
132+
# from within /etc/ssh
133+
ln -fs /etc/gitlab/ssh_host_rsa_key.pub /etc/ssh/ssh_host_rsa_key.pub
134+
131135
if [[ ! -f /etc/gitlab/ssh_host_ecdsa_key ]]; then
132136
echo "Generating ssh_host_ecdsa_key..."
133137
ssh-keygen -f /etc/gitlab/ssh_host_ecdsa_key -N '' -t ecdsa
134138
chmod 0600 /etc/gitlab/ssh_host_ecdsa_key
135139
fi
140+
# sshd loads the keys from /etc/gitlab, but the GitLab backend looks for keys
141+
# from within /etc/ssh
142+
ln -fs /etc/gitlab/ssh_host_ecdsa_key.pub /etc/ssh/ssh_host_ecdsa_key.pub
143+
136144
if [[ ! -f /etc/gitlab/ssh_host_ed25519_key ]]; then
137145
echo "Generating ssh_host_ed25519_key..."
138146
ssh-keygen -f /etc/gitlab/ssh_host_ed25519_key -N '' -t ed25519
139147
chmod 0600 /etc/gitlab/ssh_host_ed25519_key
140148
fi
149+
# sshd loads the keys from /etc/gitlab, but the GitLab backend looks for keys
150+
# from within /etc/ssh
151+
ln -fs /etc/gitlab/ssh_host_ed25519_key.pub /etc/ssh/ssh_host_ed25519_key.pub
152+
141153

142154
# Remove all services, the reconfigure will create them
143155
echo "Preparing services..."
@@ -148,6 +160,11 @@ mkdir -p /var/run/sshd
148160
mkdir -p /var/log/gitlab/sshd
149161
mkdir -p /var/log/gitlab/reconfigure
150162

163+
if [ -n "${GITLAB_PRE_RECONFIGURE_SCRIPT+x}" ]; then
164+
echo "Running Pre Reconfigure Script..."
165+
eval "${GITLAB_PRE_RECONFIGURE_SCRIPT}"
166+
fi
167+
151168
# Start service manager
152169
echo "Starting services..."
153170
GITLAB_OMNIBUS_CONFIG= /opt/gitlab/embedded/bin/runsvdir-start &

0 commit comments

Comments
 (0)