diff --git a/.gitignore b/.gitignore index c54530ae0406e1bf4dc96cd11513399b53b18280..23cada00f04953dd1f52dad483f89ee8a0947a22 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ /.vagrant_enabled /host /port +/webpack_port /.ruby-version /.ruby-gemset /localhost.* @@ -44,6 +45,7 @@ /nginx/uwsgi_temp /.gitlab-shell-bundle /.gitlab-bundle +/.gitlab-npm /gem/*.gem /gitlab-runner-config.toml /.gdk-install-root diff --git a/CHANGELOG.md b/CHANGELOG.md index b40867900d13017313ad3285744277b5b71fd43c..9d4dbfd3ad079ee493f241f285d73b2744414992 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ This Changelog tracks major changes to the GitLab Development Kit, such as dependency updates (those not handled by Bundler) and new features. +## 2017-02-01 + +- Add webpack process to Procfile configure it within gitlab.yml !237 + ## 2016-10-31 - Add root check to catch root move problems. Requires gem 0.2.3 or diff --git a/Makefile b/Makefile index 4befeedb3ffd48ed89f4d11e076664a37a9dd6ce..1bef057a3f976376f0b01e3d6364d10fce83f3b3 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ port = $(shell cat port 2>/dev/null) username = $(shell whoami) sshd_bin = $(shell which sshd) git_bin = $(shell which git) +webpack_port = $(shell cat webpack_port 2>/dev/null || echo '3808') all: gitlab-setup gitlab-shell-setup gitlab-workhorse-setup support-setup gitaly-setup @@ -29,7 +30,7 @@ gitlab/config/gitlab.yml: sed -e "s|/home/git|${gitlab_development_root}|"\ -e "s|/usr/bin/git|${git_bin}|"\ gitlab/config/gitlab.yml.example > gitlab/config/gitlab.yml - port=${port} support/edit-gitlab.yml gitlab/config/gitlab.yml + port=${port} webpack_port=${webpack_port} support/edit-gitlab.yml gitlab/config/gitlab.yml gitlab/config/database.yml: sed "s|/home/git|${gitlab_development_root}|" database.yml.example > gitlab/config/database.yml @@ -142,9 +143,10 @@ support-setup: .ruby-version foreman Procfile redis postgresql openssh-setup ngi Procfile: sed -e "s|/home/git|${gitlab_development_root}|g"\ - -e "s|/usr/sbin/sshd|${sshd_bin}|"\ - -e "s|postgres |${postgres_bin_dir}/postgres |"\ - $@.example > $@ + -e "s|/usr/sbin/sshd|${sshd_bin}|"\ + -e "s|postgres |${postgres_bin_dir}/postgres |"\ + -e "s|DEV_SERVER_PORT=3808 |DEV_SERVER_PORT=${webpack_port} |"\ + $@.example > $@ if [ -f .vagrant_enabled ]; then \ echo "0.0.0.0" > host; \ echo "3000" > port; \ diff --git a/Procfile.example b/Procfile.example index 94c61dadd3176fbfc00af8beece492f26d8c5152..5f909c3161520ade74fe9020fef964a1227c5aea 100644 --- a/Procfile.example +++ b/Procfile.example @@ -14,3 +14,4 @@ rails-background-jobs: exec /usr/bin/env SIDEKIQ_LOG_ARGUMENTS=1 RAILS_ENV=devel #sshd: exec /usr/sbin/sshd -e -D -f /home/git/openssh/sshd_config #nginx: exec nginx -p /home/git/nginx -c conf/nginx.conf #gitaly: exec /usr/bin/env GITALY_SOCKET_PATH=/home/git/gitaly.socket GITALY_PROMETHEUS_LISTEN_ADDR=:9101 gitaly/bin/gitaly +webpack: exec /usr/bin/env NODE_ENV=development DEV_SERVER_PORT=3808 support/exec-cd gitlab npm run dev-server diff --git a/doc/set-up-gdk.md b/doc/set-up-gdk.md index 8ef6f6678c9a6704eb77885c72d572b580b563ec..68be4e1c608b4ef6f456393e10c436a7f08440f6 100644 --- a/doc/set-up-gdk.md +++ b/doc/set-up-gdk.md @@ -63,6 +63,7 @@ gem install gitlab-development-kit gdk init gdk-ee cd gdk-ee echo 3001 > port +echo 3809 > webpack_port gdk install gitlab_repo=https://gitlab.com/gitlab-org/gitlab-ee.git ``` diff --git a/run b/run index 14ed5239bd58577f6dce912fb0e96d2d21e44750..54ec4574a376445c482d9b4dd4e994fb33c47bbe 100755 --- a/run +++ b/run @@ -50,7 +50,7 @@ foreman_start() { } db() { - foreman_start -c all=0,redis=1,postgresql=1,openldap=1,influxdb=1 + foreman_start -c all=0,redis=1,postgresql=1,openldap=1,influxdb=1,webpack=1 } app() { diff --git a/support/edit-gitlab.yml b/support/edit-gitlab.yml index 8a019346c0703aa24db242016ef50b7daa0cff0c..94f5130ae75c5a1c3a387902a478e320d2fd0680 100755 --- a/support/edit-gitlab.yml +++ b/support/edit-gitlab.yml @@ -12,5 +12,12 @@ a ssh_port: 2222 ssh_host: localhost . +/ webpack:/ +a + dev_server: + enabled: true + host: localhost + port: ${webpack_port:-3808} +. wq EOF