-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 with relative url root set #10
Comments
@JamesStewy I am not having any issues. # start redis
docker run -it --rm --name=redis-1 sameersbn/redis:latest
# start mysql
docker run -it --rm --name=mysql-1 \
-e DB_USER=gitlab_ci \
-e DB_PASS=password \
-e DB_NAME=gitlab_ci_production \
sameersbn/mysql:latest
# start ci
docker run -it --rm --name=ci-1 -p 80:80 \
--link mysql-1:mysql --link redis-1:redisio \
-e 'GITLAB_CI_HOST=www.example.com' \
-e 'GITLAB_CI_RELATIVE_URL_ROOT=/ci' \
-e 'GITLAB_URL=https://gitlab.com' \
sameersbn/gitlab-ci:latest make Access If you are using a proxy, then please check your configuration. |
Looks like there was a problem with my docker installation as purging and re-installing it fixed the problem. Thanks. |
Hello, usin |
@charles-plessy gitlab-ci officially does not mention support for setting up gitlab-ci at a relative_root. This was added in this image by a contributor. However I will try to reproduce this issue and hopefully get it fixed. |
Hi. I am trying to use the GITLAB_CI_RELATIVE_URL_ROOT option to run a Gitlab CI instance at mydomain.com/ci/. I added
-e 'GITLAB_CI_HOST=mydomain.com' -e 'GITLAB_CI_RELATIVE_URL_ROOT=/ci'
todocker run
but when I go to mydomain.com/ci/, nginx returns a 404 error. If it is any help, I used the same configuration (-e 'GITLAB_HOST=mydomain.com' -e 'GITLAB_RELATIVE_URL_ROOT=/git'
) with your Gitlab image and it worked just fine.Full run command:
docker run -d -p 80 --link mysql:mysql --link redis:redisio -e 'GITLAB_CI_HOST=mydomain.com' -e 'GITLAB_CI_RELATIVE_URL_ROOT=/ci' -e 'GITLAB_URL=https://mydomain.com/git/' -e 'DB_USER=gitlab_ci' -e 'DB_PASS=xxx' -e 'DB_NAME=gitlab_ci_production' -v /path/to/gitlab-ci/data:/home/gitlab_ci/data sameersbn/gitlab-ci:latest
docker version:
docker info:
Thanks.
The text was updated successfully, but these errors were encountered: