Build a Ubuntu Linux environment with P4
78
This Dockerfile is used to build Ubuntu Linux environment with P4 Language on the Docker container.
NOTICE: We provided a script file
main.sh for you to help you to build the Docker container easily.
main.sh to build a Docker container
# Make sure your current directory is in correct
# Command format:
$ ./main.sh build <DOCKERFILE_PATH> <IMAGE_NAME> <EXTERNAL_PORT>
# Example: Use the Dockerfile in "./p4-env/" and build a Docker image named "p4-env1" which externel port is 9487
$ ./main.sh build ./p4-env/p4-env1.dockerfile p4-env1 9487
# Example: Use the Dockerfile in "./p4-env/" and build a Docker image named "p4-env2" which externel port is 9487
$ ./main.sh build ./p4-env/p4-env2.dockerfile p4-env2 9487
# Make sure your current directory is in correct
# Command format:
$ ./main.sh clean <CONTAINER_NAME>
# Example: Remove the container named "p4-env1_c"
$ ./main.sh clean p4-env1_c
# Example: Remove the container named "p4-env2_c"
$ ./main.sh clean p4-env2_c
NOTICE: We only support the environment on Ubuntu Linux 16.04 LTS (64-bit) currently! Besides, the environment of Ubuntu Linux 16.04 LTS (64-bit) is built from my own Docker image. You can refer to the Dockerfile here.
p4-env:2.0
p4-env:1.0
GNU General Public License v3.0
Content type
Image
Digest
Size
2.7 GB
Last updated
almost 8 years ago
docker pull yungshenglu/p4-env:2.0