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
Copy file name to clipboardexpand all lines: README.md
+9-3
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,9 @@ For the best sync performance, add repos from the Oracle Linux yum server wherev
22
22
23
23
### Register with ULN (optional)
24
24
25
-
Before content can be synced from ULN, the container has to be registered. The following command will map the local `rhn/` directory to `/etc/sysconfig/rhn/` inside the container and then automatically register the container using the ULN credentials provided in `config/uln.conf`:
25
+
Before content can be synced from ULN, the container has to be registered. First, create a directory named `rhn` then run the following command.
26
+
27
+
This command maps the `rhn/` directory to `/etc/sysconfig/rhn/` inside the container then automatically registers the container using the ULN credentials provided in `config/uln.conf` (check the section on [storing ULN credentials](#store-uln-credentials) for more detail):
26
28
27
29
```bash
28
30
docker run --rm -it \
@@ -32,7 +34,9 @@ docker run --rm -it \
32
34
ghcr.io/djelibeybi/ol-repo-sync register
33
35
```
34
36
35
-
This will take a few minutes with no output to the terminal but should return to the command prompt when completed.
37
+
This will take a few minutes with no output to the terminal but should return to the command prompt when completed.
38
+
39
+
> If you don't sync from ULN, remove `-v "$PWD/rhn:/etc/sysconfig/rhn" \` from the command.
36
40
37
41
If you mount a local directory to `/etc/sysconfig/rhn` each time you start a container, you should only have to register with ULN once, as the registration details are stored inside this directory.
38
42
@@ -72,12 +76,14 @@ The following command will sync the content of the repos configured in `config/r
72
76
```bash
73
77
docker run --rm -it \
74
78
--name ol-repo-sync \
75
-
-v "$PWD/rhn:/etc/sysconfig/rhn" \
79
+
-v "$PWD/rhn:/etc/sysconfig/rhn"\# only required for ULN
76
80
-v "$PWD/config:/config" \
77
81
-v "$PWD/repo:/repo" \
78
82
ghcr.io/djelibeybi/ol-repo-sync
79
83
```
80
84
85
+
> If you are not syncing from ULN, remove `-v "$PWD/rhn:/etc/sysconfig/rhn" \` from the command.
86
+
81
87
For each `yum` or `uln` source configured in `config/repos.json`, the sync process will:
82
88
83
89
1. Enable the repo (`yum`) or subscribe to the channel (`uln`).
0 commit comments