Is there any Dockerfile to get GDK up and running fast?
Hi, I'm trying to make myself a dev
environment in order to help out solving some GL issues (+adding some features):
- https://gitlab.com/gitlab-org/gitlab-ce/issues/28857#note_24666162
- https://gitlab.com/gitlab-org/gitlab-ce/issues/28996#note_24666361
I'm getting the following error:
Bundle complete! 7 Gemfile dependencies, 36 gems now installed.
Gems in the group production were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
touch .gitlab-shell-bundle
ln -s /gitlab-development-kit/gitlab/.gitlab_shell_secret gitlab-shell/.gitlab_shell_secret
git clone https://gitlab.com/gitlab-org/gitlab-workhorse.git gitlab-workhorse/src/gitlab.com/gitlab-org/gitlab-workhorse
Cloning into 'gitlab-workhorse/src/gitlab.com/gitlab-org/gitlab-workhorse'...
GO15VENDOREXPERIMENT=1 GOPATH=/gitlab-development-kit/gitlab-workhorse go install gitlab.com/gitlab-org/gitlab-workhorse/...
ln -s /gitlab-development-kit/gitlab/.ruby-version .ruby-version
command -v foreman > /dev/null || gem install foreman
sed -e "s|/home/git|/gitlab-development-kit|g"\
-e "s|/usr/sbin/sshd||"\
-e "s|postgres |/usr/lib/postgresql/9.3/bin/postgres |"\
-e "s|DEV_SERVER_PORT=3808 |DEV_SERVER_PORT=3808 |"\
Procfile.example > Procfile
if [ -f .vagrant_enabled ]; then \
echo "0.0.0.0" > host; \
echo "3000" > port; \
fi
sed "s|/home/git|/gitlab-development-kit|" redis/redis.conf.example > redis/redis.conf
/usr/lib/postgresql/9.3/bin/initdb --locale=C -E utf-8 postgresql/data
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
make: *** [postgresql/data] Error 1
The command '/bin/sh -c /bin/bash -l -c "gem install gitlab-development-kit" && cd / && /bin/bash -l -c "gdk init" && cd /gitlab-development-kit && /bin/bash -l -c "gdk install gitlab_repo=https://gitlab.com/spisemisu/gitlab-ce.git" && support/set-gitlab-upstream && echo 80 > port && echo 0.0.0.0 > host' returned a non-zero code: 2
based on the following Dockerfile
:
FROM ubuntu:14.04
MAINTAINER Ramón Soto Mathiesen <rsm@spisemisu.com>
## Setup ##
RUN apt-get update \
# Add apt-add-repository helper script
&& apt-get -y install software-properties-common \
python-software-properties \
# This PPA contains an up-to-date version of Go
&& apt-add-repository -y ppa:ubuntu-lxc/lxd-stable \
&& apt-get update \
&& apt-get -y install git postgresql postgresql-contrib libpq-dev \
redis-server libicu-dev cmake g++ nodejs \
nodejs-legacy npm libkrb5-dev golang ed pkg-config \
&& npm install phantomjs-prebuilt@2.1.12 -g \
# Setting up Ruby
&& apt-get -y install curl \
&& gpg --keyserver hkp://keys.gnupg.net \
--recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
&& curl -sSL https://get.rvm.io | bash -s stable \
&& /bin/bash -l -c "rvm requirements" \
&& /bin/bash -l -c "rvm install 2.3" \
&& /bin/bash -l -c "gem install bundler --no-ri --no-rdoc"
## Set up GDK ##
RUN /bin/bash -l -c "gem install gitlab-development-kit" \
&& cd / && /bin/bash -l -c "gdk init" && cd /gitlab-development-kit \
# Develop in a fork
&& /bin/bash -l -c \
"gdk install gitlab_repo=https://gitlab.com/spisemisu/gitlab-ce.git" \
&& support/set-gitlab-upstream \
# Post-installation
&& echo 80 > port \
&& echo 0.0.0.0 > host
## HTTP ##
EXPOSE 80
# TODO: How to exec 'gdk run' from CMD (NOTE: /bin/bash -l -c "gdk run")
CMD ["bash"]
Is there an official Dockerfile
where we just can be modify the fork repo info
that can be used to get a GDK
environment up and running fast?
I hope you can help and thanks in advance