Docker化的Atlassian Crowd镜像,提供统一身份管理服务,支持从Active Directory、LDAP等多种来源同步用户,集中控制Atlassian、Subversion、Google Apps等各类应用的权限。
Dockerized Atlassian Crowd
"Users can come from anywhere: Active Directory, LDAP, Crowd itself, or any mix thereof. Control permissions to all your applications in one place – Atlassian, Subversion, Google Apps, or your own apps." - https://www.atlassian.com/software/crowd/overview]
Supported tags and respective Dockerfile links
| Version | Tags | Dockerfile |
|---|---|---|
| 2.12.0 | 2.12.0, latest | https://github.com/blacklabelops/crowd/blob/master/Dockerfile |
Older tags remain but are not supported/rebuild.
Related Images
You may also like:
- https://github.com/blacklabelops/jira: The #1 software development tool used by agile teams
- https://github.com/blacklabelops/confluence: Create, organize, and discuss work with your team
- https://github.com/blacklabelops/bitbucket: Code, Manage, Collaborate
- https://github.com/blacklabelops/crowd: Identity management for web apps
Make It Short
Docker-Compose:
$ curl -O https://raw.githubusercontent.com/blacklabelops/crowd/master/docker-compose.yml $ docker-compose up -d
Crowd will be available at [***]
Docker-CLI:
Just type and follow the manual installation procedure in your browser:
$ docker run -d -p 8095:8095 --name crowd blacklabelops/crowd
Point your browser to [***]
Setup
- Start database server for Crowd.
- Start Crowd.
- Manual Crowd setup.
Firstly, start the database server for Crowd:
Note: Change Password!
$ docker run --name postgres_crowd -d \ -e 'POSTGRES_DB=crowddb' \ -e 'POSTGRES_USER=crowddb' \ -e 'POSTGRES_PASSWORD=jellyfish' \ blacklabelops/postgres
Secondly, start Crowd:
$ docker run -d --name crowd \ --link postgres_crowd:postgres_crowd \ -p 8095:8095 blacklabelops/crowd
Starts Crowd and links it to the postgresql instances. JDBC URL: jdbc:postgresql://postgres_crowd/crowddb
Thirdly, configure your Crowd yourself and fill it with a test license.
Point your browser to [***]
- Choose
Set up Crowd - Create and enter license information
- Choose
New installation - In
Database configurationchooseJDBC connectionand fill out the form:
- Database: PostgreSQL
- Driver Class Name:
org.postgresql.Driver - JDBC URL:
jdbc:postgresql://postgres_crowd:5432/crowddb - Username:
crowddb - Password:
jellyfish - Hibernate dialect:
org.hibernate.dialect.PostgreSQLDialect
- In
Optionschoosehttp://localhost:8095/crowdfor fieldBase URLotherwise you won't be able to connect later on. - Fill out the rest of the installation procedure.
Disabling The Splash Context
Set the Splash Screens context to empty string and crowd to root context.
$ docker run -d --name crowd \ -e "CROWD_URL=http://localhost:8095" \ -e "SPLASH_CONTEXT=" \ -e "CROWD_CONTEXT=ROOT" \ -p 8095:8095 blacklabelops/crowd
Splash context will never be shown, crowd will be shown under [***]
Disabling OpenID & Demo Contexts
Disable all contexts to make sub application inaccessible (e.g. you do not use them)
You can disable applications by setting their context to empty string:
- Crowd: CROWD_CONTEXT
- Splash: SPLASH_CONTEXT
- OpenID server: CROWDID_CONTEXT
- OpenID client: OPENID_CLIENT_CONTEXT
Example:
$ docker run -d --name crowd \ -e "CROWD_URL=http://localhost:8095" \ -e "SPLASH_CONTEXT=" \ -e "CROWD_CONTEXT=ROOT" \ -e "CROWDID_CONTEXT=" \ -e "OPENID_CLIENT_CONTEXT=" \ -p 8095:8095 blacklabelops/crowd
Subapplications will not be accessible anymore. Crowd will run under root context under [***]
Active Directory Support
Crowd requires that you install a CA Certificate if you want to allow crowd to add users, or change passwords, in Active Directory (https://confluence.atlassian.com/crowd/configuring-an-ssl-certificate-for-microsoft-active-directory-63504388.html).
This is done automatically for any certificates that are present in the 'certs' directory in your persistant volume. For example, if you had called your volume 'crowd', you simply need to copy the certificate to /var/lib/dockers/volumes/crowd/_data/certs (if you are using the default storage location).
You can validate that you have exported the correct certificate by checking that the 'CA' attribute is set to true
[root@docker2 volumes]# openssl x509 -in crowd/_data/certs/client.crt -inform der -text -noout | grep CA: CA:TRUE [root@docker volumes]#
You will see the certificate being imported when the container is started.
Proxy Configuration
You can specify your proxy host and proxy port with the environment variables CROWD_PROXY_NAME and CROWD_PROXY_PORT. The value will be set inside the Atlassian server.xml at startup!
When you use https then you also have to include the environment variable CROWD_PROXY_SCHEME.
Example HTTPS:
- Proxy Name: myhost.example.com
- Proxy Port: 443
- Poxy Protocol Scheme: https
Just type:
$ docker run -d --name crowd \ -e "CROWD_PROXY_NAME=myhost.example.com" \ -e "CROWD_PROXY_PORT=443" \ -e "CROWD_PROXY_SCHEME=https" \ blacklabelops/crowd
Will set the values inside the server.xml in /opt/crowd/.../server.xml
NGINX HTTP Proxy
This is an example on running Atlassian Crowd behind NGINX with 2 Docker commands!
First start Crowd:
$ docker run -d --name crowd \ -e "CROWD_PROXY_NAME=192.168.99.100" \ -e "CROWD_PROXY_PORT=80" \ -e "CROWD_PROXY_SCHEME=http" \ blacklabelops/crowd
Example with dockertools
Then start NGINX:
$ docker run -d \ -p 80:80 \ --name nginx \ --link crowd:crowd \ -e "SERVER1REVERSE_PROXY_LOCATION1=/" \ -e "SERVER1REVERSE_PROXY_PASS1=[***]" \ blacklabelops/nginx
Crowd will be available at [***]
NGINX HTTPS Proxy
This is an example on running Atlassian Crowd behind NGINX-HTTPS with2 Docker commands!
Note: This is a self-signed certificate! Trusted certificates by letsencrypt are supported. Documentation can be found here: https://github.com/blacklabelops/nginx
First start Crowd:
$ docker run -d --name crowd \ -e "CROWD_PROXY_NAME=192.168.99.100" \ -e "CROWD_PROXY_PORT=80" \ -e "CROWD_PROXY_SCHEME=http" \ blacklabelops/crowd
Example with dockertools
Then start NGINX:
$ docker run -d \ -p 443:443 \ --name nginx \ --link crowd:crowd \ -e "SERVER1REVERSE_PROXY_LOCATION1=/" \ -e "SERVER1REVERSE_PROXY_PASS1=[***]" \ -e "SERVER1CERTIFICATE_DNAME=/CN=CrustyClown/OU=SpringfieldEntertainment/O=crusty.springfield.com/L=Springfield/C=US" \ -e "SERVER1HTTPS_ENABLED=true" \ -e "SERVER1HTTP_ENABLED=false" \ blacklabelops/nginx
Crowd will be available at [***]
More In-Depth Features
The full feature list is documented here as this image is feature identical with the atlassian example: https://bitbucket.org/atlassianlabs/atlassian-docker/src/ee4a3434b1443ed4d9cfbf721ba7d4556da8c005/crowd/?at=master
Support
Leave a message and ask questions on Hipchat: blacklabelops/hipchat
Credits
This project is very grateful for code and examples from the repositories:
- https://bitbucket.org/atlassianlabs/atlassian-docker
References
- https://www.atlassian.com/software/crowd/overview/
- https://www.docker.com/
- https://docs.docker.com/compose/
- https://docs.docker.com/userguide/
- Oracle Java
blacklabelops 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务