Skip to content

Comments

Refactor DTS dockerfile and startup script to be used to run DAQ in a…#933

Merged
anurag6 merged 3 commits intofaucetsdn:masterfrom
anurag6:daq_container
Nov 17, 2021
Merged

Refactor DTS dockerfile and startup script to be used to run DAQ in a…#933
anurag6 merged 3 commits intofaucetsdn:masterfrom
anurag6:daq_container

Conversation

@anurag6
Copy link
Collaborator

@anurag6 anurag6 commented Nov 16, 2021

… container locally

@anurag6
Copy link
Collaborator Author

anurag6 commented Nov 16, 2021

I left the dts/ files that I edited in place so that it is easier to see the changes made. I will remove dts/Dockerfile.dts and dts/start_service once I test and finalize the PR.

@anurag6 anurag6 requested review from grafnu and henry54809 November 16, 2021 02:16
@codecov
Copy link

codecov bot commented Nov 16, 2021

Codecov Report

Merging #933 (f73f9d7) into master (5f63bc1) will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #933      +/-   ##
==========================================
- Coverage   82.51%   82.48%   -0.04%     
==========================================
  Files          46       46              
  Lines        5862     5862              
==========================================
- Hits         4837     4835       -2     
- Misses       1025     1027       +2     
Flag Coverage Δ
ata 62.63% <ø> (ø)
aux 68.21% <ø> (-0.04%) ⬇️
base 66.45% <ø> (-0.06%) ⬇️
dhcp 67.50% <ø> (ø)
many 67.20% <ø> (-0.32%) ⬇️
mud 72.12% <ø> (-0.02%) ⬇️
switch 67.76% <ø> (-0.04%) ⬇️
topo 66.44% <ø> (-0.07%) ⬇️
unit 32.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
daq/acl_state_collector.py 82.19% <0.00%> (-1.37%) ⬇️
daq/runner.py 85.44% <0.00%> (-0.11%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f63bc1...f73f9d7. Read the comment docs.

Copy link
Collaborator

@grafnu grafnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good -- the structure seems fine...

bin/build_daq Outdated
tag=

if [ "$1" == "dts" ]; then
tag="dts"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add "shift" just for completeness

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

bin/build_daq Outdated
tag="dts"
fi

if [ -z "$tag" ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would default tag to daq at the top, rather than a replace-if-empty conditional

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,25 @@
#!/bin/bash -x
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-e

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

COPY cmd/ cmd/
COPY config/ config/
COPY resources/ resources/
#COPY docker/include/bin/start_daq bin/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't using the newer script yet. Changed.

bin/build_daq Outdated
tag="dts"
fi

if [ -z "$tag" ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not really an image tag; it's part of the image name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to image_name

@anurag6 anurag6 marked this pull request as ready for review November 16, 2021 19:34
Copy link
Collaborator

@grafnu grafnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one file to rename, and then good to go!

shift
fi

bin/setup_remote faucet
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Script is misnamed since it's not "building daq" as such... so maybe "build_daq_container"? (dts was specific to it being a container, daq is not so qualified).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Canged.

@anurag6 anurag6 merged commit 4432a4f into faucetsdn:master Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants