Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bff19b6a
Commit
bff19b6a
authored
Jan 10, 2022
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
db843c62
b7c7afa9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
106 additions
and
100 deletions
+106
-100
doc/administration/packages/dependency_proxy.md
doc/administration/packages/dependency_proxy.md
+48
-34
doc/topics/git/how_to_install_git/index.md
doc/topics/git/how_to_install_git/index.md
+49
-62
doc/user/packages/dependency_proxy/index.md
doc/user/packages/dependency_proxy/index.md
+9
-4
No files found.
doc/administration/packages/dependency_proxy.md
View file @
bff19b6a
...
...
@@ -14,68 +14,84 @@ GitLab can be used as a dependency proxy for a variety of common package manager
This is the administration documentation. If you want to learn how to use the
dependency proxies, see the
[
user guide
](
../../user/packages/dependency_proxy/index.md
)
.
## Enabling the Dependency Proxy feature
The GitLab Dependency Proxy:
NOTE:
Dependency proxy requires the Puma web server to be enabled.
-
Is turned on by default.
-
Can be turned off by an administrator.
-
Requires the
[
Puma web server
](
../operations/puma.md
)
to be enabled. Puma is enabled by default in GitLab 13.0 and later.
To enable the dependency proxy feature:
## Turn off the Dependency Proxy
**Omnibus GitLab installations**
The Dependency Proxy is enabled by default. If you are an administrator, you
can turn off the Dependency Proxy. To turn off the Dependency Proxy, follow the instructions that
correspond to your GitLab installation:
-
[
Omnibus GitLab installations
](
#omnibus-gitlab-installations
)
-
[
Helm chart installations
](
#helm-chart-installations
)
-
[
Installations from source
](
#installations-from-source
)
### Omnibus GitLab installations
1.
Edit
`/etc/gitlab/gitlab.rb`
and add the following line:
```
ruby
gitlab_rails
[
'dependency_proxy_enabled'
]
=
tru
e
gitlab_rails
[
'dependency_proxy_enabled'
]
=
fals
e
```
1.
Save the file and
[
reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the changes to take effect.
1.
Enable the
[
Puma web server
](
../operations/puma.md
)
.
1.
Save the file and
[
reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
for the changes to take effect
.
**Helm chart installations**
### Helm chart installations
1.
After the installation is complete, update the global
`appConfig`
to enable the feature
:
After the installation is complete, update the global
`appConfig`
to turn off the Dependency Proxy
:
```
yaml
global
:
```
yaml
global
:
appConfig
:
dependencyProxy
:
enabled
:
tru
e
enabled
:
fals
e
bucket
:
gitlab-dependency-proxy
connection
:
{}
secret
:
key
:
```
```
For more information, see
[
Configure Charts using Globals
](
https://docs.gitlab.com/charts/charts/globals.html#configure-appconfig-settings
)
.
**Installations from source**
### Installations from source
1.
After the installation is complete, configure the
`dependency_proxy`
section in
`config/gitlab.yml`
. Set to
`true`
to enable it
:
1.
After the installation is complete, configure the
`dependency_proxy`
section in
`config/gitlab.yml`
. Set
`enabled`
to
`false`
to turn off the Dependency Proxy
:
```
yaml
dependency_proxy
:
enabled
:
tru
e
enabled
:
fals
e
```
1.
[
Restart GitLab
](
../restart_gitlab.md#installations-from-source
"How to restart GitLab"
)
for the changes to take effect.
1.
[
Restart GitLab
](
../restart_gitlab.md#installations-from-source
"How to restart GitLab"
)
for the changes to take effect.
Since Puma is already the default web server for installations from source as of GitLab 12.9,
no further changes are needed.
### Multi-node GitLab installations
**Multi-node GitLab installations**
Follow the steps for
[
Omnibus GitLab installations
](
#omnibus-gitlab-installations
)
for each Web and Sidekiq node.
Follow the steps for
**Omnibus GitLab installation**
for each Web and Sidekiq nodes.
## Turn on the Dependency Proxy
The Dependency Proxy is turned on by default, but can be turned off by an
administrator. To turn on the Dependency Proxy, follow the instructions in
[
Turn off the Dependency Proxy
](
#turn-off-the-dependency-proxy
)
,
but set the
`enabled`
fields to
`true`
.
## Changing the storage path
By default, the
dependency p
roxy files are stored locally, but you can change the default
By default, the
Dependency P
roxy files are stored locally, but you can change the default
local location or even use object storage.
### Changing the local storage path
The
dependency p
roxy files for Omnibus GitLab installations are stored under
The
Dependency P
roxy files for Omnibus GitLab installations are stored under
`/var/opt/gitlab/gitlab-rails/shared/dependency_proxy/`
and for source
installations under
`shared/dependency_proxy/`
(relative to the Git home directory).
To change the local storage path:
...
...
@@ -105,7 +121,7 @@ To change the local storage path:
### Using object storage
Instead of relying on the local storage, you can use an object storage to
store the blobs of the
dependency p
roxy.
store the blobs of the
Dependency P
roxy.
[
Read more about using object storage with GitLab
](
../object_storage.md
)
.
...
...
@@ -199,5 +215,3 @@ Feature.disable(:dependency_proxy_for_private_groups)
# Re-enable the authentication
Feature
.
enable
(
:dependency_proxy_for_private_groups
)
```
The ability to disable this feature will be
[
removed in 13.9
](
https://gitlab.com/gitlab-org/gitlab/-/issues/276777
)
.
doc/topics/git/how_to_install_git/index.md
View file @
bff19b6a
...
...
@@ -3,96 +3,83 @@ stage: Create
group
:
Source Code
info
:
To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
description
:
'
This
article
describes
how
to
install
Git
on
macOS,
Ubuntu
Linux
and
Windows.'
type
:
howto
---
# Installing Git **(FREE)**
To begin contributing to GitLab projects,
you must install the Git client on your computer.
This article shows you how to install Git on macOS, Ubuntu Linux and Windows.
Information on
[
installing Git
](
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
)
To begin contributing to GitLab projects, you must install the appropriate Git client
on your computer. Information about
[
installing Git
](
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
)
is also available at the official Git website.
## Install Git on macOS using the Homebrew package manager
Although you can use the version of Git shipped with macOS or install the latest
version of Git on macOS by downloading it from the project website, we recommend
installing Git with Homebrew to get access to an extensive selection of
dependency-managed libraries and applications.
If you don't need access to any additional development libraries or don't have
approximately 15 GB of available disk space for Xcode and Homebrew, use one of
the previously mentioned methods.
### Installing Xcode
To build dependencies, Homebrew needs the XCode Command Line Tools. Install
it by running in your terminal:
## Supported operating systems
```
shell
xcode-select
--install
```
Git is available for the following operating systems:
Click
**Install**
to download and install it. Alternatively, you can install
the entire
[
XCode
](
https://developer.apple.com/xcode/
)
package through the
macOS App Store.
-
[
macOS
](
#macos
)
-
[
Ubuntu Linux
](
#ubuntu-linux
)
-
[
Microsoft Windows
](
#windows
)
###
Installing Homebrew
###
macOS
With Xcode installed, browse to the
[
Homebrew website
](
https://brew.sh/index.html
)
for the official Homebrew installation instructions.
A version of Git is supplied by macOS. You can use this version, or install the latest
version of Git on macOS by downloading it from the project website. We recommend
installing Git with
[
Homebrew
](
https://brew.sh/index.html
)
. With Homebrew, you can
access an extensive selection of libraries and applications, with their dependencies
managed for you.
### Installing Git via Homebrew
Prerequisites:
With Homebrew installed, you are now ready to install Git
.
Open a terminal and enter the following command:
-
15 GB of available disk space for Homebrew and Xcode
.
-
Extra disk space for any additional development libraries.
```
shell
brew
install
git
```
To install Git on macOS:
Congratulations! You should now have Git installed via Homebrew.
1.
Open a terminal and install the XCode Command Line Tools:
To verify that Git works on your system, run:
```
shell
xcode-select
--install
```
```
shell
git
--version
```
Alternatively, you can install the entire
[
XCode
](
https://developer.apple.com/xcode/
)
package through the macOS App Store.
Next, read our article on
[
adding an SSH key to GitLab
](
../../../ssh/index.md
)
.
1.
Select
**Install**
to download and install XCode Command Line Tools.
1.
Install Homebrew according to the
[
official Homebrew installation instructions
](
https://brew.sh/index.html
)
.
1.
Install Git by running
`brew install git`
from your terminal.
1.
In a terminal, verify that Git works on your computer:
## Install Git on Ubuntu Linux
```
shell
git
--version
```
On Ubuntu and other Linux operating systems
it is recommended to use the built-in package manager to install Git.
### Ubuntu Linux
O
pen a terminal and enter the following commands
to install
the latest Git from the official Git maintained package archives
:
O
n Ubuntu and other Linux operating systems, use the built-in package manager
to install
Git
:
```
shell
sudo
apt-add-repository ppa:git-core/ppa
sudo
apt-get update
sudo
apt-get
install
git
```
1.
Open a terminal and run these commands to install the latest Git
from the officially
maintained package archives:
Congratulations! You should now have Git installed via the Ubuntu package manager.
```
shell
sudo
apt-add-repository ppa:git-core/ppa
sudo
apt-get update
sudo
apt-get
install
git
```
To verify that Git works on your system
, run:
1.
To verify that Git works on your computer
, run:
```
shell
git
--version
```
```
shell
git
--version
```
Next, read our article on
[
adding an SSH key to GitLab
](
../../../ssh/index.md
)
.
### Windows
## Installing Git on Windows from the Git website
Go to the
[
Git website
](
https://git-scm.com/
)
, and then download and install Git for Windows.
Open the
[
Git website
](
https://git-scm.com/
)
and download and install Git for Windows.
## After you install Git
Next, read our article on
[
adding an SSH key to GitLab
](
../../../ssh/index.md
)
.
After you successfully install Git on your computer, read about
[
adding an SSH key to GitLab
](
../../../ssh/index.md
)
.
<!-- ## Troubleshooting
...
...
doc/user/packages/dependency_proxy/index.md
View file @
bff19b6a
...
...
@@ -19,7 +19,8 @@ upstream image from a registry, acting as a pull-through cache.
## Prerequisites
-
The Dependency Proxy is enabled by default but can be
[
turned off by an administrator
](
../../../administration/packages/dependency_proxy.md
)
.
To use the Dependency Proxy, it must be enabled for the GitLab instance. It's enabled by default,
but
[
administrators can turn it off
](
../../../administration/packages/dependency_proxy.md
)
.
### Supported images and packages
...
...
@@ -32,13 +33,17 @@ The following images and packages are supported.
For a list of planned additions, view the
[
direction page
](
https://about.gitlab.com/direction/package/#dependency-proxy
)
.
## Enable or
disable
the Dependency Proxy for a group
## Enable or
turn off
the Dependency Proxy for a group
To enable or
disable
the Dependency Proxy for a group:
To enable or
turn off
the Dependency Proxy for a group:
1.
Go to your group's
**Settings > Packages & Registries**
.
1.
Expand the
**Dependency Proxy**
section.
1.
To enable the proxy, turn on
**Enable Proxy**
. To disable it, turn the toggle off.
1.
To enable the proxy, turn on
**Enable Proxy**
. To turn it off, turn the toggle off.
This setting only affects the Dependency Proxy for a group. Only an administrator can
[
turn the Dependency Proxy on or off
](
../../../administration/packages/dependency_proxy.md
)
for the entire GitLab instance.
## View the Dependency Proxy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment