-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sameer Naik
committed
Sep 19, 2014
1 parent
531debe
commit 96948c0
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ LICENSE | |
VERSION | ||
README.md | ||
Changelog.md | ||
Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
all: help | ||
|
||
help: | ||
@echo "" | ||
@echo "-- Help Menu" | ||
@echo "" | ||
@echo " 1. make build - build the gitlab image" | ||
@echo " 2. make start - start gitlab" | ||
@echo " 3. make stop - stop gitlab" | ||
@echo " 4. make logs - view logs" | ||
@echo " 5. make purge - stop and remove the container" | ||
|
||
build: | ||
@docker build --tag=${USER}/gitlab . | ||
|
||
start: | ||
@echo "Starting gitlab..." | ||
@docker run --name='gitlab-demo' -d \ | ||
-p 10022:22 -p 10080:80 \ | ||
-e 'GITLAB_PORT=10080' -e 'GITLAB_SSH_PORT=10022' \ | ||
${USER}/gitlab:latest >/dev/null | ||
@echo "GitLab instance is booting up..." | ||
@echo "Please be patient. This could take a while..." | ||
@echo "GitLab will be available at http://localhost:10080" | ||
@echo "Type 'make logs' for the logs" | ||
|
||
stop: | ||
@echo "Stopping gitlab..." | ||
@docker stop gitlab-demo >/dev/null | ||
|
||
purge: stop | ||
@echo "Removing stopped container..." | ||
@docker rm gitlab-demo >/dev/null | ||
|
||
logs: | ||
@docker logs -f gitlab-demo |