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
This PR updates the READMEs as follows:
* Logging into GHCR is only needed when pushing, so those instructions
are moved to the last section.
* GCC base image ARG was missing ghcr.io, which has been fixed.
* To simplify copy-pasting of commands, the `CONTAINER_REGISTRY` var has
been removed and ghcr.io has been added explicitly. Otherwise it's
needed to copy-paste-run commands scattered across the readme.
* Extra note for macOS is included to add `--platform linux/amd64` in
order to create a Docker image that can be run by CI on Linux.
* Updated push instruction to include `sha-${USER}` to the image tag, so
it can be referenced in the strategy matrix.
* General other cleanups.
Copy file name to clipboardExpand all lines: docker/debian/README.md
+63-44Lines changed: 63 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,48 +7,33 @@ Although the images will be built by a CI pipeline in this repository, if
7
7
necessary a maintainer can build them manually by following the instructions
8
8
below.
9
9
10
-
### Logging into the GitHub registry
11
-
12
-
To be able to push a Docker image to the GitHub registry, a personal access
13
-
token is needed, see instructions [here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic).
14
-
In summary, if you do not have a suitable personal access token, generate one
The same Dockerfile can be used to build an image for different Debian releases
28
13
by specifying the `DEBIAN_VERSION` build argument. There are additional
29
14
arguments to specify as well, namely `GCC_VERSION` for the GCC flavor and
30
15
`CLANG_VERSION` for the Clang flavor.
31
16
32
-
Build image for `gcc` supports packaging.
17
+
Only the build image for `gcc` supports packaging.
33
18
34
19
#### Note on old GCC binaries
35
20
36
21
This image supports variety of releases of Debian, GCC and Clang. In order to
37
-
support current GCC versions on an older Debian releases, we rely on `gcc` images
38
-
backported from the [official GCC repository](https://github.com/docker-library/gcc).
22
+
support current GCC versions on an older Debian releases, we rely on `gcc`
23
+
images backported from the [official GCC repository](https://github.com/docker-library/gcc).
39
24
40
-
Hence, depending on the Debian release used, the GCC binaries are sourced from either of:
25
+
Hence, depending on the Debian release used, the GCC binaries are sourced from
26
+
either of:
41
27
42
-
- for `DEBIAN_VERSION=bookworm` : `gcc:$GCC_VERSION-$DEBIAN_VERSION`, produced in the [official GCC repository](https://github.com/docker-library/gcc)
43
-
- for `DEBIAN_VERSION=bullseye` : `xrplf/ci/gcc:$GCC_VERSION-$DEBIAN_VERSION`, produced in [this repository](https://github.com/XRPLF/ci/pkgs/container/gcc)
28
+
- for `DEBIAN_VERSION=bookworm`: `gcc:${GCC_VERSION}-${DEBIAN_VERSION}`, produced in
29
+
the [official GCC repository](https://github.com/docker-library/gcc)
30
+
- for `DEBIAN_VERSION=bullseye`: `ghcr.io/xrplf/ci/gcc:${GCC_VERSION}-${DEBIAN_VERSION}`,
31
+
produced in [this repository](https://github.com/XRPLF/ci/pkgs/container/gcc)
44
32
45
33
#### Building the Docker image for GCC
46
34
47
-
In order to build an image, run the commands below from the root directory of
48
-
the repository.
49
-
50
-
Ensure you've run the login command above to authenticate with the Docker
51
-
registry.
35
+
In order to build the image for GCC, run the commands below from the root
#### Pushing the Docker image to the GitHub registry
165
+
### Pushing the Docker image
166
+
167
+
#### Logging into the GitHub registry
168
+
169
+
To be able to push a Docker image to the GitHub registry, a personal access
170
+
token is needed, see instructions [here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic).
171
+
In summary, if you do not have a suitable personal access token, generate one
Copy file name to clipboardExpand all lines: docker/gcc/README.md
+43-29Lines changed: 43 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,54 +19,68 @@ Although the images will be built by a CI pipeline in this repository, if
19
19
necessary a maintainer can build them manually by following the instructions
20
20
below.
21
21
22
-
### Logging into the GitHub registry
22
+
### Building the Docker image
23
23
24
-
To be able to push a Docker image to the GitHub registry, a personal access
25
-
token is needed, see instructions [here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic).
26
-
In summary, if you do not have a suitable personal access token, generate one
####Pushing the Docker image to the GitHub registry
46
+
### Pushing the Docker image
66
47
67
-
If you want to push the image to the GitHub registry, you can do so with the
68
-
following command:
48
+
#### Logging into the GitHub registry
49
+
50
+
To be able to push a Docker image to the GitHub registry, a personal access
51
+
token is needed, see instructions [here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic).
52
+
In summary, if you do not have a suitable personal access token, generate one
0 commit comments