sameersbn / sameersbn/docker-gitlab
Issue with the ssh default port
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
Hello,
When use ssh default port the ssh address give by gitlab is wrong. is replacing ssh port by the beginning of the repository dir.
ssh://git@my.host.com:root/project.git
instead of
ssh://git@my.host.com:22/root/project.git
I'm using Debian 9, Gitlab 10.2.5 (I have tried with latest to)
Docker version 17.12.0-ce, build c97c6d6
Containers: 3
Running: 0
Paused: 0
Stopped: 3
Images: 4
Server Version: 17.12.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.0-5-amd64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.862GiB
Name: ip-10-0-231-131
ID: UF5Q:AP7N:WO7D:YIJH:LXM2:SC2G:7J63:ZODU:G6UG:7EY3:AYCS:265L
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
The docker run command you used to run the image (mask out the sensitive bits).
postgresql:
image: sameersbn/postgresql:9.6-2
environment:
- DB_USER=gitlab
- DB_PASS=gitDeltaCE
- DB_NAME=gitlab_test
- DB_EXTENSION=pg_trgm
volumes:
- /root/docker/db:/var/lib/postgresql
redis:
image: sameersbn/redis:latest
volumes:
- /root/docker/redis:/var/lib/redis
gitlab:
image: sameersbn/gitlab:10.2.5
ports:
- "22:22"
- "80:80"
environment:
- GITLAB_BACKUPS=daily
- GITLAB_HOST=my.host.com
- VIRTUAL_HOST=my.host.com
- GITLAB_ROOT_EMAIL=user@admin.com
- MAX_UPLOAD_SIZE=512mo
- GITLAB_SECRETS_DB_KEY_BASE=longandrandomalphanumericstring
- GITLAB_SECRETS_OTP_KEY_BASE=longandrandomalphanumericstring
- GITLAB_SECRETS_SECRET_KEY_BASE=longandrandomalphanumericstring
- GITLAB_HTTPS=false
- GITLAB_PORT=80
- GITLAB_SSH_PORT=22
- SMTP_ENABLE=true
- SMTP_DOMAIN=www.mailjet.com
- SMTP_HOST=in.mailjet.com
- SMTP_PORT=587
- SMTP_TLS=true
- SMTP_USER=user
- SMTP_PASS=pass
- DB_USER=gitlab
- DB_PASS=gitDeltaCE
- DB_NAME=gitlab_test
volumes:
- /root/docker/gitlab:/home/git/data
links:
- redis:redisio
- postgresql:postgresql
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 GITLAB_SSH_PORT setting, the Docker port mapping, and the generated SSH clone address described in the report. Reproduce the configuration and verify that the displayed address preserves port 22 and the repository path correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, gitlab
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100