You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Postgres: At standard listenport 5432 for your jdbc-connection-string
115
104
stream-passthrough to postgres-container.
116
105
```
117
-
118
106
#### Security
119
107
... not really, its all http .. don't worry about it! It's only local communication
120
108
@@ -128,56 +116,39 @@ See Readme in folder security-paranoia if you want to have some hints how to con
128
116
|Nexus | admin | admin123 |
129
117
|Gitlab | root | gitlab4me |
130
118
|Sonar | admin | admin |
131
-
|Keycloak|admin|admin|
132
119
|Postgres|postgres|admin|
133
120
134
121
## The Tools
135
122
There are some configurations you have to do after setup.
136
123
*Remember:* At every time use your real hostname and NOT localhost (locahost inside a container is the container itself).
137
-
For example: If yuo configure a GitLab-Connection in Jenkins, you will reach Gitlab at http://<you host>/gitlab and not http://localhost/gitlab
124
+
125
+
For example: If you configure a GitLab-Connection in Jenkins, you will reach Gitlab at http://<your host>/gitlab and not http://localhost/gitlab
138
126
### Jenkins
139
127
* MAVEN_HOME is /opt/maven
140
128
* JAVA_HOME is /usr/lib/jvm/java-8-openjdk-amd64
141
-
* Blue Ocean is installed if you choose (M)uch mor plugins and works perfect with a GitHUB Account, not GitLab ... sorry, this is Jenkins.
142
-
You need to be logged as a jenkins-user to use Blue Ocean
143
129
144
-
### Giltab
130
+
### GitLab
145
131
* the docker-registry from GitLab is at port 5555 (and secured with an openssl certificate ..thats part of
146
132
setupEnvironment.sh), just create a project in gitlab and click at the registry tab to show
147
133
how to login to the project registry and how to tag your images and upload them.
148
134
* ssh cloning and pushing is at port 2222 (ssh://git@myHOST:2222/scott/foo.git remeber to upload your public key before, should be ~/.ssh/id_rsa.pub )
135
+
* http cloning and pushing is only http NOT https
149
136
150
137
#### gitlab-runner
151
-
The runner is a gitlab-multirunner image with a docker-runner (concurrent=1) , based on [gitlab/gitlab-runner][2] at every startup any runner is removed and only ONE new runner
152
-
is registrated to avoid multiple runners (the pipeline-history maybe lost.)
138
+
The runner is a gitlab-multirunner image with a docker-runner (concurrent=1) , based on [gitlab/gitlab-runner][2] at every startup any runner is removed
139
+
and only ONE new runner is registrated to avoid multiple runners (the pipeline-history maybe lost.)
153
140
setups with a shell-runner works, docker-in-docker (docker:dind) or docker based builds should cause trouble because the
154
141
default DNS-Server of a docker-container ist 8.8.8.8 (google) see this link [extra_host for servce][5] for a possible workaround
155
142
156
143
It takes a long time until gitlab is ready to accept a runner registration, if it fails, increase the REGISTER_TRYS in docker-compse.yml
157
144
158
-
159
145
#### Jenkins and Gitlab
160
146
161
147
Gitlab is very very fast with new releases and sometimes the api has breaking changes. If something does not work take a look at the Jenkins Bugtracker.
162
148
163
149
### Sonar
164
150
You need to install some rules (Administration - System - Update Center - Available - Search: Java)
165
151
166
-
### Keycloak
167
-
There is a testproject in folder spring-boot-keycloak-sample, it is a standard Spring-Boot which you can start with
168
-
```
169
-
mv spring-boot:run
170
-
```
171
-
Use your browser and navigate to the "landing-page" at http://your-host:8081 the "My products" link will redirect you to Keycloak (must be setup with settings from [this tutorial][3], but use your *REAL* hostname, not _localhost_ as Valid Redirect URI's )
172
-
173
-
_tl;dr_
174
-
* login as user:admin, password:admin
175
-
* create realm "springboot"
176
-
* create client "product-app" as openid-connect client with Valid Redirect URI's http://<your host>:8081/*
177
-
* create role "user"
178
-
* create user "testuser" and map the role "user" to testuser (tab Role Mappings)
179
-
180
-
181
152
### Postgres
182
153
You can use any tool to connect to the database at localhost:5432 this is a pass through to the container so any
183
154
JDBC-Connection should work
@@ -212,9 +183,6 @@ every ping must work, if not, check the .env file, is there the correct DC_HOSTN
212
183
##### consider low memory:
213
184
with an amount lower than 8GB sonar and embedded eleastic search did not startup and no message is displayed
214
185
215
-
##### too many plugins to download:
216
-
You can do an "pre download of the plugins", see the readme.md at jenkins-fat direcory
217
-
218
186
219
187
## Starting from scratch
220
188
To delete everything an start from scratch (own risk, you will lost all your setting projects and data)
0 commit comments