Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor UDMI to external repo #544

Merged
merged 7 commits into from
Jul 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ validations/
/inst/
/faucet/
/forch/
/udmi/
/mininet/
/local/
/firebase/.firebaserc
Expand Down
30 changes: 0 additions & 30 deletions bin/registrar

This file was deleted.

27 changes: 26 additions & 1 deletion bin/setup_dev
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ FORCHB=${DAQ_FORCH_BRANCH}
FORCHX=$(cat etc/FORCH_VERSION)
FORCHV=${DAQ_FORCH_VER:-$FORCHX}

UDMIR=${DAQ_UDMI_REPO:-https://github.com/faucetsdn/udmi}
UDMIB=${DAQ_UDMI_BRANCH}
UDMIX=$(cat etc/UDMI_VERSION)
UDMIV=${DAQ_UDMI_VER:-$UDMIX}

MININET=https://github.com/mininet/mininet
MININETV=2.3.0d6
MININETV=$(cat etc/MININET_VERSION)

if [ -f .daq.local ]; then
echo Loading config from .daq.local
Expand All @@ -36,6 +41,10 @@ if [ "$FORCHX" != "$FORCHV" ]; then
echo $FORCHV > etc/FORCH_VERSION
fi

if [ "$UDMIX" != "$UDMIV" ]; then
echo $UDMIV > etc/UDMI_VERSION
fi

if [ -z "$AG" ]; then
AG="sudo apt-get -qqy --no-install-recommends"
fi
Expand Down Expand Up @@ -164,6 +173,18 @@ else
(cd forch; git fetch; git checkout $FORCHV)
fi

if [ -z "$UDMIV" ]; then
echo No udmi version found, skipping.
else
if [ ! -d udmi ]; then
echo Cloning $UDMIR...
git clone $UDMIR udmi
fi

echo Setting udmi version $UDMIV
(cd udmi; git fetch; git checkout $UDMIV)
fi

echo -n "DAQ commit "
git log -n 1 --pretty=format:"%h - %an, %ar : %s" || true
echo
Expand All @@ -176,6 +197,10 @@ echo -n "Last FORCH commit "
(cd forch; git log -n 1 --pretty=format:"%h - %an, %ar : %s" || true)
echo

echo -n "Last UDMI commit "
(cd udmi; git log -n 1 --pretty=format:"%h - %an, %ar : %s" || true)
echo

docker --version

if ! docker images > /dev/null; then
Expand Down
33 changes: 0 additions & 33 deletions bin/validate

This file was deleted.

8 changes: 4 additions & 4 deletions docker/include/bin/start_faux
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ fi
if [ -n "${options[pubber]}" ]; then
echo Running cloud pubber tool...
(while date; do
pubber/bin/run
# Do https query in case pubber is not configured, for testing port 443
curl -o /dev/null https://google.com
sleep 30
pubber/bin/run local/pubber.json
# Do https query in case pubber is not configured, for testing port 443
curl -o /dev/null https://google.com
sleep 30
done) &
fi

Expand Down
4 changes: 2 additions & 2 deletions docker/modules/Dockerfile.faux1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ENV BACHASH=94a794a756ee0d37c6a2e53e08747ee021415aa8
RUN bin/retry_cmd git clone https://github.com/grafnu/bacnet4j.git --single-branch \
&& cd bacnet4j && git reset --hard $BACHASH && ../bin/retry_cmd ./gradlew shadow

COPY pubber/ pubber/
COPY udmi/pubber/ pubber/
RUN pubber/bin/build

FROM daqf/aardvark:latest
Expand All @@ -42,7 +42,7 @@ COPY --from=java_build /root/bacnet4j/*.jar bacnet4j/
COPY docker/include/bin/bacnet_discover bin/

COPY --from=java_build /root/pubber/build/libs/*.jar pubber/build/libs/
COPY pubber/bin/run pubber/bin/
COPY udmi/pubber/bin/run pubber/bin/

COPY subset/pentests/brute_server.py pentests/
COPY subset/security/tlsfaux tlsfaux/
Expand Down
81 changes: 0 additions & 81 deletions docs/pubber.md

This file was deleted.

Loading