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
Bug fix: Remove non-functional "Use custom workspace" field from Freestyle project configuration form (jenkinsci#1429)
* Remove first instance of 'Use custom workspace' field for freestyle projects
* Update docker-compose.yml and README.md
* Fix broken docs links
* Add the necessary shm_size info in docker-compose.yml
* Update src/docker/docker-compose.yml
Copy file name to clipboardexpand all lines: src/docker/README.md
+7-13
Original file line number
Diff line number
Diff line change
@@ -9,41 +9,35 @@ If they don't already exist, create the following directories and make sure the
9
9
* /srv/docker/gitlab/gitlab
10
10
* /srv/docker/gitlab/redis
11
11
* /srv/docker/jenkins
12
-
To start the containers for Linux, 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, and the latter command is the verbose version of the former.
12
+
To start the containers for Linux, run `docker-compose up -d` from the `src/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, and the latter command is the verbose version of the former.
13
13
14
14
## Quick test environment setup using Docker for MacOS/arm64
15
15
16
-
You need to modify the example docker-compose file available at `gitlab-plugin/src/docker` to set up instances of the latest `GitLab` and `Jenkins` versions for MacOS/arm64.
16
+
You need to modify the example docker-compose file available at `src/docker` to set up instances of the latest `GitLab` and `Jenkins` versions for MacOS/arm64.
17
17
18
18
Due to Apple's System Integrity Protection (SIP), the suggested paths cannot be simply created and accessed, so you may need to use the home directory (~) as a root for the new directories to be created.
19
19
20
20
In the `docker-compose.yml` file:
21
+
21
22
1. Change the ports to
22
23
- '55580:80'
23
24
- '55522:22'
24
-
- '55443:443'
25
25
as the browser may block the ports in original docker-compose file.
4. In your Docker-Desktop go to `Settings > General > Choose file sharing implementation for your containers` and switch to osxfs (Legacy). As `osxfs (Legacy)` utilizes more resources of the system, make sure the assigned resources are sufficient by going to `Settings > Resources` and make suitable adjustments where necessary, otherwise Docker Desktop may go on start mode forever on restarting.
33
-
5. Add `shm_size: '5gb'`under gitlab services.
32
+
4. In your Docker-Desktop go to `Settings > General > Choose file sharing implementation for your containers` and switch to `osxfs (Legacy)`. As `osxfs (Legacy)` utilizes more resources of the system, make sure the assigned resources are sufficient by going to `Settings > Resources` and make suitable adjustments where necessary, otherwise Docker Desktop may go on start mode forever on restarting.
34
33
35
34
Like the instructions for Linux, for macOS users to start the containers, run `docker-compose up -d` from the `docker` folder. If you have any problems accessing the services in the containers, run `docker-compose up` by itself to see output from the services as they start.
36
35
37
36
## Access GitLab
38
37
39
-
To access `GitLab`, you first need to create a user - `root` with some password. To do so, follow the following steps :
40
-
1. In the GitLab containers terminal inside Docker Desktop, type `gitlab-rails console` and wait for at least a few minutes for the console to start.
41
-
2. Once the console is started successfully, run the following commands in sequence at the console, noting that there are certain security rules to the password choice:
3. Now, point your browser to `http://localhost:55580` and log in with `root` as the username and `setyourown` as the password. 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.
46
-
38
+
To access `GitLab`, you first need to create a user - `root` with some password. To do so, follow the following steps:
39
+
1. Point your browser to `http://localhost:55580` and log in with `root` as the username and `p@ssw0rd` as the password.
40
+
2. 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.
47
41
48
42
If you have trouble cloning a GitLab repository, it may be because you have a leftover host key from an SSH connection to a previous installation of GitLab in Docker. To troubleshoot, run `ssh -vT git@localhost -p 55522`.
0 commit comments