Skip to content

Commit

Permalink
Use image from docker.io registry
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Feb 21, 2024
1 parent 6a32f99 commit c4375a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests_notebooks/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def notebook_service(docker_ip, docker_services, aiidalab_exec):
output = aiidalab_exec("verdi --version").decode("utf-8").strip()
after_version = output.split(" ")[-1]

assert before_version != after_version
assert (
before_version == after_version
), f"aiida-core version was changed from {before_version} to {after_version}."

# `port_for` takes a container port and returns the corresponding host port
port = docker_services.port_for("aiidalab", 8888)
Expand Down
8 changes: 7 additions & 1 deletion tests_notebooks/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ version: '3.4'
services:

aiidalab:
image: ghcr.io/aiidalab/full-stack:${TAG:-latest}
# TODO: after the oldest aiida-core supported version is v2.4.0,
# move to use ghcr.io registry to pull the image, the dockerhub registry has
# a rate limit of 100 pulls per 6 hours.
# aiida-core < 2.4.0 is not push to ghcr.io because of CI issues
# The CI is fixed in https://github.com/aiidalab/aiidalab-docker-stack/pull/390 and
# from aiida-core 2.4.0 the images are pushed to ghcr.io.
image: aiidalab/full-stack:${TAG:-latest}
environment:
RMQHOST: messaging
TZ: Europe/Zurich
Expand Down

0 comments on commit c4375a7

Please sign in to comment.