Switch to IBM Container Registry (#1765)

We are switching from Dockerhub to Container Registry. The image is
public and you do not need to set up anything specific; you only need
normal Docker.
This commit is contained in:
Eric Arellano 2024-07-26 02:39:46 -04:00 committed by GitHub
parent 9c64a0e48e
commit 1192ff9295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

6
start
View File

@ -14,9 +14,9 @@
import subprocess
import sys
from pathlib import Path
from typing import Iterator
PWD = Path(__file__).parent
IMAGE = "icr.io/qc-open-source-docs-public/preview:latest"
def skip_apis() -> tuple[str]:
@ -29,7 +29,7 @@ def skip_apis() -> tuple[str]:
def main() -> None:
print(
"Warning: this may be using an outdated version of the app. Run "
+ "`docker pull qiskit/documentation` to check for updates.",
+ f"`docker pull {IMAGE}` to check for updates.",
file=sys.stderr,
)
# Keep this aligned with the Dockerfile at the root of the repository.
@ -46,7 +46,7 @@ def main() -> None:
# Needed for ctrl-c to shut down the container.
"--init",
"--rm",
"qiskit/documentation",
IMAGE,
]
subprocess.run(cmd, check=True)