Skip to content

Commit 98cf03b

Browse files
committed
creating temp_to butler once and not from dockerfile
1 parent 7504ba0 commit 98cf03b

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RUN echo "The fromrepo value is $FROMREPO, the torepo value is $TOREPO"
6363
# Create necessary directories and run commands
6464
# CMD ["/bin/sh", "-c", "mkdir -p $FROMREPO/LATISS $TOREPO; cp -r tests/data/test_from/* $FROMREPO/; chmod u+x tests_docker/create_testto_butler.sh; ./tests_docker/create_testto_butler.sh $TOREPO; python src/move_embargo_args.py \"$FROMREPO\" \"$TOREPO\" \"$INSTRUMENT\" --nowtime \"$NOW\" --embargohours \"$EMBARGO_HRS\" --move \"$MOVE\""]
6565

66-
CMD ["/bin/sh", "-c", "mkdir -p $TOREPO; chmod u+x tests_docker/create_testto_butler.sh; ./tests_docker/create_testto_butler.sh $TOREPO; python src/move_embargo_args.py \"$FROMREPO\" \"$TOREPO\" \"$INSTRUMENT\" --nowtime \"$NOW\" --embargohours \"$EMBARGO_HRS\" --move \"$MOVE\""]
66+
CMD ["/bin/sh", "-c", "python src/move_embargo_args.py \"$FROMREPO\" \"$TOREPO\" \"$INSTRUMENT\" --nowtime \"$NOW\" --embargohours \"$EMBARGO_HRS\" --move \"$MOVE\""]
6767

6868

6969
RUN ls -R /opt/lsst/transfer_embargo/tests_docker/

tests_docker/create_testto_butler.sh

100644100755
File mode changed.

tests_docker/temp_to/butler.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
datastore:
2+
cls: lsst.daf.butler.datastores.fileDatastore.FileDatastore
3+
records:
4+
table: file_datastore_records
5+
root: <butlerRoot>
6+
registry:
7+
db: sqlite:///<butlerRoot>/gen3.sqlite3
8+
managers:
9+
attributes: lsst.daf.butler.registry.attributes.DefaultButlerAttributeManager
10+
collections: lsst.daf.butler.registry.collections.synthIntKey.SynthIntKeyCollectionManager
11+
datasets: lsst.daf.butler.registry.datasets.byDimensions.ByDimensionsDatasetRecordStorageManagerUUID
12+
datastores: lsst.daf.butler.registry.bridge.monolithic.MonolithicDatastoreRegistryBridgeManager
13+
dimensions: lsst.daf.butler.registry.dimensions.static.StaticDimensionRecordStorageManager
14+
opaque: lsst.daf.butler.registry.opaque.ByNameOpaqueTableStorageManager

tests_docker/temp_to/gen3.sqlite3

748 KB
Binary file not shown.

0 commit comments

Comments
 (0)