FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docker-gitlab/Makefile at master · getfloret/docker-gitlab · GitHub
getfloret
docker-gitlab
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docker-gitlab
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (50 loc) · 1.82 KB
Breadcrumbs
docker-gitlab
/
Makefile
Copy path
File metadata and controls
57 lines (50 loc) · 1.82 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
all
: build
help
:
@echo
"
"
@echo
"
-- Help Menu
"
@echo
"
"
@echo
"
1. make build - build the gitlab image
"
@echo
"
2. make quickstart - 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=sameersbn/gitlab
.
\
--build-arg BUILD_DATE=
"
$(
shell date +
"
%Y-%m-%d %H:%M:%S%:z
"
)
"
\
--build-arg VCS_REF=
$(
shell
git rev-parse --short HEAD)
release
: build
@docker build --tag=sameersbn/gitlab:
$(
shell
cat VERSION)
.
\
--build-arg BUILD_DATE=
"
$(
shell date +
"
%Y-%m-%d %H:%M:%S%:z
"
)
"
\
--build-arg VCS_REF=
$(
git describe --tags --always
)
quickstart
:
@echo
"
Starting postgresql container...
"
@docker run --name=gitlab-postgresql -d
\
--env=
'
DB_NAME=gitlabhq_production
'
\
--env=
'
DB_USER=gitlab
'
--env=
'
DB_PASS=password
'
\
sameersbn/postgresql:latest
@echo
"
Starting redis container...
"
@docker run --name=gitlab-redis -d
\
sameersbn/redis:latest
@echo
"
Starting gitlab container...
"
@docker run --name=
'
gitlab-demo
'
-d
\
--link=gitlab-postgresql:postgresql --link=gitlab-redis:redisio
\
--publish=10022:22 --publish=10080:80
\
--env=
'
GITLAB_PORT=10080
'
--env=
'
GITLAB_SSH_PORT=10022
'
\
sameersbn/gitlab:latest
@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
@echo
"
Stopping redis...
"
@docker stop gitlab-redis
>
/dev/null
@echo
"
Stopping postgresql...
"
@docker stop gitlab-postgresql
>
/dev/null
purge
: stop
@echo
"
Removing stopped containers...
"
@docker rm -v gitlab-demo
>
/dev/null
@docker rm -v gitlab-redis
>
/dev/null
@docker rm -v gitlab-postgresql
>
/dev/null
logs
:
@docker logs -f gitlab-demo
Back
|
FazBrowse Home
|
New Git URL