Fix docker image
This commit is contained in:
parent
997a3b1d87
commit
753f34c8fa
|
@ -30,7 +30,9 @@ RUN ( \
|
|||
echo "" && \
|
||||
echo "# Docker options" && \
|
||||
echo "# Prevent Postgres from trying to allocate 25% of total memory" && \
|
||||
echo "postgresql['shared_buffers'] = '1MB'" ) >> /etc/gitlab/gitlab.rb
|
||||
echo "postgresql['shared_buffers'] = '1MB'" ) >> /etc/gitlab/gitlab.rb && \
|
||||
mkdir -p /assets/ && \
|
||||
cp /etc/gitlab/gitlab.rb /assets/gitlab.rb
|
||||
|
||||
# Expose web & ssh
|
||||
EXPOSE 443 80 22
|
||||
|
|
|
@ -13,4 +13,9 @@ function entrypoint() {
|
|||
gitlab-ctl tail # tail all logs
|
||||
}
|
||||
|
||||
if [[ ! -e /etc/gitlab/gitlab.rb ]]; then
|
||||
cp /assets/gitlab.rb /etc/gitlab/gitlab.rb
|
||||
chmod 0600 /etc/gitlab/gitlab.rb
|
||||
fi
|
||||
|
||||
entrypoint
|
||||
|
|
Loading…
Reference in New Issue