删除docker测试
This commit is contained in:
parent
3480535e96
commit
8fdede40d5
|
@ -1,26 +0,0 @@
|
|||
# Quick test environment setup using Docker
|
||||
|
||||
In order to test the plugin on different versions of `GitLab` and `Jenkins` you may want to use `Docker` containers.
|
||||
|
||||
A example docker-compose file is available at `gitlab-plugin/src/docker` which allows to set up instances of the latest `GitLab` and `Jenkins` versions.
|
||||
|
||||
If they don't already exist, create the following directories and make sure the user that Docker is running as owns them:
|
||||
* /srv/docker/gitlab/postgresql
|
||||
* /srv/docker/gitlab/gitlab
|
||||
* /srv/docker/gitlab/redis
|
||||
* /srv/docker/jenkins
|
||||
|
||||
To start the containers, run `docker-compose up -d` from the `docker` folder. If you have problems accessing the services in the containers, run `docker-compose up` by itself to see output from the services as they start.
|
||||
|
||||
## Access GitLab
|
||||
|
||||
To access `GitLab`, point your browser to `http://localhost:10080` and set a password for the `root` user account. Then create a user for Jenkins, impersonate that user, get its API key, set up test repos, etc. When creating webhooks to trigger Jenkins jobs, use `http://jenkins:8080` as the base URL.
|
||||
|
||||
For more information on the supported `GitLab` versions and how to configure the containers, visit Sameer Naik's github page at https://github.com/sameersbn/docker-gitlab.
|
||||
|
||||
## Access Jenkins
|
||||
|
||||
To see `Jenkins`, point your browser to `http://localhost:8080`. Jenkins will be able to access GitLab at `http://gitlab`
|
||||
|
||||
For more information on the supported `Jenkins` tags and how to configure the containers, visit https://hub.docker.com/r/jenkins/jenkins/.
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
version: '2'
|
||||
|
||||
services:
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:9.5-1
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
- DB_USER=gitee
|
||||
- DB_PASS=password
|
||||
- DB_NAME=gitlabhq_production
|
||||
- DB_EXTENSION=pg_trgm
|
||||
volumes:
|
||||
- /srv/docker/gitee/postgresql:/var/lib/postgresql
|
||||
|
||||
gitlab:
|
||||
restart: always
|
||||
image: sameersbn/gitee:9.4.1
|
||||
depends_on:
|
||||
- redis
|
||||
- postgresql
|
||||
ports:
|
||||
- "10080:80"
|
||||
- "10022:22"
|
||||
environment:
|
||||
- DEBUG=false
|
||||
|
||||
- DB_ADAPTER=postgresql
|
||||
- DB_HOST=postgresql
|
||||
- DB_PORT=5432
|
||||
- DB_USER=gitee
|
||||
- DB_PASS=password
|
||||
- DB_NAME=gitlabhq_production
|
||||
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
|
||||
- TZ=Asia/Kolkata
|
||||
- GITEE_TIMEZONE=Kolkata
|
||||
|
||||
- GITEE_HTTPS=false
|
||||
- SSL_SELF_SIGNED=false
|
||||
|
||||
- GITEE_HOST=localhost
|
||||
- GITEE_PORT=10080
|
||||
- GITEE_SSH_PORT=10022
|
||||
- GITEE_RELATIVE_URL_ROOT=
|
||||
- GITEE_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string
|
||||
- GITEE_SECRETS_SECRET_KEY_BASE=long-and-random-alphanumeric-string
|
||||
- GITEE_SECRETS_OTP_KEY_BASE=long-and-random-alpha-numeric-string
|
||||
|
||||
- GITEE_ROOT_PASSWORD=
|
||||
- GITEE_ROOT_EMAIL=
|
||||
|
||||
- GITEE_NOTIFY_ON_BROKEN_BUILDS=true
|
||||
- GITEE_NOTIFY_PUSHER=false
|
||||
|
||||
- GITEE_EMAIL=notifications@example.com
|
||||
- GITEE_EMAIL_REPLY_TO=noreply@example.com
|
||||
- GITEE_INCOMING_EMAIL_ADDRESS=reply@example.com
|
||||
|
||||
- GITEE_BACKUP_SCHEDULE=daily
|
||||
- GITEE_BACKUP_TIME=01:00
|
||||
|
||||
- SMTP_ENABLED=false
|
||||
- SMTP_DOMAIN=www.example.com
|
||||
- SMTP_HOST=smtp.gmail.com
|
||||
- SMTP_PORT=587
|
||||
- SMTP_USER=mailer@example.com
|
||||
- SMTP_PASS=password
|
||||
- SMTP_STARTTLS=true
|
||||
- SMTP_AUTHENTICATION=login
|
||||
|
||||
- IMAP_ENABLED=false
|
||||
- IMAP_HOST=imap.gmail.com
|
||||
- IMAP_PORT=993
|
||||
- IMAP_USER=mailer@example.com
|
||||
- IMAP_PASS=password
|
||||
- IMAP_SSL=true
|
||||
- IMAP_STARTTLS=false
|
||||
volumes:
|
||||
- /srv/docker/gitee/gitee:/home/git/data
|
||||
|
||||
redis:
|
||||
restart: always
|
||||
image: sameersbn/redis:latest
|
||||
volumes:
|
||||
- /srv/docker/gitee/redis:/var/lib/redis
|
||||
|
||||
jenkins:
|
||||
restart: always
|
||||
image: jenkins/jenkins:lts
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "50000:50000"
|
||||
volumes:
|
||||
- /srv/docker/jenkins:/var/jenkins_home
|
Loading…
Reference in New Issue