sameersbn / sameersbn/docker-gitlab
How to deploy as a group with marathon?
Open
Nobody has claimed this yet.
wontfix
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
I am trying to deploy using redis postgre and latest gitlab version using the group json file of Marathon.
It is like Docker compose, it permit to execute Docker container from a rest API.
Does anyone has a working example? I followed the readme and wasn't able to make a working one.
{
"id": "/company/git",
"groups": [
{
"id": "/company/git/database",
"apps": [
{
"id": "/company/git/database/postgresql",
"env": {
"DB_NAME": "gitlabhq_production",
"DB_USER": "gitlab",
"DB_PASS": "password",
"DB_EXTENSION": "pg_trgm",
"SERVICE_4532_NAME": "postgresql",
"SERVICE_4532_TAGS": "haproxy,haproxy_tcp=30690"
},
"constraints": [
[
"company",
"CLUSTER",
"company"
],
[
"hostname",
"CLUSTER",
"master-01"
]
],
"container": {
"type": "DOCKER",
"docker": {
"image": "sameersbn/postgresql:9.4-21",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 4532,
"protocol": "tcp"
}
]
},
"volumes": [
{
"containerPath": "/var/lib/postgresql",
"hostPath": "/srv/company/gitlab/postgresql",
"mode": "RW"
}
]
}
},
{
"id": "/company/git/database/redis",
"env": {
"SERVICE_6379_NAME": "redis",
"SERVICE_6379_TAGS": "haproxy,haproxy_tcp=30691"
},
"constraints": [
[
"company",
"CLUSTER",
"company"
],
[
"hostname",
"CLUSTER",
"master-bhs-01"
]
],
"container": {
"type": "DOCKER",
"docker": {
"image": "sameersbn/redis:latest",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 6379,
"hostPort": 31690,
"protocol": "tcp"
}
]
},
"volumes": [
{
"containerPath": "/var/lib/redis",
"hostPath": "/srv/company/gitlab/redis",
"mode": "RW"
}
]
},
"healthChecks": [
{
"portIndex": 0,
"protocol": "TCP",
"gracePeriodSeconds": 30,
"intervalSeconds": 10,
"timeoutSeconds": 30,
"maxConsecutiveFailures": 3
}
]
}
]
},
{
"id": "/company/git/service",
"dependencies": [
"/company/git/database/database"
],
"apps": [
{
"id": "/company/git/service/git",
"env": {
"GITLAB_PORT": "80",
"GITLAB_SSH_PORT": "30693",
"GITLAB_SECRET_DB_KEY_BASE": "zadzadza",
"REDIS_HOST": "redis.service.companycloud.consul",
"REDIS_PORT": "31690",
"DB_HOST": "postgresql.service.companycloud.consul",
"DB_PORT": "30691",
"DB_NAME": "gitlabhq_production",
"DB_USER": "gitlab",
"DB_PASSWORD": "password",
"DEBUG": "trye",
"SERVICE_NAME": "gitlab",
"SERVICE_80_TAGS": "gitlab,haproxy,webapp",
"SERVICE_22_TAGS": "gitlab-ssh,haproxy,haproxy_tcp=30693"
},
"constraints": [
[
"company",
"CLUSTER",
"company"
],
[
"hostname",
"CLUSTER",
"master-bhs-01"
]
],
"container": {
"type": "DOCKER",
"docker": {
"image": "sameersbn/gitlab:8.7.6",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 80,
"hostPort": 31692,
"protocol": "tcp"
},
{
"containerPort": 22,
"hostPort": 31693,
"protocol": "tcp"
}
]
},
"volumes": [
{
"containerPath": "/home/git/data",
"hostPath": "/srv/company/gitlab/gitlab",
"mode": "RW"
}
]
},
"healthChecks": [
{
"portIndex": 0,
"protocol": "TCP",
"gracePeriodSeconds": 30,
"intervalSeconds": 10,
"timeoutSeconds": 30,
"maxConsecutiveFailures": 3
}
]
}
]
}
]
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README's Marathon deployment guidance and compare it with the supplied group JSON. Check how the PostgreSQL and Redis apps are connected to the GitLab app and validate the group deployment; done means a documented, working example is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops, infrastructure
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100