Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automotive-comm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
REAACT
automotive-comm
Commits
cd849540
Commit
cd849540
authored
2 years ago
by
Claudiu MILEA (95030)
Browse files
Options
Downloads
Patches
Plain Diff
Update Makefile and README after including docker-compose and ethernet container
parent
96b83ee2
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Include docker-compose and container for testing Ethernet traffic
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+9
-11
9 additions, 11 deletions
Makefile
README.md
+10
-10
10 additions, 10 deletions
README.md
with
19 additions
and
21 deletions
Makefile
+
9
−
11
View file @
cd849540
registry
=
gitlab.cs.pub.ro:5050/reaact/
can-container
registry
=
gitlab.cs.pub.ro:5050/reaact/
automotive-comm-setup
img_name
=
can-container
tag_name
=
${
registry
}
eth_image
=
"
${
registry
}
/eth"
can_image
=
"
${
registry
}
/can"
# TODO: Update makefile
build
:
docker image build
-t
${
tag_name
}
.
docker image build
-f
eth.Dockerfile
-t
${
eth_image
}
.
docker image build
-f
can.Dockerfile
-t
${
can_image
}
.
run
:
docker run
-d
--network
=
host
--name
${
img_name
}
${
tag_name
}
bash
:
docker
exec
-it
${
img_name
}
/bin/bash
docker-compose
up
push
:
docker push
${
tag_name
}
docker push
${
eth_image
}
docker push
${
can_image
}
clean
:
docker
rm
-f
${
img_name
}
docker image
rm
-f
${
tag_name
}
docker-compose down
--rmi
local
This diff is collapsed.
Click to expand it.
README.md
+
10
−
10
View file @
cd849540
...
...
@@ -17,21 +17,21 @@ To be able to use/run it, the following steps should be followed:
*
save the token to a file, as it is visible only once
3.
Login
*
docker login gitlab.cs.pub.ro:5050 -p "INSERT_ACCESS_TOKEN"
4.
Pull the image
*
docker pull gitlab.cs.pub.ro:5050/reaact/can-container
5.
Run it
*
docker run --name ubuntu-can --network=host gitlab.cs.pub.ro:5050/reaact/can-container:latest
6.
Scan the traffic
**on the host**
4.
Run the setup using Docker Compose
*
docker-compose up
5.
Generate CAN or Ethernet traffic from the containers
docker exec
<can-container-name>
cangen vcan0
docker exec
<eth-container-name>
trafgen --dev
<eth-if>
--conf trafgen.cfg
6.
View the CAN or Ethernet traffic
**on the host**
*
candump vcan0
*
tcpdump -i
<eth-if>
Or you can use the Makefile. Steps 1-3 remain the same and then:
*
Get the changes
*
git pull
*
Run it
*
Run the setup
*
make run
*
Generate traffic as mentioned in the previous section
*
Scan the traffic
**on the host**
*
candump vcan0
*
Delete the image and container
*
Stop the containers and delete the images
*
make clean
Useful links:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment