summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2014-05-22 16:49:46 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2014-05-25 18:41:18 +0000
commita4ac82ab2e0a89310952866b187ac25b252a1a57 (patch)
treece2b21e70309e0540c724fece4abd98a0ca2d5db
parent4d6a224da37632ffaff4e01679f4c86395b44a8c (diff)
downloaddefinitions-baserock/ps/gitlab-fixes.tar.gz
gitlab chunks and stratumbaserock/ps/gitlab-fixes
-rw-r--r--databases.morph3
-rw-r--r--gitlab-server.morph1
-rwxr-xr-xgitlab-server/usr/share/gitlab-setup8
-rw-r--r--gitlab.morph21
4 files changed, 28 insertions, 5 deletions
diff --git a/databases.morph b/databases.morph
index 628fcf30..c824b9b1 100644
--- a/databases.morph
+++ b/databases.morph
@@ -18,7 +18,8 @@ chunks:
- readline
- name: redis
repo: upstream:redis
- ref: baserock/3.0
+ ref: 9ee59fca9c5c429185d35779c2d5db64005091b0
+ unpetrify-ref: baserock/3.0
build-depends: []
- name: memcached
repo: upstream:memcached
diff --git a/gitlab-server.morph b/gitlab-server.morph
index e0210f6e..6142b8c6 100644
--- a/gitlab-server.morph
+++ b/gitlab-server.morph
@@ -19,3 +19,4 @@ strata:
- morph: databases
- morph: webtools
- morph: ruby
+- morph: gitlab
diff --git a/gitlab-server/usr/share/gitlab-setup b/gitlab-server/usr/share/gitlab-setup
index e1084a1b..e60dfcdf 100755
--- a/gitlab-server/usr/share/gitlab-setup
+++ b/gitlab-server/usr/share/gitlab-setup
@@ -21,7 +21,7 @@ set -e
gem install bundler
# create required users
-adduser -D --gecos 'GitLab' -s /bin/sh git
+if [ `grep -c '^git:' /etc/passwd` -ne 1 ] ; then adduser -D --gecos 'GitLab' -s /bin/sh git ; fi
adduser -D -s /bin/sh postgres
adduser -D --gecos 'GitLab CI' -s /bin/sh gitlab_ci
@@ -49,13 +49,13 @@ su -c "git config --global user.email 'gitlab@localhost'" - git
su -c "git config --global core.autocrlf input" - git
# install gitlab shell
-su -c "git clone https://gitlab.com/gitlab-org/gitlab-shell.git -b v1.9.3 ~/gitlab-shell" - git
+su -c "cp -r /usr/share/gitlab-shell gitlab-shell" - git
cd /home/git/gitlab-shell
cp /usr/share/gitlab-install/gitlab-shell/config.yml ./config.yml
su -c "~/gitlab-shell/bin/install" - git
# install gitlab
-su -c "git clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 6-8-stable ~/gitlab" - git
+su -c "cp -r /usr/share/gitlab-ce gitlab" - git
cd /home/git/gitlab
su -c "cp config/database.yml.postgresql config/database.yml" git
su -c "cp -r /usr/share/gitlab-install/gitlab/config/* config/" git
@@ -76,7 +76,7 @@ su -c "git config --global user.email 'gitlab_ci@localhost'" - gitlab_ci
su -c "git config --global core.autocrlf input" - gitlab_ci
# install gitlab ci
-su -c "git clone https://gitlab.com/gitlab-org/gitlab-ci.git -b 5-0-stable" - gitlab_ci
+su -c "cp -r /usr/share/gitlab-ci gitlab-ci" - gitlab_ci
cd /home/gitlab_ci/gitlab-ci
su -c "cp config/database.yml.postgresql config/database.yml" gitlab_ci
su -c "cp -r /usr/share/gitlab-install/gitlab-ci/config/* config/" gitlab_ci
diff --git a/gitlab.morph b/gitlab.morph
new file mode 100644
index 00000000..a731290a
--- /dev/null
+++ b/gitlab.morph
@@ -0,0 +1,21 @@
+name: gitlab
+kind: stratum
+description: gitlab components for server, ci etc
+build-depends:
+- morph: ruby
+chunks:
+- name: gitlab-ce
+ repo: upstream:gitlab/gitlab-ce
+ ref: cdec1324173c2331153b671ef6ebab749bca9cd4
+ unpetrify-ref: baserock/morph
+ build-depends: []
+- name: gitlab-ci
+ repo: upstream:gitlab/gitlab-ci
+ ref: c74044d65dec2ba8311e242c84e07a67abd52d37
+ unpetrify-ref: baserock/morph
+ build-depends: []
+- name: gitlab-shell
+ repo: upstream:gitlab/gitlab-shell
+ ref: 0b4106d57223c666d9360339fd3790174aa43800
+ unpetrify-ref: baserock/morph
+ build-depends: []