Skip to content

Commit

Permalink
override docker version deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
dperl-dls committed Jul 3, 2024
1 parent f1a16f9 commit 5245936
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/epics_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ mkdir -p /tmp/ophyd_AD_test/
# does not create missing directories.
python $SCRIPTS_DIR/create_directories.py /tmp/ophyd_AD_test/data1

docker run --rm -d -v /tmp/ophyd_AD_test:/tmp/ophyd_AD_test/ ${MOTOR_DOCKERIMAGE}
# 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/http-proxy.conf"
touch $file
echo "[Service]" >> $file
echo 'Environment="DOCKER_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE=1"' >> $file
sudo systemctl daemon-reload
sudo systemctl restart docker

docker --rm -d -v /tmp/ophyd_AD_test:/tmp/ophyd_AD_test/ ${MOTOR_DOCKERIMAGE}
docker run --name=area-detector --rm -dit -v /tmp/ophyd_AD_test:/tmp/ophyd_AD_test/ -e AD_PREFIX="ADSIM:" ${AD_DOCKERIMAGE} /bin/bash
sleep 1 # Probably not needed?
docker exec area-detector iocSimDetector/simDetector.sh start
Expand Down

0 comments on commit 5245936

Please sign in to comment.