Skip to content

Commit

Permalink
Merge pull request #1200 from dperl-dls/1199_override_container_depre…
Browse files Browse the repository at this point in the history
…cation

Override docker version deprecation
  • Loading branch information
mrakitin authored Jul 5, 2024
2 parents 1f8b64f + 5dc4a8c commit 6f87aa4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"bluesky": ("https://blueskyproject.io/bluesky/", None),
"bluesky": ("https://blueskyproject.io/bluesky/main/", None),
"numpy": ("https://numpy.org/devdocs/", None),
"databroker": ("https://blueskyproject.io/databroker/", None),
"event-model": ("https://blueskyproject.io/event-model/main", None),
Expand Down
2 changes: 2 additions & 0 deletions scripts/docker.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
Environment="DOCKER_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE=1"
8 changes: 8 additions & 0 deletions scripts/epics_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $SCRIPTS_DIR/epics_exports.sh

# Override the deprecation warning of V1 images
# Remove when images are updated
sudo mkdir -p /etc/systemd/system/docker.service.d
file="/etc/systemd/system/docker.service.d/extra_env.conf"
sudo cp $SCRIPTS_DIR/docker.conf $file
sudo systemctl daemon-reload
sudo systemctl restart docker

MOTOR_DOCKERIMAGE="nsls2/epics-docker:latest"
PE_DOCKERIMAGE="nsls2/pyepics-docker:latest"
AD_DOCKERIMAGE="prjemian/synapps-6.1-ad-3.7:latest"
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ install_requires =
ca =
aioca>=1.6
pva =
numpy<2.0 # See https://github.com/mdavidsaver/p4p/issues/145
p4p; python_version < '3.12'
# For development tests/docs
dev =
Expand Down

0 comments on commit 6f87aa4

Please sign in to comment.