forked from CenturyLinkLabs/panamax-contest-templates
-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitlab_scoped.pmx
85 lines (74 loc) · 2.5 KB
/
gitlab_scoped.pmx
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
name: GitLab Single node (scoped)
description: GitLab environment on a single container for testing based on image sameersbn/gitlab (scoped)
keywords: gitlab, mysql, nginx, all
type: Default
documentation: |
GitLab - Single node
=======================
##System requirements
Recommend 2GB of RAM for your Host and 2 Cores for best performance
##Port Forwarding
To view the GUI after launching the template, map your local host machine to port _10080_. If using Virtual Box, use the following command in your terminal to create the port forwarding rule:
`VBoxManage controlvm panamax-vm natpf1 gitlab,tcp,,8997,,10080`
Where, gitlab is the friendly name of the rule, tcp is the protocol. Replace port _8997_ with the local free port of your choice.
After you run this command locally, browse to **http://localhost:8997** to see the GUI, as per the example.
##Running
__NOTE__: Please allow a few minutes for the GitLab service to start. Watch the journal output for the message that it is complete.
Login using the default username and password:
username: **root**
password: **5iveL!fe**
scoped
======
this template, originally at https://github.com/CenturyLinkLabs/panamax-public-templates/blob/master/gitlab_single_node.pmx, has been modified as an example -- see https://github.com/fortheswarm/panamax-contest-templates/blob/master/scope.pmx
images:
- category: GitLab
name: sameersbn_gitlab_latest
source: sameersbn/gitlab:7.1.1
description:
type: Default
expose: []
ports:
- host_port: '10022'
container_port: '22'
- host_port: '10080'
container_port: '80'
links: []
environment:
- variable: GITLAB_PORT
value: '10080'
- variable: GITLAB_SSH_PORT
value: '10022'
volumes: []
- name: sink
source: strcrzy/sink:latest
category: sink
type: Default
expose: ['8080']
ports:
- host_port: '8080'
container_port: '80'
proto: TCP
volumes:
- host_path: ''
container_path: "/sink"
- name: suricata
source: strcrzy/sensor:suricata
category: sensor
type: Default
links:
- service: sameersbn_gitlab_latest
alias: sameersbn_gitlab_latest
- service: sink
alias: sink
command: "--volumes-from=sink --net=container:sameersbn_gitlab_latest --privileged"
- name: bro
source: strcrzy/sensor:bro
category: sensor
type: Default
links:
- service: sameersbn_gitlab_latest
alias: sameersbn_gitlab_latest
- service: sink
alias: sink
command: "--volumes-from=sink --net=container:sameersbn_gitlab_latest --privileged"